21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

InterruptMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERInterrupt Enable Flag (I flag)The interrupt enable flag (I flag) controls the enabling and disabling of maskable interrupts. Setting thisflag to “1” enables all maskable interrupts; setting it to “0” disables all maskable interrupts. This flag is setto “0” after reset.Interrupt Request BitThe interrupt request bit is set to "1" by hardware when an interrupt is requested. After the interrupt isaccepted and jumps to the corresponding interrupt vector, the request bit is set to "0" by hardware. Theinterrupt request bit can also be set to "0" by software. (Do not set this bit to "1").Interrupt Priority Level Select Bit and Processor Interrupt Priority Level (IPL)Set the interrupt priority level using the interrupt priority level select bit, which is one of the component bitsof the interrupt control register. When an interrupt request occurs, the interrupt priority level is comparedwith the IPL. The interrupt is enabled only when the priority level of the interrupt is higher than the IPL.Therefore, setting the interrupt priority level to “0” disables the interrupt.Table 1.14.3 shows the settings of interrupt priority levels and Table 1.14.4 shows the interrupt levelsenabled, according to the consist of the IPL.The following are conditions under which an interrupt is accepted:· interrupt enable flag (I flag) = 1· interrupt request bit = 1· interrupt priority level > IPLThe interrupt enable flag (I flag), the interrupt request bit, the interrupt priority select bit, and the IPL areindependent, and they are not affected by one another.Table 1.14.3. Settings of interrupt prioritylevelsTable 1.14.4. Interrupt levels enabled accordingto the contents of the IPLInterrupt prioritylevel select bitInterrupt prioritylevelPriorityorderIPLEnabled interrupt priority levelsb2 b1 b0IPL2 IPL1 IPL00 0 0Level 0 (interrupt disabled)0 0 0Interrupt levels 1 and above are enabled0 0 1Level 1Low0 0 1Interrupt levels 2 and above are enabled0 1 0Level 20 1 0Interrupt levels 3 and above are enabled0 1 1Level 30 1 1Interrupt levels 4 and above are enabled1 0 0Level 41 0 0Interrupt levels 5 and above are enabled1 0 1Level 51 0 1Interrupt levels 6 and above are enabled1 1 0Level 61 1 0Interrupt levels 7 and above are enabled1 1 1Level 7High1 1 1All maskable interrupts are disabled58

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!