Port Data Register 2(Pdr2); Pin Functions - Hitachi H8/3672 Series Hardware Manual

Single-chip microcomputer
Table of Contents

Advertisement

9.2.2

Port Data Register 2(PDR2)

PDR2 is a general I/O port data register of port 2.
Bit Bit Name
Initial Value R/W
7
1
6
1
5
1
4
1
3
1
2
P22
0
1
P21
0
0
P20
0
9.2.3

Pin Functions

The correspondence between the register specification and the port functions is shown below.
P22/TXD pin
Register
PMR1
Bit Name
TXD
Setting Value 0
0
1
Legend X:Don't care.
P21/RXD pin
Register
SCR3
Bit Name
RE
Setting Value 0
0
1
Legend X:Don't care.
Description
Reserved
These bits are always read as 1 and cannot be modified.
R/W
PDR2 stores output data for port 2 pins.
R/W
PDR2 is read while PCR2 bits are set to 1, the value stored
in PDR2 is read. If PDR2 is read while PCR2 bits are
R/W
cleared to 0, the pin states are read regardless of the value
stored in PDR2.
PCR2
PCR22
Pin Function
0
P22 input pin
1
P22 output pin
X
TXD output pin
PCR2
PCR21
Pin Function
0
P21 input pin
1
P21 output pin
X
RXD input pin
Rev. 1.0, 03/01, page 95 of 280

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents