
39
Chapter 2
Pin Function (μPD780828A Subseries)
User’s Manual U16504EE1V1UD00
2.3 Description of Pin Functions
2.3.1 P00 to P03 (Port 0)
This is an 4-bit input/output port.
B
esides serving as input/output port the external interrupt input is
implemented.
(1)
Port mode
P00 to P03 function as input/output ports. P00 to P03 can be specified for input or output bit-wise
with a port mode register. When they are used as input ports, pull-up resistors can be connected
to them by defining the pull-up resistor option register.
(2)
Control mode
In this mode this port operates as external interrupt input.
(a) INTP0 to INTP2
INTP0 to INTP2 are external input pins which can specify valid edges (rising, falling or rising
and falling) of this external interrupt pins.
(b) CCLK
CCLK is the input pin for an external CAN clock.
2.3.2 P10 to P14 (Port 1)
These pins constitute a 5-bit input only port. In addition, they are also used to input A/D converter ana-
log signals. The following operating modes can be specified bit-wise.
(1)
Port mode
In this mode, P10 to P14 function as a 5-bit input only port.
(2)
Control mode
In this mode, P10 to P14 function as A/D converter analog input pins (ANI0 to ANI4).
2.3.3 P20 to P27 (Port 2)
These pins constitute an 8-bit output only port. In addition they are also used as PWM output pins to
control meters.
(1)
Port mode
In this mode, P20 to P27 function as an 8-bit output only port.
(2)
Control mode
In this mode, P20 to P27 function as PWM output pins (SM11 to SM14 and SM21 to SM24) for
meter control.