Counter using EB008 Quad 7Seg Display
Posted: Thu Oct 21, 2010 2:25 pm
I received a EB008 Eblock today, So I decided to created an application that can be used for batch counting or other counting applications. (Flowcode V4)
With EB008 plugged into port A and B. Portc 0 is trigger and portc1 is reset.
Counter increments one at a time from 0 to 9999 with no flickering each time C0 goes high then low, and stops at 9999.
This Flowchart can convert any variable from 0 to 9999,direct to the quad 7seg display.
Other apps can include a stop watch, clock, display for voltages etc.
Uses a total of 12 pins which includes a decimal point.
Using timer0 to refresh display so if delays, key detections etc used, then refresh rate will stay the same.
Tested on 18F4455.
Not used the pll function of 18F4455 (chip is running at 19.66MHz and not 48MHz), so LED refresh speed will not change if using a different target with EB006 programmer and 19.66 MHz xtal.
With EB008 plugged into port A and B. Portc 0 is trigger and portc1 is reset.
Counter increments one at a time from 0 to 9999 with no flickering each time C0 goes high then low, and stops at 9999.
This Flowchart can convert any variable from 0 to 9999,direct to the quad 7seg display.
Other apps can include a stop watch, clock, display for voltages etc.
Uses a total of 12 pins which includes a decimal point.
Using timer0 to refresh display so if delays, key detections etc used, then refresh rate will stay the same.
Tested on 18F4455.
Not used the pll function of 18F4455 (chip is running at 19.66MHz and not 48MHz), so LED refresh speed will not change if using a different target with EB006 programmer and 19.66 MHz xtal.