Download Print this page

Advertisement

Section 8 I/O Ports
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
7
PC7DDR
6
PC6DDR
5
PC5DDR
4
PC4DDR
3
PC3DDR
2
PC2DDR
1
PC1DDR
0
PC0DDR
Rev. 1.00 Mar. 12, 2008 Page 252 of 1178
REJ09B0403-0100
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
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.

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472