Execution of BSET Instruction
BSET #0 @RAM0
;
set bit 0 in DR work area (RAM0)
After Execution of BSET Instruction
MOV.B @RAM0 R0L
;
get value in work area (RAM0)
MOV.B R0L @PORT4
;
write value to DR
P4
7
P4
6
P4
5
P4
4
P4
3
P4
2
P4
1
P4
0
Input/output
Input
Input
Output Output Output Output Output Output
Pin state
Low
High
Low
Low
Low
Low
Low
Low
DDR
0
0
1
1
1
1
1
1
DR
1
0
0
0
0
0
0
0
Pull-up
On
Off
Off
Off
Off
Off
Off
Off
RAM0
1
0
0
0
0
0
0
0
P4
7
P4
6
P4
5
P4
4
P4
3
P4
2
P4
1
P4
0
Input/output
Input
Input
Output Output Output Output Output Output
Pin state
Low
High
Low
Low
Low
Low
Low
High
DDR
0
0
1
1
1
1
1
1
DR
1
0
0
0
0
0
0
1
Pull-up
On
Off
Off
Off
Off
Off
Off
Off
RAM0
1
0
0
0
0
0
0
1
20
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...