h8s-2161b Renesas Electronics Corporation., h8s-2161b Datasheet - Page 226

no-image

h8s-2161b

Manufacturer Part Number
h8s-2161b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 8 I/O Ports
8.2
Port 1 is an 8-bit I/O port. Port 1 pins also function as an address bus and PWM output pins. Port 1
functions change according to the operating mode. Port 1 has an on-chip input pull-up MOS
function that can be controlled by software. Port 1 has the following registers.
8.2.1
P1DDR specifies input or output for the pins of port 1 on a bit-by-bit basis.
Rev. 3.00 Mar 21, 2006 page 172 of 788
REJ09B0300-0300
Bit
7
6
5
4
3
2
1
0
Port 1 data direction register (P1DDR)
Port 1 data register (P1DR)
Port 1 pull-up MOS control register (P1PCR)
Bit Name
P17DDR
P16DDR
P15DDR
P14DDR
P13DDR
P12DDR
P11DDR
P10DDR
Port 1
Port 1 Data Direction Register (P1DDR)
Initial Value
0
0
0
0
0
0
0
0
R/W
W
W
W
W
W
W
W
W
Description
In mode 1:
Each pin of port 1 is address output regardless of
the set value of P1DDR.
In modes 2 and 3 (EXPE=1):
The corresponding port 1 pins are address output
or PWM output ports when P1DDR bits are set to
1, and input ports when cleared to 0.
In modes 2 and 3 (EXPE=0):
The corresponding port 1 pins are output ports or
PWM outputs when the P1DDR bits are set to 1,
and input ports when cleared to 0.

Related parts for h8s-2161b