304
µ
PD78214 Sub-Series
(2) Selecting INTP5 or INTAD
Interrupt INTP5 or INTAD is selected by the A/D converter mode register (ADM). (Either of these interrupts
is selected automatically, according to the mode of operation specified for the A/D converter.)
Both 8-bit manipulation instruction and bit manipulation instruction can be used to read data from and write
data to the ADM register. The format of this register is shown in Fig. 12-2. See Chapter 8 for control of the
A/D converter.
When the RESET signal is input, the register is reset to 00H.
Fig. 12-2 ADM Register Format
12.2 INTERRUPT HANDLING CONTROL REGISTERS
The following six registers control interrupt handling.
• Interrupt request flag register (IF0)
• Interrupt mask register (MK0)
• Interrupt service mode register (ISM0)
• Priority specification flag register (PR0)
• Interrupt status register (IST)
• Program status word (PSW)
The IF0, MK0, ISM0, and PR0 are 16-bit read/write registers. The contents of these registers can be manipulated
in either 16- or 8-bit units. In addition, each bit of these registers can be set and reset by a bit manipulation
instruction independently of the other bits. The IST and PSW are 8-bit read/write registers, whose contents can
be manipulated in either 8- or 1-bit units. The IE flag in the PSW can be manipulated by a dedicated instruction.
Fig. 12-3 through 12-8 show the formats of these registers.
Table 12-3 lists the interrupt request flags, interrupt mask flags, interrupt service mode flags, and priority
specification flags corresponding to each interrupt request source.
CS
7
TRG
6
0
5
FR
4
ANIS2
3
ANIS1
2
ANIS0
1
MS
0
ADM
CS
INTP5 (valid edge input to INTP5)
Selects interrupt request source
0
TRG
×
INTAD (each time A/D conversion ends)10
INTP5 (valid edge input to INTP5)10
INTAD (each time A/D conversion ends)11
MS
×
0
1
×
These bits do not affect interrupt request source
selection. (For details about controlling
A/D converter operation, seeFig. 8-3.)