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

MC9S12P64CFT 参数 Datasheet PDF下载

MC9S12P64CFT图片预览
型号: MC9S12P64CFT
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器 [Microcontrollers]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 566 页 / 7414 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC9S12P64CFT的Datasheet PDF文件第124页浏览型号MC9S12P64CFT的Datasheet PDF文件第125页浏览型号MC9S12P64CFT的Datasheet PDF文件第126页浏览型号MC9S12P64CFT的Datasheet PDF文件第127页浏览型号MC9S12P64CFT的Datasheet PDF文件第129页浏览型号MC9S12P64CFT的Datasheet PDF文件第130页浏览型号MC9S12P64CFT的Datasheet PDF文件第131页浏览型号MC9S12P64CFT的Datasheet PDF文件第132页  
Interrupt Module (S12SINTV1)  
4.5  
Initialization/Application Information  
4.5.1  
Initialization  
After system reset, software should:  
1. Initialize the interrupt vector base register if the interrupt vector table is not located at the default  
location (0xFF80–0xFFF9).  
2. Enable I bit maskable interrupts by clearing the I bit in the CCR.  
3. Enable the X bit maskable interrupt by clearing the X bit in the CCR.  
4.5.2  
Interrupt Nesting  
The interrupt request scheme makes it possible to nest I bit maskable interrupt requests handled by the  
CPU.  
I bit maskable interrupt requests can be interrupted by an interrupt request with a higher priority.  
I bit maskable interrupt requests cannot be interrupted by other I bit maskable interrupt requests per  
default. In order to make an interrupt service routine (ISR) interruptible, the ISR must explicitly clear the  
I bit in the CCR (CLI). After clearing the I bit, other I bit maskable interrupt requests can interrupt the  
current ISR.  
An ISR of an interruptible I bit maskable interrupt request could basically look like this:  
1. Service interrupt, that is clear interrupt flags, copy data, etc.  
2. Clear I bit in the CCR by executing the instruction CLI (thus allowing other I bit maskable interrupt  
requests)  
3. Process data  
4. Return from interrupt by executing the instruction RTI  
4.5.3  
Wake Up from Stop or Wait Mode  
CPU Wake Up from Stop or Wait Mode  
4.5.3.1  
Every I bit maskable interrupt request is capable of waking the MCU from stop or wait mode. To determine  
whether an I bit maskable interrupts is qualified to wake-up the CPU or not, the same conditions as in  
normal run mode are applied during stop or wait mode:  
If the I bit in the CCR is set, all I bit maskable interrupts are masked from waking-up the MCU.  
Since there are no clocks running in stop mode, only interrupts which can be asserted asynchronously can  
wake-up the MCU from stop mode.  
The X bit maskable interrupt request can wake up the MCU from stop or wait mode at anytime, even if the  
1
X bit in CCR is set .  
1. The capability of the XIRQ pin to wake-up the MCU with the X bit set may not be available if, for example, the XIRQ pin is  
shared with other peripheral modules on the device. Please refer to the Device section of the MCU reference manual for details.  
S12P-Family Reference Manual, Rev. 1.13  
128  
Freescale Semiconductor  
 复制成功!