欢迎访问ic37.com |
会员登录 免费注册
发布采购

M32180F8TFP 参数 Datasheet PDF下载

M32180F8TFP图片预览
型号: M32180F8TFP
PDF下载: 下载PDF文件 查看货源
内容描述: 32位RISC单芯片微型计算机M32R系列M32R / ECU系列 [32-Bit RISC Single-Chip Microcomputers M32R Family M32R/ECU Series]
分类和应用: 计算机
文件页数/大小: 839 页 / 3694 K
品牌: RENESAS [ RENESAS TECHNOLOGY CORP ]
 浏览型号M32180F8TFP的Datasheet PDF文件第91页浏览型号M32180F8TFP的Datasheet PDF文件第92页浏览型号M32180F8TFP的Datasheet PDF文件第93页浏览型号M32180F8TFP的Datasheet PDF文件第94页浏览型号M32180F8TFP的Datasheet PDF文件第96页浏览型号M32180F8TFP的Datasheet PDF文件第97页浏览型号M32180F8TFP的Datasheet PDF文件第98页浏览型号M32180F8TFP的Datasheet PDF文件第99页  
EIT  
4.2 EIT Events  
4
4.2.3 Trap  
Traps are software interrupts which are generated by executing the TRAP instruction. Sixteen distinct vector  
addresses are provided corresponding to TRAP instruction operands 0–15.  
4.3 EIT Processing Procedure  
EIT processing consists of two parts, one in which they are handled automatically by hardware, and one in which  
they are handled by user-created programs (EIT handlers). The procedure for processing EITs when accepted,  
except for a rest interrupt, is shown below.  
EIT request  
generated  
Program execution restarted  
Program suspended  
and EIT request  
accepted  
Instruction Instruction Instruction  
Instruction Instruction  
A
B
C
C
D
Instruction  
processing-canceled  
type (RIE, AE)  
Instruction processing-completed  
type (FPE, EI, TRAP)  
(Note 1)  
BPSWPSW  
BPCPC  
PCBPC  
PSWBPSW  
(Note 1)  
Hardware preprocessing  
Hardware postprocessing  
User-created EIT handler  
EIT handler except for SBI  
EIT vector  
entry  
BPC, PSW, FPSR  
and general-purpose  
registers are saved  
to the stack  
General-purpose  
Branch  
instruction  
RTE  
instruction  
Processing  
by handler  
registers, PSW, FPSR  
and BPC are restored  
from the stack  
SBI  
Program terminated  
or system is reset  
(SBI)  
(System Break  
Interrupt processing)  
Note 1: Indicates saving and restoring the PSW register bits between its PSW and BPSW fields.  
Figure 4.3.1 Outline of the EIT Processing Procedure  
When an EIT is accepted, the CPU branches to the EIT vector after hardware preprocessing (as will be described  
later). The EIT vector has an entry address assigned for each EIT. This is where the BRA (branch) instruction for  
the EIT handler (not the jump address itself) is written.  
In the hardware preprocessing, the PC is transferred to the BPC (backup PC), and the content of the PSW register’s  
PSW field is transferred to the BPSW field in that register.  
Other necessary operations must be performed in the user-created EIT handler. These include saving the BPC and  
PSW registers (including the BPSW field) and the general-purpose registers to be used in the EIT handler to the  
stack. In addition, the accumulator and the FPSR register must be saved to the stack as necessary. Remember  
that all these registers must be saved to the stack in a program by the user.  
When processing by the EIT handler is completed, restore the saved registers from the stack and finally execute  
the RTE instruction. Control is thereby returned from the EIT processing to the program that was being executed  
when the EIT occurred. (This does not apply to the System Break Interrupt, however.)  
In the hardware postprocessing, the BPC is returned to the PC, and the content of the PSW register’s BPSW field  
is returned to the PSW field in that register. Note that the values stored in the BPC and the PSW register’s BPSW  
field after executing the RTE instruction are undefined.  
32180 Group User’s Manual (Rev.1.0)  
4-6  
 复制成功!