Register Configuration - Hitachi H8S/2646 Hardware Manual

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

Advertisement

9.8.2

Register Configuration

Table 9-12 shows the port A register configuration.
Table 9-12 Port A Registers
Name
Port A data direction register
Port A data register
Port A register
Port A MOS pull-up control register
Port A open-drain control register
Note: * Lower 16 bits of the address.
Port A Data Direction Register (PADDR)
Bit
:
7
PA7DDR PA6DDR PA5DDR PA4DDR PA3DDR PA2DDR PA1DDR PA0DDR
Initial value :
0
R/W
:
W
PADDR is an 8-bit write-only register, the individual bits of which specify input or output for the
pins of port A. PADDR cannot be read; if it is, an undefined value will be read.
PADDR is initialized to H'00 by a reset, and in hardware standby mode. It retains its prior state in
software standby mode. The OPE bit in SBYCR is used to select whether the address output pins
retain their output state or become high-impedance when a transition is made to software standby
mode.
• Modes 4 to 6
These function as segment pins if the values of bits SGS3 to SGS0 of LPCR, the LCD driver,
are other than B'0000. If the value of bits SGS3 to SGS0 is B'0000, the port A pins function as
address outputs as specified by the setting of bits AE3 to AE0 of PFCR, regardless of the
values of bits PA7DDR to PA0DDR. Also, when the pins are not used as address outputs,
setting a PADDR bit to 1 makes the corresponding port A pin an output port, and clearing a bit
to 0 makes the corresponding pin an input port.
• Mode 7
These function as segment pins if the values of bits SGS3 to SGS0 of LPCR, the LCD driver,
are other than B'0000. If the value of bits SGS3 to SGS0 is B'0000, setting a PADDR bit to 1
makes the corresponding port A pin an output port, and clearing a bit to 0 makes the
corresponding pin an input port.
256
Abbreviation
PADDR
PADR
PORTA
PAPCR
PAODR
6
5
0
0
W
W
W
R/W
Initial Value
W
H'00
R/W
H'00
R
Undefined
R/W
H'00
R/W
H'00
4
3
2
0
0
0
W
W
Address*
H'FE39
H'FF09
H'FFB9
H'FE40
H'FE47
1
0
0
0
W
W

Advertisement

Table of Contents
loading

Table of Contents