Mitsubishi microcomputers
M16C / 62A Group
Interrupt
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Interrupts and Interrupt Vector Tables
If an interrupt request is accepted, a program branches to the interrupt routine set in the interrupt vector
table. Set the first address of the interrupt routine in each vector table. Figure 1.11.2 shows the format for
specifying the address.
Two types of interrupt vector tables are available 鈥?fixed vector table in which addresses are fixed and
variable vector table in which addresses can be varied by the setting.
MSB
LSB
Low address
Mid address
0000
0000
High address
0000
Vector address + 0
Vector address + 1
Vector address + 2
Vector address + 3
Figure 1.11.2. Format for specifying interrupt vector addresses
鈥?Fixed vector tables
The fixed vector table is a table in which addresses are fixed. The vector tables are located in an area
extending from FFFDC
16
to FFFFF
16
. One vector table comprises four bytes. Set the first address of
interrupt routine in each vector table. Table 1.11.1 shows the interrupts assigned to the fixed vector
tables and addresses of vector tables.
Table 1.11.1. Interrupts assigned to the fixed vector tables and addresses of vector tables
Interrupt source
Undefined instruction
Overflow
BRK instruction
Vector table addresses
Address (L) to address (H)
FFFDC
16
to FFFDF
16
FFFE0
16
to FFFE3
16
FFFE4
16
to FFFE7
16
Remarks
Interrupt on UND instruction
Interrupt on INTO instruction
If the vector contains FF
16
, program execution starts from
the address shown by the vector in the variable vector table
There is an address-matching interrupt enable bit
Do not use
Address match
FFFE8
16
to FFFEB
16
Single step (Note)
FFFEC
16
to FFFEF
16
Watchdog timer
FFFF0
16
to FFFF3
16
________
DBC (Note)
FFFF4
16
to FFFF7
16
Do not use
_______
NMI
FFFF8
16
to FFFFB
16
External interrupt by input to NMI pin
Reset
FFFFC
16
to FFFFF
16
Note: Interrupts used for debugging purposes only.
47