English
Language : 

HD6473887 Datasheet, PDF (191/523 Pages) Renesas Technology Corp – Hitachi Single-Chip Microcomputer
8.12 Port B
8.12.1 Overview
Port B is an 8-bit input-only port, configured as shown in figure 8-11.
Port B
PB7/AN7
PB6/AN6
PB5/AN5
PB4/AN4
PB3/AN3
PB2/AN2
PB1/AN1
PB0/AN0
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
Port data register B
Abbrev.
R/W
PDRB
R
Address
H'FFDE
Port Data Register B (PDRB)
Bit
7
6
5
4
3
2
1
0
PB 7
PB6
PB5
PB 4
PB3
PB2
PB1
PB 0
Read/Write
R
R
R
R
R
R
R
R
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.
174