|
HD6433937 Datasheet, PDF (156/521 Pages) Hitachi Semiconductor – Hardware Manual | |||
|
◁ |
1. Port data register 2 (PDR2)
Bit
7
6
â
â
Initial value
0
0
Read/Write
â
â
5
4
3
2
1
0
â
P24
P23
P22
P21
P20
0
0
0
0
0
0
â
R/W
R/W
R/W
R/W
R/W
PDR2 is an 8-bit register that stores data for port 2 pins P24 to P20. If port 2 is read while PCR2
bits are set to 1, the values stored in PDR2 are read directly. Do not read port 2 while PCR2 bits
are cleared to 0.
Upon reset, PDR2 is initialized to H'00.
2. Port control register 2 (PCR2)
Bit
7
6
â
â
Initial value
1
1
Read/Write
â
â
5
4
3
2
1
0
â
PCR24 PCR23 PCR22 PCR21 PCR20
1
0
0
0
0
0
â
W
W
W
W
W
PCR2 is an 8-bit register for controlling whether each of port 2 pins P24 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 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, which is always read as all 1s.
3. Port mode register 2 (PMR2)
Bit
7
â
Initial value
1
Read/Write
â
6
5
4
â
POF1
â
1
0
1
â
R/W
â
3
2
1
0
â
SO1
SI1 SCK1
1
0
0
0
â
R/W
R/W
R/W
PMR2 is an 8-bit read/write register that controls the selection of pin functions for port 2 pins P20,
P21, and P22, and the PMOS on/off state for the P22/SO1 pin.
Bit
5,
the
P2 /SO
2
1
pin
PMOS
control
bit
(POF1),
should
be
cleared
to
0.
Upon reset, PMR2 is initialized to H'D8.
144
|
▷ |