06-28-2011 04:48 AM
Hi
I've been trying, to no avail, to increment and decrement a single value. I have two inputs which must trigger the increment and decrement respectively. Each input is digital and must be event orientated. It seems so simple in my brain, but I haven't seem to have gotten it at all and feel pretty stupid.
So...
Button A is triggered, event causes an increment of the single numeric value.
Button B is triggered, event causes a decrement of the single numeric value.
E.g.. A triggered, value to 1
A triggered again, value to 2
B triggered, value to 1
If anyone could help this would be awesome.
06-28-2011 06:51 AM
Homework? However here is a 2min version
Got the same but with with ttl signals up to 80Mhz (about 40MHz mean) 😉
I choosed the easy way, counted both on 32bit counter (giving me 100sec to measure) and calc the difference in software ..