English
Language : 

HD6433308 Datasheet, PDF (61/349 Pages) Hitachi Semiconductor – Hitachi Single-Chip MicroComputer
Before Execution of BSET Instruction
MOV.B #80, R0L
MOV.B R0L, @RAM0
MOV.B R0L, @PORT4
Input/output
Pin state
DDR
DR
Pull-up Mos
RAM0
P47
Input
Low
0
1
On
1
;write data (H'80) for data register
;write to DR temporary register (RAM0)
;write to DR
P46
Input
High
0
0
Off
0
P45 P44 P43 P42 P41 P40
Output Output Output Output Output Output
Low Low Low Low Low Low
1
1
1
1
1
1
0
0
0
0
0
0
Off Off Off Off Off Off
0
0
0
0
0
0
Execution of BSET Instruction
BSET.B #0, @RAM0
;set bit 0 in DR temporary register (RAM0)
After Execution of BSET Instruction
MOV.B @RAM0, R0L
MOV.B R0L, @PORT4
;obtain value of temporary register RAM0
;write value to DR
Input/output
Pin state
DDR
DR
Pull-up Mos
RAM0
P47
Input
Low
0
1
On
1
P46
Input
High
0
0
Off
0
P45 P44 P43 P42 P41 P40
Output Output Output Output Output Output
Low Low Low Low Low High
1
1
1
1
1
1
0
0
0
0
0
1
Off Off Off Off Off Off
0
0
0
0
0
1
45