Up / Down event counter
Count a 7-segments LED display Up or Down, including fastMode Up / Down.
The 74HC595 datasheet.
The AT90S2343 datasheet.
The TDSL5160 datasheet.
Components:

1x AT90S2343
1x 74HC595
1x TDSL5160
1x 7805
1x 47uF/16V
1x 100n multilayer
2x pushbutton
1x 10k
1x 100n
7x 1k


Testing the routine on a little breadboard..
Up/Down event counter:

This event counter isn't just a simple Up / Down counter. This one has something extra, that is a fastMode function, that is when you push one of the buttons for longer than approx. 1 sec it start to increase the speed of the event count (approx. 100 msec per step, in both up and down mode) This circuit can be used for multiple purposes. The buttons don't need debounce circuits, it's all done by software! The software also has so called 'adjacent key suppression', this means that when it is in a count process, the other button won't have any affect on it (one button at a time) This is a functional example circuit.

Download: eventcntr.zip.

Dump the *.hex and *.eep file into an AT90S2343 with this programmer, and build the circuit, and you can start playing around.

Have fun!


[back to top]