Port 1; Port 1 Data Direction Register (P1Ddr) - Renesas H8S/2158 User Manual

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

Advertisement

9.1

Port 1

Port 1 is an 8-bit I/O port. Port 1 pins also function as an address bus, PWM output pins, and
CompactFlash address output pins. Port 1 functions change according to the operating mode. 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)
9.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
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
In extended mode:
The corresponding port 1 pins are address output
or CompactFlash address output ports when
P1DDR bits are set to 1, and input ports when
cleared to 0.
In single-chip mode:
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.
Rev. 3.00 Jan 25, 2006 page 209 of 872
Section 9 I/O Ports
REJ09B0286-0300

Advertisement

Table of Contents
loading

Table of Contents