36
CHAPTER 2 PIN FUNCTION
Preliminary User’s Manual U16035EJ1V0UM
2.2 Description of Pin Functions
2.2.1 P00 to P03 (Port 0)
These are 4-bit I/O ports. Besides serving as I/O ports, they function as an external interrupt input, and A/D
converter external trigger input.
The following operating modes can be specified in 1-bit units.
(1) Port mode
These ports function as 4-bit I/O ports.
P00 to P03 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
These ports function as an external interrupt request input, and A/D converter external trigger input.
(a) INTP0 to INTP3
INTP0 to INTP3 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 mask
flag (PMK3) to 1.
2.2.2 P10 to P13 (Port 1)
These are 4-bit input-only ports. Besides serving as input ports, they function as an A/D converter analog input.
The following operating modes can be specified in 1-bit units.
(1) Port mode
These ports function as 4-bit input-only ports.
(2) Control mode
These ports function as A/D converter analog input pins (ANI0 to ANI3).