
CHAPTER 2 PIN FUNCTIONS
24
2.2 PIN FUNCTIONS
2.2.1 Normal Operating Mode
(1) P00 to P07 (Port 0) ... 3-state input/output
Port 0 is an 8-bit input/output port with an output latch, and has direct transistor drive capability. Input/output can be specified
bit-wise by means of the port 0 mode register (PM0). Each pin incorporates a software programmable pull-up resistor.
P00 to P03 and P04 to P07 can output the port 0 buffer register (P0L, P0H) contents at any time interval as 4-bit or 8-bit
real-time output port. The real-time output port control register (RTPC) is used to select whether this port is used as a normal
output port or a real-time output port.
When RESET is input, port 0 is set as an input port (output high-impedance state), and the output latch contents are
undefined.
(2) P10 to P17 (Port 1) ... 3-state input/output
Port 1 is an 8-bit input/output port with an output latch. Input/output can be specified bit-wise by means of the port 1 mode
register (PM1). Each pin incorporates a software programmable pull-up resistor. This port has direct LED drive capability.
Pins P10 and P11 are also made to function as PWM output pins by means of the PWM control register (PWMC), and pins
P12 to P14 can also be made to function as serial input/output pins by means of the port 1 mode control register (PMC1).
When RESET is input, port 1 is set as an input port (output high-impedance state), and the output latch contents are
undefined.
Table 2-1 Port 1 Operating Modes
Pin Name
Port Mode
Control Signal Input/Output Mode
Operation to Operate as Control Pin
P10
Input/output port
PWM0 output
Set (to 1) EN0 bit of PWMC
P11
PWM1 output
Set (to 1) EN1 bit of PWMC
P12
ASCK2/SCK2 input/output
Set (to 1) PMC12 bit of PMC1
P13
RxD2/SI2 input
Set (to 1) PMC13 bit of PMC1
P14
TxD2/SO2 output
Set (to 1) PMC14 bit of PMC1
P15 to P17
—
—