51
CHAPTER 2 PIN FUNCTIONS
INTP0 through INTP6 (Interrupt from Peripherals)
These pins input external interrupt requests. When the valid edge specified by external interrupt mode
registers (INTM0 and INTM1) is detected on the INTP0 to INTP6 pins, an interrupt occurs (refer to
CHAPTER 15 EDGE DETECTION FUNCTION
).
The INTP0 through INTP4 pins can also be used as external trigger input pins of each function, as
follows:
INTP0 ... Capture trigger input pin of capture/compare register 00 (CC00) of timer 0
INTP1 ... Capture trigger input pin of capture/compare register 01 (CC01) of timer 0
INTP2 ... Capture trigger input pin of capture/compare register 02 (CC02) of timer 0
INTP3 ... Capture trigger input pin of capture/compare register 03 (CC03) of timer 0
INTP4 ... External trigger input pin of A/D converter
(iii) TI2, TI3 (Timer Input)
These are external clock input pins of timers/counters 2 and 3.
(b) Control signal output mode
The P21 through P24 pins can be used as the timer output pins (TO00 through TO03) of timer 0 in 1-bit units
if so specified by the port 2 mode control register (PMC2).
(4) P30 through P37 (Port 3) ... 3-state I/O
Port 3 is an 8-bit I/O port with an output latch. This port can be set in the input or output mode in 1-bit units by using
port 3 mode register (PM3).
In addition to the input/output port function, port 3 also has a function to input or output control signals. The
operation mode of each pin can be specified by using port 3 mode control register (PMC3), as shown in Table 2-
4. The level of each pin of this port can always be read or tested regardless of the multiplexed function.
When RESET is input, this port is set in the input mode (output high-impedance status), and the contents of the
output latch are undefined.
Table 2-4. Operation Mode of Port 3
(n = 0 to 7)
Mode
Port Mode
Control Signal I/O Mode
Setting condition
PMC3n = 0
PMC3n = 1
P30
I/O port
TO10 output
P31
TO11 output
P32
RxD/SI1 input
P33
TxD/SO1 output
P34
ASCK input/SCK1 I/O
P35
RxD2/SI2 input
P36
TxD2/SO2 output
P37
ASCK2 input/SCK2 I/O