46
CHAPTER 2 PIN FUNCTIONS
User’s Manual U15798EJ2V0UD
2.2 Description of Pin Functions
2.2.1 P00 to P07 (Port 0)
These are 8-bit I/O ports. Besides serving as I/O ports, they function as an external interrupt request input, A/
D converter external trigger input, clock output, and timer I/O function.
The following operation modes can be specified in 1-bit units.
(1) Port mode
These ports function as 8-bit I/O ports. They can be specified as input or output ports in 1-bit units with port
mode register 0 (PM0). On-chip pull-up resistors can be used by setting pull-up resistor option register 0 (PU0).
(2) Control mode
In this mode, these ports function as an external interrupt request input, A/D converter external trigger input, clock
output, and buzzer output.
(a) INTP0 to INTP6
INTP0 to INTP6 are external interrupt request input pins for which valid edges (rising edge, falling edge,
and both rising and falling edges) can be specified.
(b) ADTRG
A/D converter external trigger input pin.
Caution When P03 is used as an A/D converter external trigger input, specify the valid edge by bits
1, 2 (EGA00, EGA01) of A/D converter mode register (ADM0) and set interrupt request mask
flag (PMK3) to 1.
(c) PCL
Clock output pin.
(d) TOA0, TOB0
Timer output pins of 8-bit timers A0 and B0.
(e) TMIB0
External count clock input pin to 8-bit timer/event counter B0.
2.2.2 P10 to P17 (Port 1)
These are 8-bit input only ports. Besides serving as input ports, they function as an A/D converter analog input.
The following operation modes can be specified in 1-bit units.
(1) Port mode
These ports function as 8-bit input only ports.
(2) Control mode
These ports function as A/D converter analog input pins (ANI0 to ANI7).