Datasheet
Rev. 3.00, 03/04, page 236 of 830
8.12.3 Port C Input Data Register (PCPIN)
PCPIN indicates the pin states of port C.
Bit Bit Name Initial Value R/W Description
7 PC7PIN Undefined*
1
R
6 PC6 PIN Undefined*
1
R
5 PC5 PIN Undefined*
1
R
4 PC4 PIN Undefined*
1
R
3 PC3 PIN Undefined*
1
R
2 PC2 PIN Undefined*
1
R
1 PC1 PIN Undefined*
1
R
0 PC0 PIN Undefined*
1
R
When this register is read, the pin state is read.
This register is assigned to the same address as that
of PCDDR. When this register is written to, data is
written to PCDDR and the port C setting is then
changed.
Note: The initial values are determined in accordance with the states of PC7 to PC0 pins.
8.12.4 Pin Functions
Port C is capable of functioning as the input and output of IIC_2, IIC_3, and IIC_4, and the
PWMX output. The relationship between the register settings and pin function is described below.
• PC7/PWX3
The pin function is switched as shown below according to the combination of the OEB bit of
the 14-bit PWMX DACR and the PC7DDR.
OEB 0 1
PC7DDR 0 1
Pin Function PC7 input pin PC7 output pin PWX3 output pin
• PC6/PWX2
The pin function is switched as shown below according to the combination of the OEA bit of
the 14-bit PWMX DACR and the PC6DDR.
OEA 0 1
PC6DDR 0 1
Pin Function PC6 input pin PC6 output pin PWX2 output pin