English
Language : 

HD64F2168 Datasheet, PDF (275/874 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
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
6
PC6DDR 0
5
PC5DDR 0
4
PC4DDR 0
3
PC3DDR 0
W When a given bit is set to 1, the corresponding pin will
W function as an output port, and when cleared to 0, it
functions as an input port.
W This register is assigned to the same address as that
W of PCPIN. When this address is read, the port C
W states are returned.
2
PC2DDR 0
W
1
PC1DDR 0
W
0
PC0DDR 0
W
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
6
PC6ODR 0
R/W The PCODR register stores the output data for the
R/W pins that are used as a general output port.
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
Rev. 3.00, 03/04, page 235 of 830