CHAPTER 7 INTERRUPT/EXCEPTION PROCESSING FUNCTION
159
User’s Manual U15195EJ5V0UD
(3) Valid edge selection register (SESC)
This register specifies the valid edge for external interrupt requests (INTP30, INTP31, TCLR3, TI3), input via
external pins.
The valid edge can be specified independently for each pin (rising edge, falling edge, or both rising and falling
edges).
This register can be read/written in 8-bit or 1-bit units.
Cautions 1. The TM3CAE and TM3CE bits of timer control register 30 (TMC30) must be set (1) before
using the TI3/TCLR3/INTP30 and TO3/INTP31 pins as INTP30 and INTP31, even if not
using timer 3.
2. Setting the trigger mode of the INTP30, INTP31, TCLR3, or TI3 pin should be performed
after setting the PMC2 register.
If the PMC2 register is set after setting the SESC register, an invalid interrupt may occur
when the PMC2 register is set.
7
TES31
SESC
6
TES30
5
CES31
4
CES30
3
IES311
2
IES310
1
IES301
0
IES300
Address
FFFFF689H
After reset
00H
TI3
TCLR3
INTP31
INTP30
Bit position
Bit name
Function
7, 6
TES31,
TES30
Specifies the valid edge of the INTP30, INTP31, TCLR3, or TI3 pins.
xESn1 xESn0
Valid
edge
0 0
Falling
edge
5, 4
CES31,
CES30
0 1
Rising
edge
1 0
Setting
prohibited
1
1
Both rising and falling edges
3, 2
IES311,
IES310
1, 0
TES301,
TES300
Remark
n = 3, 30, 31