Pin Functions In Each Mode - Hitachi H8/3032 Series Hardware Manual

Table of Contents

Advertisement

Port 2 Data Register (P2DR): P2DR is an 8-bit readable/writable register that stores data for pins
P2
7
Bit
Initial value
Read/Write
When a bit in P2DDR is set to 1, if port 2 is read the value of the corresponding P2DR bit is
returned directly, regardless of the actual state of the pin. When a bit in P2DDR is cleared to 0, if
port 2 is read the corresponding pin level is read.
P2DR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.
Port 2 Input Pull-Up Control Register (P2PCR): P2PCR is an 8-bit readable/writable register
that controls the MOS input pull-up transistors in port 2.
Bit
Initial value
Read/Write
When a P2DDR bit is cleared to 0 (selecting generic input), if the corresponding bit from P2
to P2
P2PCR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.

7.3.3 Pin Functions in Each Mode

The pin functions of port 2 differ between mode 1 and modes 2 and 3. The pin functions in each
mode are described below.
Downloaded from
Elcodis.com
electronic components distributor
to P2
.
0
7
6
P2
P2
7
6
0
0
R/W
R/W
7
6
P2 PCR
P2 PCR
7
6
0
0
R/W
R/W
PCR is set to 1, the input pull-up transistor is turned on.
0
5
4
3
P2
P2
P2
5
4
3
0
0
0
R/W
R/W
R/W
Port 2 data 7 to 0
These bits store data for port 2 pins
5
4
3
P2 PCR
P2 PCR
P2 PCR
P2 PCR
5
4
3
0
0
0
R/W
R/W
R/W
Port 2 input pull-up control 7 to 0
These bits control input pull-up
transistors built into port 2
128
2
1
0
P2
P2
P2
2
1
0
0
0
0
R/W
R/W
R/W
2
1
0
P2 PCR
P2 PCR
2
1
0
0
0
0
R/W
R/W
R/W
PCR
7

Advertisement

Table of Contents
loading

Table of Contents