HD6433935 Hitachi, HD6433935 Datasheet - Page 156

no-image

HD6433935

Manufacturer Part Number
HD6433935
Description
8-Bit MICROCONTROLLER
Manufacturer
Hitachi
Datasheet
1. Port data register 2 (PDR2)
PDR2 is an 8-bit register that stores data for port 2 pins P2
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)
PCR2 is an 8-bit register for controlling whether each of port 2 pins P2
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)
PMR2 is an 8-bit read/write register that controls the selection of pin functions for port 2 pins P2
P2
Bit 5, the P2
Upon reset, PMR2 is initialized to H'D8.
144
Bit
Initial value
Read/Write
Bit
Initial value
Read/Write
Bit
Initial value
Read/Write
1
, and P2
2
, and the PMOS on/off state for the P2
2
/SO
1
pin PMOS control bit (POF1), should be cleared to 0.
7
0
7
1
7
1
6
0
6
1
6
1
POF1
R/W
5
0
5
1
5
0
PCR2
R/W
P2
2
W
4
0
4
0
4
1
/SO
4
4
1
pin.
PCR2
4
R/W
P2
to P2
W
3
0
3
0
3
1
3
3
0
. If port 2 is read while PCR2
PCR2
SO1
R/W
R/W
P2
W
2
0
2
0
4
2
0
to P2
2
2
0
PCR2
functions as an
R/W
R/W
P2
SI1
W
1
0
1
0
1
0
1
1
PCR2
SCK1
R/W
R/W
P2
W
0
0
0
0
0
0
0
0
0
,

Related parts for HD6433935