HD6433935 Hitachi, HD6433935 Datasheet - Page 68

no-image

HD6433935

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

Related parts for HD6433935