![Hitachi H8/3935 Hardware Manual Download Page 187](http://html.mh-extra.com/html/hitachi/h8-3935/h8-3935_hardware-manual_140486187.webp)
175
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
Abbrev.
R/W
Address
Port data register B
PDRB
R
H'FFDE
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.
Summary of Contents for H8/3935
Page 1: ......
Page 2: ......
Page 4: ......
Page 24: ...12 ...
Page 96: ...84 ...
Page 142: ...130 ...
Page 144: ...132 ...
Page 252: ...240 ...
Page 326: ...314 ...
Page 340: ...328 ...
Page 520: ...508 ...