CHAPTER 7 INTERRUPTION/EXCEPTION PROCESSING FUNCTION
285
User’s Manual U14359EJ4V0UM
Address
FFFFF882H
7
ES1031
INTM1
6
ES1030
5
ES1021
4
ES1020
3
ES1011
2
ES1010
1
ES1001
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
ES1000
After reset
00H
Address
FFFFF884H
INTM2
After reset
00H
Address
FFFFF886H
INTM3
After reset
00H
Address
FFFFF888H
INTM4
After reset
00H
ES1331
ES1330
ES1321
ES1320
ES1311
ES1310
ES1301
ES1300
ES1131
ES1130
ES1121
ES1120
ES1111
ES1110
ES1101
ES1100
ES1231
ES1230
ES1221
ES1220
ES1211
ES1210
ES1201
ES1200
INTP103
INTP102
INTP101
INTP100
INTP113
INTP112
INTP111
INTP110
INTP123/ADTRG
INTP122
INTP121
INTP120
INTP133
INTP132
INTP131
INTP130
Bit position
Bit name
Function
Edge Select
Specifies the valid edge of the INTP1nm and ADTRG pins.
ES1nm1
ES1nm0
Operation
0
0
Falling edge
0
1
Rising edge
1
0
Level detection (low-level detection)
Notes 1, 2, 3
1
1
Both rising and falling edges
7 to 0
ES1nm1,
ES1nm0
(n = 0 to 3,
m = 0 to 3)
Notes 1.
The level of the INTP1nm pin is sampled at the interval of the system clock divided by two, and the
P1nIFm bit is latched as an interrupt request when a low level is detected. Therefore, even if the
P1nIFm bit of the interrupt control register (P1nICm) is automatically cleared to 0 when the CPU
acknowledges an interrupt, the P1nIFm bit is immediately set to 1, and an interrupt is generated
continuously. To avoid this, forcibly clear the P1nIFm bit to 0 after making the INTP1nm pin
inactive for an external device in the interrupt service routine (n = 0 to 3, m = 0 to 3).
2.
When a lower priority level-detection interrupt request (INTP1nm) occurs while another interrupt is
being serviced and this newly generated level-detection interrupt request becomes inactive before
the current interrupt service is complete, this new interrupt request (INTP1nm) is held pending. To
avoid acknowledging this INTP1nm interrupt request, clear the P1nIFm bit of the interrupt control
register (n = 0 to 3, m = 0 to 3).
3.
When this pin is used as the ADTRG pin, do not select this setting (level detection).