Port 4; Port 4 Data Direction Register (P4Ddr) - Renesas H8S/2437 Hardware Manual

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

Advertisement

7.5

Port 4

Port 4 is an 8-bit I/O port. Port 4 pins also function as external interrupt pins, TMR0_0, TMR0_1,
TMRX_0, TMRY_0, TMRX_1, TMRY_1, and FRT_1 input pins, and PWM output pins.
Port 4 has the following registers.

• Port 4 data direction register (P4DDR)

• Port 4 data register (P4DR)
• Port 4 register (PORT4)
7.5.1
Port 4 Data Direction Register (P4DDR)
The individual bits in P4DDR specify input or output for the pins of port 4. The read value is
undefined.
Bit
Bit Name
7
P47DDR
6
P46DDR
5
P45DDR
4
P44DDR
3
P43DDR
2
P42DDR
1
P41DDR
0
P40DDR
Rev. 1.00, 09/03, page 162 of 704
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
While a general I/O port function is selected, the
corresponding port 4 pin is an output port when a
P4DDR bit is set to 1, and an input port when
cleared to 0.

Advertisement

Table of Contents
loading

Table of Contents