English
Language : 

HD6473837H Datasheet, PDF (173/562 Pages) Renesas Technology Corp – Hardware Manual
8.6.2 Register Configuration and Description
Table 8.14 shows the port 5 register configuration.
Table 8.14 Port 5 Registers
Name
Abbrev.
R/W
Port data register 5
PDR5
R/W
Port control register 5
PCR5
W
Port pull-up control register 5
PUCR5
R/W
Port mode register 5
PMR5
R/W
Initial Value
H'00
H'00
H'00
H'00
Address
H'FFD8
H'FFE8
H'FFE2
H'FFCC
Port Data Register 5 (PDR5)
Bit
Initial value
Read/Write
7
P57
0
R/W
6
P56
0
R/W
5
P55
0
R/W
4
P54
0
R/W
3
P53
0
R/W
2
P52
0
R/W
1
P51
0
R/W
0
P50
0
R/W
PDR5 is an 8-bit register that stores data for port 5 pins P57 to P50. If port 5 is read while PCR5
bits are set to 1, the values stored in PDR5 are read, regardless of the actual pin states. If port 5 is
read while PCR5 bits are cleared to 0, the pin states are read.
Upon reset, PDR5 is initialized to H'00.
Port Control Register 5 (PCR5)
Bit
Initial value
Read/Write
7
PCR57
0
W
6
PCR56
0
W
5
PCR55
0
W
4
PCR54
0
W
3
PCR53
0
W
2
PCR52
0
W
1
PCR51
0
W
0
PCR50
0
W
PCR5 is an 8-bit register for controlling whether each of the port 5 pins P57 to P50 functions as an
input pin or output pin. Setting a PCR5 bit to 1 makes the corresponding pin an output pin, while
clearing the bit to 0 makes the pin an input pin. The settings in PCR5 and in PDR5 are valid only
when the corresponding pin is designated as a general I/O pin in PMR5 and in bits SGS3 to SGS0
of LPCR.
Upon reset, PCR5 is initialized to H'00.
PCR5 is a write-only register. All bits are read as 1.
156