Ports C, D; Port C And Port D Data Direction Registers (Pcddr, Pdddr) - Renesas H8S/2111B Hardware Manual

Bit single-chip microcomputer h8s family / h8s/2100 series
Table of Contents

Advertisement

7.12

Ports C, D

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

Port C and Port D Data Direction Registers (PCDDR, PDDDR)

PCDDR and PDDDR select input or output for the pins of port C and port D on a bit-by-bit basis.
Bit
Bit Name
7
PC7DDR 0
6
PC6DDR 0
5
PC5DDR 0
4
PC4DDR 0
3
PC3DDR 0
2
PC2DDR 0
1
PC1DDR 0
0
PC0DDR 0
Bit
Bit Name
7
PD7DDR 0
6
PD6DDR 0
5
PD5DDR 0
4
PD4DDR 0
3
PD3DDR 0
2
PD2DDR 0
1
PD1DDR 0
0
PD0DDR 0
Rev. 1.00, 05/04, page 132 of 544
Initial
Value
R/W
W
W
W
W
W
W
W
W
Initial
Value
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2111b

Table of Contents