English
Language : 

SH7059 Datasheet, PDF (718/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
23. I/O Ports (I/O)
When a pin functions as a general output, if a value is written to PDDR, that value is output directly from the pin, and if
PDDR is read, the register value is returned directly regardless of the pin state.
When a pin functions as a general input, if PDDR is read, the pin state, not the register value, is returned directly. If a
value is written to PDDR, although that value is written into PDDR, it does not affect the pin state. Table 23.8 summarizes
port D data register read/write operations.
PDDR 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 and 14— Reserved: These bits are always read as 0. The write value should always be 0.
Table 23.8 Port D Data Register (PDDR) Read/Write Operations
Bits 13 to 0:
PDIOR
0
1
Pin Function
Read
General input
Pin state
Other than general input Pin state
General output
PDDR value
Other than general
output
PDDR value
Write
Value is written to PDDR, but does not affect pin state
Value is written to PDDR, but does not affect pin state
Write value is output from pin
Value is written to PDDR, but does not affect pin state
23.5.3 Port D Port Register (PDPR)
Bit: 15
—
Initial value: 0
R/W: R
14
13
12
11
10
9
8
— PD13PR PD12PR PD11PR PD10PR PD9PR PD8PR
0
PD13 PD12 PD11 PD10 PD9 PD8
R
R
R
R
R
R
R
Bit: 7
6
5
4
3
2
1
0
PD7PR PD6PR PD5PR PD4PR PD3PR PD2PR PD1PR PD0PR
Initial value: PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0
R/W: R
R
R
R
R
R
R
R
The port D port register (PDPR) is a 16-bit read-only register that always stores the value of the port D pins. The CPU
cannot write data to this register. Bits PD13PR to PD0PR correspond to pins PD13/PULS6/HTxD0/HTxD1 to
PD0/TIO1A. If PDPR is read, the corresponding pin values are returned.
Rev.3.00 Mar. 12, 2008 Page 628 of 948
REJ09B0177-0300