English
Language : 

SH7729R Datasheet, PDF (682/855 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series
20.4.2 Port C Data Register (PCDR)
Bit:
Initial value:
R/W:
7
PC7DT
0
R/W
6
PC6DT
0
R/W
5
PC5DT
0
R/W
4
PC4DT
0
R/W
3
PC3DT
0
R/W
2
PC2DT
0
R/W
1
PC1DT
0
R/W
0
PC0DT
0
R/W
The port C data register (PCDR) is an 8-bit readable/writable register that stores data for pins
PTC7 to PTC0. Bits PC7DT to PC0DT correspond to pins PTC7 to PTC0. When the pin function
is general output port, if the port is read, the value of the corresponding PCDR bit is returned
directly. When the function is general input port, if the port is read, the corresponding pin level is
read. Table 20.6 shows the function of PCDR.
PCDR is initialized to H'00 by a power-on reset, after which the general input port function (pull-
up MOS on) is set as the initial pin function, and the corresponding pin levels are read.
Table 20.6 Port C Data Register (PCDR) Read/Write Operations
PCnMD1
0
1
PCnMD0
0
1
0
1
Pin State
Other function
(See table 19.1)
Output
Input (Pull-up
MOS on)
Input (Pull-up
MOS off)
Read
PCDR value
PCDR value
Pin state
Pin state
Write
Value is written to PCDR, but does not
affect pin state
Write value is output from pin
Value is written to PCDR, but does not
affect pin state
Value is written to PCDR, but does not
affect pin state
(n = 7 to 0)
Rev. 5.0, 09/03, page 636 of 806