Port 1; Port 1 Data Direction Register (P1Ddr); Port 1 Data Register (P1Dr) - Renesas H8S/2111B Hardware Manual

Bit single-chip microcomputer h8s family / h8s/2100 series
Table of Contents

Advertisement

7.1

Port 1

Port 1 is an 8-bit I/O port. Port 1 pins also function as PWM output pins. Port 1 has the following
registers.

• Port 1 data direction register (P1DDR)

• Port 1 data register (P1DR)

• Port 1 pull-up MOS control register (P1PCR)
7.1.1
Port 1 Data Direction Register (P1DDR)
P1DDR specifies input or output for the pins of port 1 on a bit-by-bit basis.
Bit
Bit Name
7
P17DDR
6
P16DDR
5
P15DDR
4
P14DDR
3
P13DDR
2
P12DDR
1
P11DDR
0
P10DDR
7.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.00, 05/04, page 100 of 544
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
The corresponding port 1 pins are output ports when
the P1DDR bits are set to 1, and input ports when the
P1DDR bits are cleared to 0.
Description
If a port 1 read is performed while the P1DDR bits are
set to 1, the P1DR values are read. If a port 1 read is
performed while the P1DDR bits are cleared to 0, the
pin states are read.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2111b

Table of Contents