Omron C28K Video Game Controller User Manual


 
114
The branching structure of this diagram is important so that 0200, 0201, and
0202 are controlled properly as the timer counts down. Because all of the
comparisons here are to the timer’s PV, the other operand for each CMP(20)
must be in 4-digit BCD.
TIM 10
0500 s.
#2000
CMP(20)
TIM 10
#3000
CMP(20)
TIM 10
CMP(20)
TIM 10
#4000
0201
0204
0202
0000
0200
1907
0200
1907
0201
1907
TIM 10
Output at
100 s.
Output at
200 s.
Output at
300 s.
Output at
500 s.
Address Instruction Operands Address Instruction Operands
0000 LD 0000
0001 TIM 10
# 0500
0002 CMP(20)
TIM 10
# 4000
0003 AND 1907
0004 OUT 0200
0005 LD 0200
0006 CMP(20)
TIM 10
# 3000
0007 AND 1907
0008 OUT 0201
0009 LD 0201
0010 CMP(20)
TIM 10
# 2000
0011 AND 1907
0012 OUT 0202
0013 LD TIM 10
0014 OUT 0204
DATA COMPARE – CMP(20) Section 5-14