Port 1; Port 1 Data Direction Register (P1Ddr); Port 1 Data Register (P1Dr) - Hitachi H8S/2378, H8S/2378R Series Hardware Manual

16 bit single-chip microcomputer
Table of Contents

Advertisement

10.1

Port 1

Port 1 is an 8-bit I/O port that also has other functions. The port 1 has the following registers.

• Port 1 data direction register (P1DDR)

• Port 1 data register (P1DR)

• Port 1 register (PORT1)
10.1.1
Port 1 Data Direction Register (P1DDR)
The individual bits of P1DDR specify input or output for the pins of port 1.
Bit
Bit Name
7
P17DDR
6
P16DDR
5
P15DDR
4
P14DDR
3
P13DDR
2
P12DDR
1
P11DDR
0
P10DDR
10.1.2
Port 1 Data Register (P1DR)
P1DR stores output data for the port 1 pins.
Bit
Bit Name
7
P17DR
6
P16DR
5
P15DR
4
P14DR
3
P13DR
2
P12DR
1
P11DR
0
P10DR
Rev. 1.0, 09/01, page 408 of 904
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Initial Value
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
Description
When a pin function is specified to a general purpose
I/O, setting this bit to 1 makes the corresponding port
1 pin an output pin, while clearing this bit to 0 makes
the pin an input pin.
Description
Output data for a pin is stored when the pin function
is specified to a general purpose I/O.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents