h8s-2111b Renesas Electronics Corporation., h8s-2111b Datasheet - Page 166

no-image

h8s-2111b

Manufacturer Part Number
h8s-2111b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
7.12
Port C and port D are two sets of 8-bit I/O ports. Port C and port D have the following registers.
• Port C data direction register (PCDDR)
• Port C output data register (PCODR)
• Port C input data register (PCPIN)
• Port C Nch-OD control register (PCNOCR)
• Port D data direction register (PDDDR)
• Port D output data register (PDODR)
• Port D input data register (PDPIN)
• Port D Nch-OD control register (PDNOCR)
7.12.1
PCDDR and PDDDR select input or output for the pins of port C and port D on a bit-by-bit basis.
Rev. 1.00, 05/04, page 132 of 544
Bit
7
6
5
4
3
2
1
0
Bit
7
6
5
4
3
2
1
0
Ports C, D
Port C and Port D Data Direction Registers (PCDDR, PDDDR)
Bit Name
PC7DDR 0
PC6DDR 0
PC5DDR 0
PC4DDR 0
PC3DDR 0
PC2DDR 0
PC1DDR 0
PC0DDR 0
Bit Name
PD7DDR 0
PD6DDR 0
PD5DDR 0
PD4DDR 0
PD3DDR 0
PD2DDR 0
PD1DDR 0
PD0DDR 0
Initial
Value
Initial
Value
R/W
W
W
W
W
W
W
W
W
R/W
W
W
W
W
W
W
W
W
Description
0: Port C pin is an input pin
1: Port C pin is an output pin
PCDDR has the same address as PCPIN, and if read,
the port C pin states will be returned.
Description
0: Port D pin is an input pin
1: Port D pin is an output pin
PDDDR has the same address as PDPIN, and if read,
the port D pin states will be returned.

Related parts for h8s-2111b