English
Language : 

HD64F2149 Datasheet, PDF (292/1035 Pages) Renesas Technology Corp – Hitachi 16-Bit Single-Chip Microcomputer
Port C and port D Data Direction Registers (PCDDR, PDDDR)
Bit
Initial value
Read/Write
7
6
5
4
3
2
1
0
PC7DDR PC6DDR PC5DDR PC4DDR PC3DDR PC2DDR PC1DDR PC0DDR
0
0
0
0
0
0
0
0
W
W
W
W
W
W
W
W
Bit
Initial value
Read/Write
7
6
5
4
3
2
1
0
PD7DDR PD6DDR PD5DDR PD4DDR PD3DDR PD2DDR PD1DDR PD0DDR
0
0
0
0
0
0
0
0
W
W
W
W
W
W
W
W
PCDDR and PDDDR are 8-bit write-only registers, the individual bits of which select input or
output for the pins of port C and port D. PCDDR and PDDDR are at the same addresses as PCPIN
and PDPIN, respectively, and if read, will return the port C and port D pin states.
Setting a PCDDR or PDDDR bit to 1 makes the corresponding pin on port C or port D an output
pin. Clearing the bit to 0 makes the pin an input pin.
PCDDR and PDDDR are initialized to H'00 by a reset and in hardware standby mode. They retain
their prior states in software standby mode.
Port C and port D Output Data Registers (PCODR, PDODR)
Bit
Initial value
Read/Write
7
6
5
4
3
2
1
0
PC7ODR PC6ODR PC5ODR PC4ODR PC3ODR PC2ODR PC1ODR PC0ODR
0
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Initial value
Read/Write
7
6
5
4
3
2
1
0
PD7ODR PD6ODR PD5ODR PD4ODR PD3ODR PD2ODR PD1ODR PD0ODR
0
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
PCODR and PDODR are 8-bit read/write registers that store output data for the pins on ports C
and D (PC7 to PC0 and PD7 to PD0). PCODR and PDODR can always be read from or written to,
regardless of the PCDDR and PDDDR settings.
PCODR and PDODR are initialized to H'00 by a reset and in hardware standby mode. They retain
their prior states in software standby mode.
258