English
Language : 

HD6433832S Datasheet, PDF (156/560 Pages) Renesas Technology Corp – single-chip microcomputers
Port Data Register 2 (PDR2)
Bit
Initial value
Read/Write
7
P27
0
R/W
6
P26
0
R/W
5
P25
0
R/W
4
P24
0
R/W
3
P23
0
R/W
2
P22
0
R/W
1
P21
0
R/W
0
P20
0
R/W
PDR2 is an 8-bit register that stores data for pins P27 through P20. If port 2 is read while PCR2 bits
are set to 1, the values stored in PDR2 are read, regardless of the actual pin states. If port 2 is read
while PCR2 bits are cleared to 0, the pin states are read.
Upon reset, PDR2 is initialized to H'00.
Port Control Register 2 (PCR2)
Bit
Initial value
Read/Write
7
PCR27
0
W
6
PCR26
0
W
5
PCR25
0
W
4
PCR24
0
W
3
PCR23
0
W
2
PCR22
0
W
1
PCR21
0
W
0
PCR20
0
W
PCR2 is an 8-bit register for controlling whether each of the port 2 pins P27 to P20 functions as an
input pin or output pin. Setting a PCR2 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 PCR2 and in PDR2 are valid only
when the corresponding pin is designated in PMR2 as a general I/O pin.
Upon reset, PCR2 is initialized to H'00.
PCR2 is a write-only register. All bits are read as 1.
Port Mode Register 2 (PMR2)
Bit
7
—
Initial value
1
Read/Write
—
6
5
4
3
2
1
0
—
POF2 NCS IRQ0 POF1
UD
IRQ4
1
0
0
0
0
0
0
—
R/W
R/W
R/W
R/W
R/W
R/W
PMR2 is an 8-bit read/write register, controlling the selection of pin functions for pins P20,
P21,and P43, controlling the PMOS on/off option for pins P35/SO2 and P32/SO1, and controlling the
TMIG input noise canceller.
Upon reset, PMR2 is initialized to H'C0.
141