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

Single-chip microcomputer
Table of Contents

Advertisement

Port 5 Input Pull-Up Control Register (P5PCR): P5PCR is an 8-bit readable/writable register
that controls the MOS input pull-up transistors in port 5.
Bit
7
Initial value
1
Read/Write
When a P5DDR bit is cleared to 0 (selecting generic input), if the corresponding bit from
P5
PCR to P5
PCR is set to 1, the input pull-up transistor is turned on.
3
0
P5PCR is initialized to H'F0 by a reset and in hardware standby mode. In software standby mode
it retains its previous setting.

7.5.3 Pin Functions in Each Mode

The functions of port 5 differ depending on the operating mode. The pin functions in each mode
are described below.
Modes 1 and 2: Address output or generic input can be selected for each pin in port 5. A pin
becomes an address output pin if the corresponding P5DDR bit is set to 1, and a generic input
pin if this bit is cleared to 0. Following a reset, all pins are input pins. To use a pin for address
output, its P5DDR must be set to 1. Figure 7-11 shows the pin functions in modes 1 and 2.
Port 5
Figure 7-11 Pin Functions in Modes 1 and 2 (Port 5)
132
6
5
4
1
1
1
Reserved bits
When P5DDR = 1
A
(output)
19
A
(output)
18
A
(output)
17
A
(output)
16
3
2
1
P5 PCR
P5 PCR
P5 PCR
3
2
1
0
0
0
R/W
R/W
R/W
Port 5 input pull-up control 3 to 0
These bits control input pull-up
transistors built into port 5
When P5DDR = 0
P5
(input)
3
P5
(input)
2
P5
(input)
1
P5
(input)
0
0
P5 PCR
0
0
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3035H8/3034H8/3033

Table of Contents