8.12
Port B
8.12.1
Overview
Port B is an 8-bit input-only port, configured as shown in figure 8.11.
8.12.2
Register Configuration and Description
Table 8.32 shows the port B register configuration.
Table 8.32 Port B Register
Name
Port data register B
1. Port Data Register B (PDRB)
Bit
7
PB
Read/Write
R
Reading PDRB always gives the pin states. However, if a port B pin is selected as an analog input
channel for the A/D converter by AMR bits CH3 to CH0, that pin reads 0 regardless of the input
voltage.
Port B
Figure 8.11 Port B Pin Configuration
Abbr.
PDRB
6
5
PB
PB
7
6
5
R
R
PB
/AN
7
7
PB
/AN
6
6
PB
/AN
5
5
PB
/AN
4
4
PB
/AN
3
3
PB
/AN
2
2
PB
/AN
1
1
PB
/AN
0
0
R/W
R
4
3
2
PB
PB
PB
4
3
R
R
R
Rev. 6.00 Aug 04, 2006 page 251 of 680
Section 8 I/O Ports
Address
H'FFDE
1
0
PB
PB
2
1
0
R
R
REJ09B0145-0600