n Block Diagram of Port 2 Pin (Single-chip Mode)
SPL: Pin state specification bit in the standby control register (STBC)
n Port 2 Registers
The port 2 registers consist of PDR2 and BCTR. Each bit in the PDR2 register has a one-to-one
relationship with a port 2 pin.
Accessing the BCTR register in single-chip mode has no meaning. The BCTR register settings
set the pin functions in external bus mode.
Table 4.3b shows the correspondence between pins and registers for port 2.
Table 4.3b Correspondence between Pin and Register for Port 2
Port
Port 2
MB89620 series
PDR (Port data register)
PDR read
Output latch
PDR write
Stop mode (SPL=1)
Figure 4.3 Block Diagram of Port 2 Pin (Single-chip Mode)
Correspondence between register bit and pin
PDR2
Bit 7
Corresponding pin
P27
BCTR
—
Corresponding pin
—
HRQ, RDY inputs only
Output buffer
Bit 6
Bit 5
Bit 4
Bit 3
P26
P25
P24
P23
—
—
—
—
—
—
—
—
Pin
Bit 2
Bit 1
P22
P21
—
Bit 1 (HLD)
Bit 0 (BUF)
—
P21, P22
CHAPTER 4 I/O PORTS
Bit 0
P20
P20
95