Section 9 I/O Ports
9.6
Port B
Port B is an input port also functioning as an A/D converter analog input pin and LVD external
comparison voltage 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 to 4
3
PB3
2
PB2
1
PB1
0
PB0
Rev. 3.00 Sep. 14, 2006 Page 134 of 408
REJ09B0105-0300
Port B
Figure 9.6 Port B Pin Configuration
Initial
Value
R/W
Description
Reserved
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 or external
R
comparison voltage input pin by LVDCR in low-voltage
detection circuit, 0 is read.
PB3/AN3/ExtU
PB2/AN2/ExtD
PB1/AN1
PB0/AN0