Counter preset value! (by vlada)
I need some help concerning changing of counter preset value over digital input. LDmicro is in quiestion. Any ideas?
Thanx in advance!
(no subject) (by Jonathan Westhues)
As noted, you can make your own counter, using some combination of ADD, SUB, MOV, and OSR/OSF operations. This allows you to increment, decrement, and reset the counters under whatever conditions you'd like. An example is attached.
You also can combine these operations with CTU and CTD instructions; the counter variable is an integer variable like any other, so these instructions all work as usual.