08-03-2001 05:06 AM
08-03-2001 06:38 AM
12-15-2013 02:40 AM
I have problem that i want counter to increment by 1 when switch case is true and when false same counter should decrement by 1 from last incremented value, again when true it should increment form last decremented value.so on can you provide code for that ,please
thank you
12-15-2013 03:02 AM
(This seems only remotely related to this 12 year old thread. It is not the same A new thread would have been more appropriate.)
All you need is to keep your counter value in a shift register and use a case structure that has a decrement in one case and an increment in the other case.
See how far you get. What is the loop rate? I assume that the couter should keep incrementing or decrementing while the switch remains unchanged. Right?