Register Configuration - Hitachi H8S/2678 Series Reference Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

5.11.2

Register Configuration

Table 5.20 shows the port B register configuration.
Table 5.20 Port B Registers
Name
Port B data direction register
Port B data register
Port B register
Port B MOS pull-up control register
Note: * Lower 16 bits of the address.
Port B Data Direction Register (PBDDR)
Bit
7
PB7DDR PB6DDR PB5DDR PB4DDR PB3DDR PB2DDR PB1DDR PB0DDR
Initial value
0
Read/Write
W
PBDDR is an 8-bit write-only register, the individual bits of which specify input or output for the
pins of port B. PBDDR cannot be read; if it is, an undefined value will be read.
PBDDR 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 1, 2, 5, and 6
Port B pins are address outputs regardless of the PBDDR settings.
• Mode 4
Setting a PBDDR bit to 1 makes the corresponding port B pin an address output, while clearing
the bit to 0 makes the pin an input port.
• Mode 7 (when bit EXPE is set to 1 in SYSCR)
Setting a PBDDR bit to 1 makes the corresponding port B pin an address output, while clearing
the bit to 0 makes the pin an input port.
• Mode 7 (when bit EXPE is cleared to 0 in SYSCR)
Port B is an I/O port, and its pin functions can be switched with PBDDR.
Abbreviation
PBDDR
PBDR
PORTB
PBPCR
6
5
0
0
W
W
R/W
Initial Value
W
H'00
R/W
H'00
R
Undefined
R/W
H'00
4
3
0
0
W
W
Address*
H'FE2A
H'FF6A
H'FF5A
H'FE37
2
1
0
0
W
W
0
0
W
255

Advertisement

Table of Contents
loading

Table of Contents