English
Language : 

HD64F2168 Datasheet, PDF (240/874 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
8.5 Port 5
Port 5 is an 8-bit I/O port. Port 5 pins also function as interrupt input pins, the PWMX output pin,
SCI_0, SCI_1, and SCI_2 input/output pins. Port 5 has the following registers.
• Port 5 data direction register (P5DDR)
• Port 5 data register (P5DR)
8.5.1 Port 5 Data Direction Register (P5DDR)
The individual bits of P5DDR specify input or output for the pins of port 5.
Bit Bit Name Initial Value R/W Description
7
P57DDR 0
6
P56DDR 0
5
P55DDR 0
4
P54DDR 0
W If port 5 pins are specified for use as the general I/O
W port, the corresponding port 5 pins are output ports
when the P5DDR bits are set to 1, and input ports
W when cleared to 0.
W
3
P53DDR 0
W
2
P52DDR 0
W
1
P51DDR 0
W
0
P50DDR 0
W
8.5.2 Port 5 Data Register (P5DR)
P5DR stores output data for the port 5 pins.
Bit Bit Name Initial Value R/W Description
7
P57DR
0
6
P56DR
0
5
P55DR
0
4
P54DR
0
3
P53DR
0
R/W P5DR stores output data for the port 5 pins that are
R/W used as the general output port.
R/W
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
R/W performed while the P5DDR bits are cleared to 0, the
R/W pin states are read.
2
P52DR
0
R/W
1
P51DR
0
R/W
0
P50DR
0
R/W
Rev. 3.00, 03/04, page 200 of 830