English
Language : 

SH7709S Datasheet, PDF (636/807 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series
19.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 19.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.
PCDR retains its previous value in standby mode and sleep mode, and in a manual reset.
Table 19.6 Port C Data Register (PCDR) Read/Write Operations
PCnMD1
0
1
PCnMD0
0
1
0
1
Pin State
Other function
(see table 18.1)
Output
Input (Pull-up
MOS on)
Input (Pull-up
MOS off)
Read
Write
PCDR value Value is written to PCDR, but does not
affect pin state
PCDR value Write value is output from pin
Pin state
Value is written to PCDR, but does not
affect pin state
Pin state
Value is written to PCDR, but does not
affect pin state
(n = 7 to 0)
Rev. 5.00, 09/03, page 592 of 760