HD6433935 Hitachi, HD6433935 Datasheet - Page 66

no-image

HD6433935

Manufacturer Part Number
HD6433935
Description
8-Bit MICROCONTROLLER
Manufacturer
Hitachi
Datasheet
To avoid this problem, store a copy of the PDR3 data in a work area in memory. Perform the bit
manipulation on the data in the work area, then write this data to PDR3.
[A: Prior to executing BSET]
MOV. B
MOV. B
MOV. B
Input/output
Pin state
PCR3
PDR3
RAM0
[B: BSET instruction executed]
BSET
MOV. B
MOV. B
Input/output
Pin state
PCR3
PDR3
RAM0
54
[C: After executing BSET]
#80
R0L
R0L
#0
@RAM0,
R0L,
P3
Input
Low
level
0
1
1
P3
Input
Low
level
0
1
1
,
,
,
,
7
7
R0L
@RAM0
@PDR3
@RAM0
@PDR3
R0L
P3
Input
High
level
0
0
0
P3
Input
High
level
0
0
0
6
6
P3
Output
Low
level
1
0
0
P3
Output
Low
level
1
0
0
The PDR3 value (H'80) is written to a work area in
memory (RAM0) as well as to PDR3.
The BSET instruction is executed designating the PDR3
work area (RAM0).
The work area (RAM0) value is written to PDR3.
5
5
P3
Output
Low
level
1
0
0
P3
Output
Low
level
1
0
0
4
4
P3
Output
Low
level
1
0
0
P3
Output
Low
level
1
0
0
3
3
P3
Output
Low
level
1
0
0
P3
Output
Low
level
1
0
0
2
2
P3
Output
Low
level
1
0
0
P3
Output
Low
level
1
0
0
1
1
P3
Output
Low
level
1
0
0
P3
Output
High
level
1
1
1
0
0

Related parts for HD6433935