CPU ADAM 821x
Chapter 9 Instruction list
Command
Operand
Parameter
Status word
Function
Length
in
BR
CC1 CC0 OV OS OR STA RLO /FC
words
: Instruction depends on
: Instruction influences
ADAM 8000 Manual CPU 821x – Rev 1.1
8-35
Counter instructions
Counter instructions
Status word
The counter value is in ACCU1-L res. in the
address transferred as parameter.
S C
f
0 to 255
BR
CC1 CC0 OV OS OR STA RLO /FC
Presetting of counter on edge change from "0" to "1".
1/2
Counter
p.
- - - - - - - Y -
2
R C
f
0 to 255
- - - - - 0 - - 0 Reset counter to "0".
1/2
Counter
p.
2
CU C
f
0 to 255
Increment counter by 1 on edge change from "0" to "1".
1/2
Counter
p.
2
CD C
f
0 to 255
Decrement counter by 1 on edge change from "0" to "1".
1/2
Counter
p.
2
FR C
f
0 to 255
Enable counter on edge change from "0" to "1".
1/2
Counter
p.
(reset the edge bit memory for up and down counting)
2