English
Language : 

SH7059 Datasheet, PDF (716/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
23. I/O Ports (I/O)
23.4.2 Port C Data Register (PCDR)
Bit: 15
14
13
12
11
10
9
8
—
—
—
—
—
—
—
—
Initial value: 0
0
0
0
0
0
0
0
R/W: R
R
R
R
R
R
R
R
Bit: 7
6
5
4
3
2
1
0
—
—
—
PC4 PC3 PC2 PC1 PC0
DR
DR
DR
DR
DR
Initial value: 0
0
0
0
0
0
0
0
R/W: R
R
R
R/W R/W R/W R/W R/W
The port C data register (PCDR) is a 16-bit readable/writable register that stores port C data. Bits PC4DR to PC0DR
correspond to pins PC4/IRQ0 to PC0/TxD1.
When a pin functions as a general output, if a value is written to PCDR, that value is output directly from the pin, and if
PCDR is read, the register value is returned directly regardless of the pin state.
When a pin functions as a general input, if PCDR is read, the pin state, not the register value, is returned directly. If a
value is written to PCDR, although that value is written into PCDR, it does not affect the pin state. Table 23.6 summarizes
port C data register read/write operations.
PCDR is initialized to H'0000 by a power-on reset (excluding a WDT power-on reset), in hardware standby mode, and in
software standby mode. It is not initialized in sleep mode.
• Bits 15 to 5—Reserved: These bits are always read as 0. The write value should always be 0.
Table 23.6 Port C Data Register (PCDR) Read/Write Operations
Bits 4 to 0:
PCIOR
0
1
Pin Function
Read
General input
Pin state
Other than general input Pin state
General output
PCDR value
Write
Value is written to PCDR, but does not affect pin state
Value is written to PCDR, but does not affect pin state
Write value is output from pin
Other than general
output
PCDR value
Value is written to PCDR, but does not affect pin state
Rev.3.00 Mar. 12, 2008 Page 626 of 948
REJ09B0177-0300