R01UH0092EJ0110 Rev.1.10
Page 207 of 807
Jul 31, 2012
M16C/64C Group
14. Interrupts
14.6
Interrupts and Interrupt Vectors
One interrupt vector consists of 4 bytes. Set the start address of each interrupt routine in the respective
interrupt vectors. When an interrupt request is accepted, the CPU branches to the address set in the
corresponding interrupt vector. Figure 14.2 shows an Interrupt Vector.
Figure 14.2
Interrupt Vector
14.6.1
Fixed Vector Tables
The fixed vector tables are allocated to addresses from FFFDCh to FFFFFh. Table 14.5 lists the Fixed
Vector Tables. In the flash memory MCU version, the vector addresses (H) of fixed vectors are used for
the ID code check function and OFS1 address. For details, refer to 30. “Flash Memory”.
Table 14.5
Fixed Vector Tables
Interrupt Source
Vector Table Addresses
Address (L) to Address (H)
Reference
Undefined instruction (UND instruction)
FFFDCh to FFFDFh
M16C/60, M16C/20,
M16C/Tiny Series Software
Manual
Overflow (INTO instruction)
FFFE0h to FFFE3h
BRK instruction
FFFE4h to FFFE7h
Address match
FFFE8h to FFFEBh
14.11 “Address Match
Interrupt”
Single-step
FFFECh to FFFEFh
-
Watchdog timer,
oscillator stop/restart detect,
voltage monitor 1, voltage monitor 2
FFFF0h to FFFF3h
15. “Watchdog Timer”
8. “Clock Generator”
7. “Voltage Detector”
DBC
FFFF4h to FFFF7h
-
NMI
FFFF8h to FFFFBh
Reset
FFFFCh to FFFFFh
Notes:
1.
Do not use this interrupt because it is provided exclusively for use by development tools.
2.
If the value of address FFFE6h is FFh, program execution starts from the address shown by the
vector in the relocatable vector table.
Middle address
Lower address
0 0 0 0
Upper
address
0 0 0 0
0 0 0 0
Vector address (L)
Vector address (H)
LSB
MSB
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...