English
Language : 

SH7018 Datasheet, PDF (323/431 Pages) Renesas Technology Corp – SuperH™ RISC engine
15.4.2 Port C Data Register (PCDR)
The port C data register (PCDR) is a 16-bit readable/writable register that stores port C data. The
bits of this register correspond to the various pins.
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, that value is written to PCDR but it does not affect
the pin state. Table 15.6 summarizes the port C data register read/write operations.
PCDR is initialized by an external power-on reset. However, it is not initialized by a WDT reset,
in standby mode, or in sleep mode.
Bit: 15
14
13
12
11
10
PC15DR PC14DR PC13DR PC12DR PC11DR PC10DR
Initial value:
0
0
0
0
0
0
R/W: R/W
R/W
R/W
R/W
R/W
R/W
9
PC9DR
0
R/W
8
PC8DR
0
R/W
Bit:
7
PC7DR
Initial value:
0
R/W: R/W
6
PC6DR
0
R/W
5
PC5DR
0
R/W
4
PC4DR
0
R/W
3
PC3DR
0
R/W
2
PC2DR
0
R/W
1
PC1DR
0
R/W
0
PC0DR
0
R/W
Table 15.6 Port C Data Register (PCDR) Read/Write Operations
PCIOR Pin Function
0
General input
Other than general
input
1
General output
Other than general
output
Read
Write
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
PCDR value Write value is output from pin
PCDR value Value is written to PCDR, but does not affect pin
state
307