欢迎访问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文件第122页浏览型号M32180F8TFP的Datasheet PDF文件第123页浏览型号M32180F8TFP的Datasheet PDF文件第124页浏览型号M32180F8TFP的Datasheet PDF文件第125页浏览型号M32180F8TFP的Datasheet PDF文件第127页浏览型号M32180F8TFP的Datasheet PDF文件第128页浏览型号M32180F8TFP的Datasheet PDF文件第129页浏览型号M32180F8TFP的Datasheet PDF文件第130页  
INTERRUPT CONTROLLER (ICU)  
5.5 Description of Interrupt Operation  
5
5.5.2 Processing by Internal Peripheral I/O Interrupt Handlers  
(1) Branching to the interrupt handler  
Upon accepting an interrupt request, the CPU branches to the EIT vector entry after performing the hardware  
preprocessing as described in Section 4.3, “EIT Processing Procedure.” The EIT vector entry for External  
Interrupt (EI) is located at the address H’0000 0080. This address is where the instruction (not the jump  
address itself) for branching to the beginning of the interrupt handler routine for external interrupt requests is  
written.  
(2) Processing in the External Interrupt (EI) handler  
A typical operation of the External Interrupt (EI) handler (for interrupts from internal peripheral I/O) is shown  
in Figure 5.5.2.  
[1] Saving each register to the stack  
Save the BPC, PSW and general-purpose registers to the stack. Also, save the accumulator and FPSR  
register to the stack as necessary.  
[2] Reading the Interrupt Request Mask Register (IMASK) and saving to the stack  
Read the Interrupt Request Mask Register and save its content to the stack.  
[3] Reading the Interrupt Vector Register (IVECT)  
Read the Interrupt Vector Register. This register holds the 16 low-order address bits of the ICU vector table  
for the accepted interrupt request source that was stored in it when accepting an interrupt request. When the  
Interrupt Vector Register is read, the following processing is automatically performed in hardware:  
• The interrupt priority level of the accepted interrupt request (ILEVEL) is set in the IMASK register as a  
new IMASK value. (Interrupts with lower priority levels than that of the accepted interrupt request  
source are masked.)  
• The accepted interrupt request source is cleared (not cleared for level-recognized interrupt request  
sources).  
• The interrupt request (EI) to the CPU core is dropped.  
• The ICU’s internal sequencer is activated to start internal processing (interrupt priority resolution).  
[4] Reading and overwriting the Interrupt Request Mask Register (IMASK)  
Read the Interrupt Request Mask Register and overwrite it with the read value. This write to the IMASK  
register causes the following processing to be automatically performed in hardware:  
• The interrupt request (EI) to the CPU core is dropped.  
• The ICU’s internal sequencer is activated to start internal processing (interrupt priority resolution).  
Note: • Processing in [4] here is unnecessary when multiple interrupts are to be enabled in [6] below.  
[5] Reading the ICU vector table  
Read the ICU vector table for the accepted interrupt request source. The relevant ICU vector table  
address can be obtained by zero-extending the content of the Interrupt Vector Register that was read in  
[3] (i.e., the 16 low-order address bits of the ICU vector table for the accepted interrupt request source).  
The ICU vector table must have set in it the start address of the interrupt handler for the interrupt request  
source concerned.)  
[6] Enabling multiple interrupts  
To enable another higher priority interrupt while processing the accepted interrupt (i.e., enabling multiple  
interrupts), set the PSW register IE bit to "1".  
[7] Branching to the internal peripheral I/O interrupt handler  
Branch to the start address of the interrupt handler that was read out in [5].  
[8] Processing in the internal peripheral I/O interrupt handler  
[9] Disabling interrupts  
Clear the PSW register IE bit to "0" to disable interrupts.  
32180 Group User’s Manual (Rev.1.0)  
5-15  
 复制成功!