CHAPTER 7 INTERRUPT/EXCEPTION PROCESSING FUNCTION
156
User’s Manual U15195EJ5V0UD
(1) External interrupt mode registers 1, 2 (INTM1, INTM2)
These registers specify the valid edge for external interrupt requests (INTP0 to INTP4), input via external
pins.
The correspondence between each register and the external interrupt requests that register controls is shown
below.
•
INTM1: INTP0, INTP1, INTP2/ADTRG0, INTP3/ADTRG1
•
INTM2: INTP4
INTP2 and INTP3 function alternately as ADTRG0 and ADTRG1 (A/D converter external trigger input).
Therefore, if the external trigger mode has been set by the TRG0 to TRG2 bits of A/D converter mode register
n0 (ADSCMn0), setting the ES20 and ES21, and ES30 and ES31 bits of INTM1 also specifies the valid edge
of the external trigger input (ADTRG0 and ADTRG1) (n = 0, 1).
The valid edge can be specified independently for each pin (rising edge, falling edge, or both rising and falling
edges).
These registers can be read/written in 8-bit or 1-bit units.
7
ES31
INTM1
6
ES30
5
ES21
4
ES20
3
ES11
2
ES10
1
ES01
0
ES00
Address
FFFFF882H
After reset
00H
INTP3/ADTRG1
INTP2/ADTRG0
INTP1
INTP0
7
0
INTM2
6
0
5
0
4
0
3
0
2
0
1
ES41
0
ES40
Address
FFFFF884H
After reset
00H
INTP4
Bit position
Bit name
Function
Specifies the valid edge of the INTPn, ADTRG0 and ADTRG1 pins.
ESn1 ESn0
Valid
edge
0 0
Falling
edge
0 1
Rising
edge
1 0
Setting
prohibited
1
1
Both rising and falling edges
7 to 0
(INTM1),
1, 0
(INTM2)
ESn1, ESn2
(n = 0 to 4)