![](http://datasheet.mmic.net.cn/370000/-PD784036Y_datasheet_16681079/-PD784036Y_64.png)
CHAPTER 2 PIN FUNCTIONS
26
Table 2-2 Port 2 Operating Modes
Port
Functions
P20
Input port / NMI input
Note
P21
Input port / INTP0 input / CR11 capture trigger input /
timer/counter 1 count clock / real-time output port trigger signal
P22
Input port / INTP1 input / CR22 capture trigger input
P23
Input port / INTP2 input / CI input
P24
Input port / INTP3 input / CR02 capture trigger
timer/input/counter 0 count clock
P25
Input port / INTP4 input / ASCK input / SCK1 input/output
P26
Input port / INTP5 input / A/D converter external trigger input
P27
Input port / SI0 input
Note
NMI input is acknowledged regardless of whether interrupts are enabled or disabled.
(a) Function as port pins
The pin level can always be read or tested regardless of the dual-function pin operation.
(b) Functions as control signal input pins
(i)
NMI (Non-maskable Interrupt)
The external non-maskable interrupt request input pin. Rising edge detection or falling edge
detection can be specified by means of the external interrupt mode register 0 (INTM0).
(ii)
INTP0 to INTP5 (Interrupt from Peripherals)
External interrupt request input pins. When the valid edge specified by the external interrupt mode register 0,
(INTM0/INTM1) is detected by pins INTP0 to INTP5, an interrupt is generated (see
CHAPTER 21 EDGE
DETECTION FUNCTION
).
In addition, pins INTP0 to INTP3 and INTP5 are also used as external trigger input pins with the various functions
shown below.
INTP0 ....... Timer/counter 1 capture trigger input pin
Timer/counter 1 external count clock input pin
Real-time output port trigger input pin
INTP1 ....... Timer/counter 2 capture trigger input pin to capture register (CR22)
INTP2 ....... Timer/counter 2 external count clock input pin
Capture trigger input pin to capture/compare register (CR21)
INTP3 ....... Timer/counter 0 capture trigger input pin
Timer/counter 0 external count clock input pin
INTP5 ....... A/D converter external trigger input pin