Datasheet

Section 8 I/O Ports
Rev. 2.00 Aug. 20, 2008 Page 254 of 1198
REJ09B0403-0200
8.1.12 Port C
Port C is an 8-bit I/O port. Port C pins can also function as the bus control output, and IIC_2,
IIC_3, and IIC_4 input/output pins. The output format of ports C0 to C5 is NMOS push-pull
output. Port C has the following registers.
Port C data direction register (PCDDR)
Port C output data register (PCODR)
Port C input data register (PCPIN)
(1) Port C Data Direction Register (PCDDR)
The individual bits of PCDDR specify input or output for the port C pins.
Bit Bit Name Initial Value R/W Description
7 PC7DDR 0 W
6 PC6DDR 0 W
5 PC5DDR 0 W
4 PC4DDR 0 W
3 PC3DDR 0 W
2 PC2DDR 0 W
1 PC1DDR 0 W
0 PC0DDR 0 W
When set to 1, the corresponding pins function as
output port pins; when cleared to 0, function as input
port pins.
Since this register is allocated to the same address as
PCPIN, states of the port C pins are returned when
this register is read.