[A: Prior to executing BCLR]
The PCR3 value (H'3F) is written to a work area in memory
(RAM0) as well as to PCR3.
P3
7
P3
6
P3
5
P3
4
P3
3
P3
2
P3
1
P3
0
Input/output
Input
Input Output
Output
Output
Output
Output
Output
Pin
state
Low High Low Low Low Low Low Low
level
level level level level level level level
PCR3
0
0
1
1
1
1
1
1
PDR3
1
0
0
0
0
0
0
0
RAM0
0
0
1
1
1
1
1
1
[B: BCLR instruction executed]
The BCLR instruction is executed designating the PCR3
work area (RAM0).
[C: After executing BCLR]
The work area (RAM0) value is written to PCR3.
P3
7
P3
6
P3
5
P3
4
P3
3
P3
2
P3
1
P3
0
Input/output
Input
Input
Output
Output
Output
Output
Output
Output
Pin
state
Low High Low Low Low Low Low High
level
level level level level level level level
PCR3
0
0
1
1
1
1
1
0
PDR3
1
0
0
0
0
0
0
0
RAM0
0
0
1
1
1
1
1
0
MOV. B @RAM0, R0L
MOV. B R0L, @PCR3
BCLR #0 , @RAM0
MOV. B #3F, R0L
MOV. B R0L, @RAM0
MOV. B R0L, @PCR3
59