8.10 Port B
8.10.1 Overview
Port B is an 8-bit input-only port, configured as shown in figure 8-9.
Figure 8-9 Port B Pin Configuration
8.10.2 Register Configuration and Description
Table 8-26 shows the port B register configuration.
Table 8-26 Port B Register
Name
Abbrev.
R/W
Address
Port data register B
PDRB
R
H'FFDE
Port Data Register B (PDRB)
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.
Bit
Read/Write
7
PB
R
6
PB
R
5
PB
R
4
PB
R
3
PB
R
0
PB
R
2
PB
R
1
PB
R
3
2
1
0
7
6
5
4
PB
7
/AN
7
PB
6
/AN
6
PB
5
/AN
5
PB
4
/AN
4
PB
3
/AN
3
Port B
PB
2
/AN
2
PB
1
/AN
1
PB
0
/AN
0
169