
2.4 Instruction Details
1
2
3-75
Chapter 2 Instructions
Coding
■ Counter multi-level setting
Outputs in 3 different levels according to the counter current value.
Current counter value
• 00000 to 00999 ➞ 0500 turns ON.
• 01000 to 01999 ➞ 0501 turns ON.
• 02000 to 02999 ➞ 0502 turns ON.
Coding
Line No. Instruction Operand Line No. Instruction Operand
0000 LDB 0002 0010 MRD
0001 C
002 #09999 0000
0011 CMP #02000
0002 LD 2002 0012 CON
0003 LDA C002 0013 ANB 2009
0004 CON 0014 OUT 0501
0005 MPS 0015 MPP
0006 CMP #01000 0016 CMP #03000
0007 CON 0017 CON
0008 ANB 2009 0018 ANB 2009
0009 OUT 0500 0019 OUT 0502
C
0001
2011
0000
#09999
C000
2002
0500
#00999
CMP
2011 0501
#01999
CMP
2011
0500
0500 0501
0502
#02999
CMP
C000
LDA
Line No. Instruction Operand
0000 LDB 0001
0001 C 000 #09999 0000
0002 LD 2002
0003 LDA C000
0004 CON
0005 MPS
0006 CMP #00999
0007 CON
0008 ANB 2011
0009 OUT 0500
0010 MRD
0011 CMP #01999
0012 CON
0013 ANB 2011
0014 ANB 0500
0015 OUT 0501
0016 MPP
0017 CMP #02999
0018 CON
0019 ANB 2011
0020 ANB 0500
0021 ANB 0501
0022 OUT 0502
KVNKA Chap 02_4aP.p65 08.3.11, 11:58 AM75
Comentarios a estos manuales