Port B; Overview; Register Configuration And Description; Port Data Register B (Pdrb) - Hitachi H8/3664 Hardware Manual

Table of Contents

Advertisement

9.7

Port B

9.7.1

Overview

Port B is an 8-bit input-only port, configured as shown in figure 9.6.
9.7.2

Register Configuration and Description

Table 9.11 shows the port B register configuration.
Table 9.11 Port B Register
Name
Port data register B
9.7.3

Port Data Register B (PDRB)

Bit
7
PB7
Read/Write
R
Reading PDRB always gives the pin states. However, if a port B pin is selected as an analog input
channel by the A/D converter's ADCSR register, that pin reads 0.
Port B
Figure 9.6 Port B Pin Configuration
Abbrev.
PDRB
6
5
PB6
PB5
R
R
PB7/AN7
PB6/AN6
PB5/AN5
PB4/AN4
PB3/AN3
PB2/AN2
PB1/AN1
PB0/AN0
R/W
Address
R
H'FFDD
4
3
PB4
PB3
R
R
2
1
PB2
PB1
R
R
0
PB0
R
161

Advertisement

Table of Contents
loading

Table of Contents