
50
CHAPTER 2 PIN FUNCTIONS
User’s Manual U14701EJ3V0UD
2.2 Description of Pin Functions
2.2.1 P00 to P05 (Port 0)
These are 6-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 buzzer output function.
The following operation modes can be specified in 1-bit units.
(1) Port mode
These ports function as 6-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 INTP5
INTP0 to INTP5 are external interrupt request input pins which can specify valid edges (rising edge, falling
edge, and both rising and falling edges).
(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) BUZ
Buzzer output pin.
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).