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

Single-chip microcomputer
Table of Contents

Advertisement

Port 6 Data Register (P6DR): P6DR is an 8-bit readable/writable register that stores data for
pins P6
to P6
and P6
.
5
3
0
Bit
Initial value
Read/Write
Reserved bits
When a bit in P6DDR is set to 1, if port 6 is read the value of the corresponding P6DR bit is
returned directly. When a bit in P6DDR is cleared to 0, if port 6 is read the corresponding pin
level is read. Bits 7, 6, 2, and 1 are reserved. Bit 7 cannot be modified and always reads 1. Bits
6, 2, and 1 can be written and read, but cannot be used as ports. If bit 6, 2, or 1 in P6DDR is read
while its value is 1, the value of the corresponding bit in P6DR will be read. If bit 6, 2, or 1 in
P6DDR is read while its value is 0, it will always read 1.
P6DR is initialized to H'80 by a reset and in hardware standby mode. In software standby mode
it retains its previous setting.

7.6.3 Pin Functions in Each Mode

Modes 1 and 2: P6
to P6
5
pin or generic input/output pin, functioning as an output pin when bit P6
input pin when this bit is cleared to 0. Figure 7-14 and table 7-9 indicate the pin functions in
modes 1 and 2.
Figure 7-14 Pin Functions in Modes 1 and 2 (Port 6)
136
7
6
5
P6
5
1
0
0
R/W
function as bus control output pins. P6
3
WR
(output)
RD
(output)
Port 6
AS
(output)
P6
(input/output)/WAIT (input)
0
4
3
2
P6
P6
4
3
0
0
0
R/W
R/W
Port 6 data 5 to 3, 0
These bits store data for port 6 pins
is either a bus control input
0
0
1
0
P6
0
0
0
R/W
DDR is set to 1 and an

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3035H8/3034H8/3033

Table of Contents