Port D; Port D Data Direction Register (Pdddr) - Hitachi H8S/2628 Hardware Manual

H8s/2628 series 16-bit single-chip microcomputer
Table of Contents

Advertisement

9.9

Port D

Port D is an 8-bit I/O port that also functions as the realtime input port pins.
The realtime input port stores the pin states of port D in PDRTIDR using the IRQ3 pin as the
trigger input. The falling, rising, or both edges of the IRQ3 pin can be used as a trigger timing.
Port D has the following registers.

• Port D data direction register (PDDDR)

• Port D data register (PDDR)
• Port D register (PORTD)
• Port D pull-up MOS control register (PDPCR)
• Port D realtime input data register (PDRTIDR)
9.9.1
Port D Data Direction Register (PDDDR)
PDDDR is an 8-bit write-only register, the individual bits of which specify whether the pins of
port D are used for input or output.
Bit
Bit Name
Initial Value
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.0, 09/02, page 152 of 568
R/W
Description
W
When a pin is specified as a general purpose I/O
port, setting this bit to 1 makes the corresponding
W
port 1 pin an output pin. Clearing this bit to 0 makes
W
the pin an input pin.
W
W
W
W
W

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2628Hd6432628H8s/2627Hd6432627

Table of Contents