|
M30218 Datasheet, PDF (58/467 Pages) Mitsubishi Electric Semiconductor – M30218 Group | |||
|
◁ |
IPnrtecrrauupttions for Interrupts
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Precautions for Interrupts
(1) Reading address 0000016
⢠When maskable interrupt is occurred, CPU read the interrupt information (the interrupt number and
interrupt request level) in the interrupt sequence.
The interrupt request bit of the certain interrupt written in address 0000016 will then be set to â0â.
Reading address 0000016 by software sets enabled highest priority interrupt source request bit to â0â.
Though the interrupt is generated, the interrupt routine may not be executed.
Do not read address 0000016 by software.
(2) Setting the stack pointer
⢠The value of the stack pointer immediately after reset is initialized to 000016. Accepting an interrupt
before setting a value in the stack pointer may become a factor of runaway. Be sure to set a value in
the stack pointer before accepting an interrupt.
(3) External interrupt
________
⢠Either an âLâ level or an âHâ level of at least 250 ns width is necessary for the signal input to pins INT0
________
through INT5 regardless of the CPU operation clock.
________
________
⢠When the polarity of the INT0 through INT5 pins is changed, the interrupt request bit is sometimes set to
â1â. After changing the polarity, set the interrupt request bit to â0â. Figure 31 shows the procedure for
______
changing the INT interrupt generate factor.
Clear the interrupt enable flag to â0â
(Disable interrupt)
Set the interrupt priority level to level 0
(Disable INTi interrupt)
Set the polarity select bit
Clear the interrupt request bit to â0â
Set the interrupt priority level to level 1 to 7
(Enable the accepting of INTi interrupt request)
Set the interrupt enable flag to â1â
(Enable interrupt)
______
Figure 31. Switching condition of INT interrupt request
44
|
▷ |