
Chapter 5. Application instructions
5-57
-
Execution condition
2) Program example
-
When a rising edge is detected at P020, add BCD data of D0000 and D0001 and store the addition
result to P06 word.
Input condition
ADDB, DADDB
ADDBP, DADDBP
Executed only once
Executed only once
Executed per scan
Executed per scan
ADDP D0000 D0001 P06
16 bits
0
0
1
1
1
0
0
0
1
0
0
1
0
0
1
1
0
0
0
1
0
0
1
0
0
0
0
0
0
1
0
0
+
h3893
h1204
0
1
0
1
0
0
0
0
1
0
0
1
0
1
1
1 h5097
D0000
D0001
P06
P020