Renesas H8/300 Series Programming Manual page 26

Table of Contents

Advertisement

P4
Input/output
Input
Pin state
Low
DDR
0
DR
1
Pull-up
On
RAM0
1
Execution of BSET Instruction
BSET
#0
@RAM0
After Execution of BSET Instruction
MOV.B
@RAM0
MOV.B
R0L
P4
Input/output
Input
Pin state
Low
DDR
0
DR
1
Pull-up
On
RAM0
1
P4
P4
7
6
5
Input
Output Output Output Output Output Output
High
Low
0
1
0
0
Off
Off
0
0
;set bit 0 in DR work area (RAM0)
;get value in work area (RAM0)
R0L
@PORT4 ;write value to DR
P4
P4
7
6
5
Input
Output Output Output Output Output Output
High
Low
0
1
0
0
Off
Off
0
0
P4
P4
P4
4
3
Low
Low
Low
1
1
1
0
0
0
Off
Off
Off
0
0
0
P4
P4
P4
4
3
Low
Low
Low
1
1
1
0
0
0
Off
Off
Off
0
0
0
20
P4
P4
2
1
0
Low
Low
1
1
0
0
Off
Off
0
0
P4
P4
2
1
0
Low
High
1
1
0
1
Off
Off
0
1

Advertisement

Table of Contents
loading

Table of Contents