Datasheet
Rev. 3.00, 03/04, page 235 of 830
8.12 Port C
Port C is an 8-bit multi-function I/O port that functions as PWMX output pins or input/output pins
of IIC_2, 3, 4. 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)
8.12.1 Port C Data Direction Register (PCDDR)
PCDDR is used to specify the input/output attribute of each pin of port C.
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 a given bit is set to 1, the corresponding pin will
function as an output port, and when cleared to 0, it
functions as an input port.
This register is assigned to the same address as that
of PCPIN. When this address is read, the port C
states are returned.
8.12.2 Port C Output Data Register (PCODR)
PCODR stores output data for port C.
Bit Bit Name Initial Value R/W Description
7 PC7ODR 0 R/W
6 PC6ODR 0 R/W
5 PC5ODR 0 R/W
4 PC4ODR 0 R/W
3 PC3ODR 0 R/W
2 PC2ODR 0 R/W
1 PC1ODR 0 R/W
0 PC0ODR 0 R/W
The PCODR register stores the output data for the
pins that are used as a general output port.