9.6
Port B
Port B is an input port also functioning as an A/D converter analog input pin. Each pin of the port
B is shown in figure 9.6.
Port B has the following register.
• Port data register B (PDRB)
9.6.1
Port Data Register B (PDRB)
PDRB is a general input-only port data register of port B.
Bit
Bit Name
7
PB7
6
PB6
5
PB5
4
PB4
3
PB3
2
PB2
1
PB1
0
PB0
Port B
Figure 9.6 Port B Pin Configuration
Initial
Value
R/W
Description
R
The input value of each pin is read by reading this
register.
R
However, if a port B pin is designated as an analog input
R
channel by ADCSR in A/D converter, 0 is read.
R
R
R
R
R
PB7/AN7
PB6/AN6
PB5/AN5
PB4/AN4
PB3/AN3
PB2/AN2
PB1/AN1
PB0/AN0
Rev. 1.00 Aug. 28, 2006 Page 139 of 400
Section 9 I/O Ports
REJ09B0268-0100