Section 8 I/O Ports
Rev. 6.00 Aug 04, 2006 page 251 of 680
REJ09B0145-0600
8.12
Port B
8.12.1
Overview
Port B is an 8-bit input-only port, configured as shown in figure 8.11.
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
Figure 8.11 Port B Pin Configuration
8.12.2
Register Configuration and Description
Table 8.32 shows the port B register configuration.
Table 8.32 Port B Register
Name
Abbr.
R/W
Address
Port data register B
PDRB
R
H'FFDE
1. Port Data Register B (PDRB)
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
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.
Содержание H8/38342
Страница 8: ...Rev 6 00 Aug 04 2006 page vi of xxxvi...
Страница 12: ...Rev 6 00 Aug 04 2006 page x of xxxvi...
Страница 38: ...Rev 6 00 Aug 04 2006 page xxxvi of xxxvi...
Страница 76: ...Section 1 Overview Rev 6 00 Aug 04 2006 page 38 of 680 REJ09B0145 0600...
Страница 240: ...Section 7 RAM Rev 6 00 Aug 04 2006 page 202 of 680 REJ09B0145 0600...
Страница 468: ...Section 12 A D Converter Rev 6 00 Aug 04 2006 page 430 of 680 REJ09B0145 0600...
Страница 580: ...Section 15 Electrical Characteristics Rev 6 00 Aug 04 2006 page 542 of 680 REJ09B0145 0600...