
Interrupt Controller
9-31
[Cautions]
1.
Maintain external pin interrupt signals for at least 10, 5, or 2.5 SYSCLK cycles when
n
fr = (MCLK frequency/
SYSCLK frequency) = 1, 2, or 4, respectively. The interrupt cannot be detected if the signal is not maintained
for at least that long.
However, when recovering from HALT mode in response to an external pin interrupt signal, maintain the
signal for at least 22, 11, or 5.5 SYSCLK cycles when
n
fr = 1, 2, or 4, respectively. Furthermore, when
recovering from STOP mode in response to an external pin interrupt signal, maintain the signal for at least 10,
5, 2.5 SYSCLK cycles when
n
fr = 1, 2, or 4, respectively, if there is just one interrupt factor; if there are
multiple interrupt factors, continue the external pin interrupt request until the interrupt factors are confirmed by
the interrupt processing program.
2
Although it is possible to recover from STOP, HALT, or SLEEP mode in response to an external pin (IRQ7 to
0) interrupt, the trigger conditions for recovery differ for each mode, as indicated in the table below.
Mode
Trigger conditions for recovery
STOP or HALT mode
"H"/"L" level (recovery in response to edge input is not possible)
SLEEP mode
Positive edge/negative edge/"H" level/"L" level
3
When writing a GnICR register in an interrupt program in order to clear IR and ID and then returning from the
interrupt program, in order to gain synchronization with the bus controller store buffer be certain to perform an
I/O bus access between the execution of the instruction (movbu, etc.) that is used to write the clear data to the
GnICR register and the execution of the instruction to return from the interrupt program.
Example:
After clearing a GnICR register, read it again.
mov
0x0f:b,d0
; (d0 = clear data)
movbu d0,(GnICR)
; Clears the GnICR flags (GnICR = address of GnICR register to be cleared)
movhu (GnICR),d1
; I/O bus access
(Reads the GnICR register that was cleared)
rti
; Instruction to return from interrupt program
If there is no I/O bus access between the instruction that is used to write the clear data to the GnICR register and
the instruction to return from the interrupt program, the return from the interrupt program is not guaranteed.
Misoperation will occur when executing the interrupt program again after returning, especially when the
RETURN instruction is described after a clear data write.
x
mov
0x0f:b,d0
;
movbu d0,(GnICR)
; Clears the GnICR flags
rti
; Instruction to return from interrupt program
Summary of Contents for MN103001G/F01K
Page 1: ...MICROCOMPUTER MN1030 MN103001G F01K LSI User s Manual Pub No 23101 050E ...
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 9: ...Table of Contents List of Figures and Tables 0 ...
Page 26: ...xviii ...
Page 27: ...1 0 1 General Specifications ...
Page 35: ...2 CPU 2 ...
Page 57: ...3 Extension Instruction Specifications 3 ...
Page 96: ...Extension Instruction Specifications 3 40 ...
Page 97: ...4 Memory Modes 3 4 ...
Page 102: ...Memory Modes 4 6 ...
Page 103: ...5 Operating Mode 5 ...
Page 107: ...6 Clock Generator 6 13 ...
Page 111: ...7 Internal Memory 7 ...
Page 114: ...Internal Memory 7 4 ...
Page 115: ...8 Bus Controller BC 8 ...
Page 189: ...9 Interrupt Controller 9 ...
Page 220: ...Interrupt Controller 9 32 ...
Page 221: ...10 8 bit Timers 9 10 ...
Page 254: ...8 bit Timers 10 34 ...
Page 255: ...11 16 bit Timers 11 ...
Page 292: ...16 bit Timers 11 38 ...
Page 293: ...12 Watchdog Timer 11 12 ...
Page 302: ...Watchdog Timer 12 10 ...
Page 303: ...13 Serial Interface 13 ...
Page 354: ...Serial Interface 13 52 ...
Page 355: ...14 A D Converter 14 ...
Page 367: ...15 I O Ports 15 ...
Page 431: ...16 Internal Flash Memory 16 ...
Page 439: ...17 17 Ordering Mask ROM ...
Page 442: ...Ordering Mask ROM 17 4 ...
Page 443: ...Appendix ...