HD6432160 RENESAS [Renesas Technology Corp], HD6432160 Datasheet - Page 200

no-image

HD6432160

Manufacturer Part Number
HD6432160
Description
Hitachi 16-Bit Single-Chip Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
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.
Bit
7
6
5
4
3
2
1
0
Rev. 2.0, 08/02, page 160 of 788
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)
0
0
0
0
0
0
0
0
Initial Value
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 HD6432160