h8s-2111b Renesas Electronics Corporation., h8s-2111b Datasheet - Page 134

no-image

h8s-2111b

Manufacturer Part Number
h8s-2111b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
7.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
P1DDR specifies input or output for the pins of port 1 on a bit-by-bit basis.
7.1.2
P1DR stores output data for the port 1 pins.
Rev. 1.00, 05/04, page 100 of 544
Bit
7
6
5
4
3
2
1
0
Bit
7
6
5
4
3
2
1
0
Bit Name
P17DDR
P16DDR
P15DDR
P14DDR
P13DDR
P12DDR
P11DDR
P10DDR
Bit Name
P17DR
P16DR
P15DR
P14DR
P13DR
P12DR
P11DR
P10DR
Port 1
Port 1 Data Direction Register (P1DDR)
Port 1 Data Register (P1DR)
Initial
Value
0
0
0
0
0
0
0
0
Initial
Value
0
0
0
0
0
0
0
0
R/W
W
W
W
W
W
W
W
W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
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.

Related parts for h8s-2111b