CHAPTER 4 I/O PORTS
Block Diagram of Port 2
SPL: Pin state specification bit in the standby control register (STBC)
Port 2 Register
The port 2 register is of PDR2.
Each bit in the PDR2 register has a one-to-one relationship with a port 2 pin.
Table 4.4-2 shows the correspondence between pins and the port 2 register.
Table 4.4-2 Correspondence between Pins and Register for Port 2
Port
PDR2
Port 2
Corresponding pin
114
Figure 4.4-1 Block Diagram of Port 2 Pin
PDR (Port data register)
PDR read
Output latch
PDR write
Stop or watch mode (SPL=1)
Correspondence between register bit and pin
Bit 7
P27
Bit 6
Bit 5
Bit 4
P26
P25
P24
P-ch
Pin
N-ch
Bit 3
Bit 2
Bit 1
P23
P22
P21
Bit 0
P20