Port Control Register 1(Pcr1); Port Data Register 1(Pdr1) - Hitachi H8/3672 Series Hardware Manual

Single-chip microcomputer
Table of Contents

Advertisement

9.1.2

Port Control Register 1(PCR1)

PCR1 selects inputs/outputs in bit units for pins to be used as general I/O ports of port 1.
Bit Bit Name
Initial Value R/W
7
PCR17
0
6
PCR16
0
5
PCR15
0
4
PCR14
0
3
2
PCR12
0
1
PCR11
0
0
PCR10
0
9.1.3

Port Data Register 1(PDR1)

PDR1 is a general I/O port data register of port 1.
Bit Bit Name
Initial Value R/W
7
P17
0
6
P16
0
5
P15
0
4
P14
0
3
1
2
P12
0
1
P11
0
0
P10
0
Description
W
When the corresponding pin is designated in PMR1 as a
general I/O pin, setting a PCR1 bit to 1 makes the
W
corresponding pin an output port, while clearing the bit to 0
W
makes the pin an input port.
W
Bit 3 is a reserved bit.
W
W
W
Description
R/W
PDR1 stores output data for port 1 pins.
R/W
If PDR1 is read while PCR1 bits are set to 1, the value
stored in PDR1 are read. If PDR1 is read while PCR1 bits
R/W
are cleared to 0, the pin states are read regardless of the
R/W
value stored in PDR1.
Bit 3 is a reserved bit. This bit is always read as 1 and
cannot be modified.
R/W
R/W
R/W
Rev. 1.0, 03/01, page 91 of 280

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3672f-ztat hd64f3672H8/3670f-ztat hd64f3670

Table of Contents