Port 5 Data Register (P5Dr); Pin Functions - Renesas H8S/2158 User Manual

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

Advertisement

9.5.2

Port 5 Data Register (P5DR)

P5DR stores output data for the port 5 pins.
Bit
Bit Name
7
P57DR
6
P56DR
5
P55DR
4
P54DR
3
P53DR
2
P52DR
1
P51DR
0
P50DR
9.5.3

Pin Functions

The relationship between register setting values and pin functions are as follows. In the tables, the
symbol "—" stands for Don't care.
• P57/IRQ15/PWX1
The pin function is switched as shown below according to the combination of the OEB bit in
DACR of PWMX and the P57DDR bit.
When the IRQ15E bit in IER16 of the interrupt controller is set to 1 or the ISS15 bit in ISSR16
is cleared to 0, this pin can be used as the IRQ15 input pin. To use this pin as the IRQ15 input
pin, clear the P57DDR bit to 0.
OEB
P57DDR
Pin function
Initial Value
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
0
P57 input pin
Description
P5DR stores output data for the port 5 pins that
are used as the general output port.
If a port 5 read is performed while the P5DDR bits
are set to 1, the P5DR values are read. If a port 5
read is performed while the P5DDR bits are
cleared to 0, the pin states are read.
1
P57 output pin
IRQ15 input pin
Rev. 3.00 Jan 25, 2006 page 229 of 872
Section 9 I/O Ports
1
PWX1 output pin
REJ09B0286-0300

Advertisement

Table of Contents
loading

Table of Contents