Hitachi H8S/2646 Hardware Manual page 305

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

Port D Register (PORTD)
Bit
:
7
PD7
Initial value :
—*
R/W
:
R
Note: * Determined by state of pins PD7 to PD0.
PORTD is an 8-bit read-only register that shows the pin states. It cannot be written to. Writing of
output data for the port D pins (PD7 to PD0) must always be performed on PDDR.
If a port D read is performed while PDDDR bits are set to 1, the PDDR values are read. If a port D
read is performed while PDDDR bits are cleared to 0, the pin states are read.
After a reset and in hardware standby mode, PORTD contents are determined by the pin states, as
PDDDR and PDDR are initialized. PORTD retains its prior state in software standby mode.
Port D MOS Pull-Up Control Register (PDPCR)
Bit
:
7
PD7PCR PD6PCR PD5PCR PD4PCR PD3PCR PD2PCR PD1PCR PD0PCR
Initial value :
0
R/W
:
R/W
PDPCR is an 8-bit readable/writable register that controls the MOS input pull-up function
incorporated into port D on an individual bit basis.
In mode 7, if a pin is in the input state in accordance with the settings in PDDDR and LPCR,
setting the corresponding PDPCR bit to 1 turns on the MOS input pull-up for that pin.
PDPCR is initialized to H'00 by a reset, and in hardware standby mode. It retains its prior state in
software standby mode.
6
5
PD6
PD5
PD4
—*
—*
R
R
6
5
0
0
R/W
R/W
R/W
4
3
PD3
PD2
—*
—*
—*
R
R
4
3
0
0
R/W
R/W
2
1
0
PD1
PD0
—*
—*
R
R
R
2
1
0
0
0
0
R/W
R/W
273

Advertisement

Table of Contents
loading

Table of Contents