Up/Down Counter Display using 4 7-seg displays
Posted: Mon Dec 03, 2007 10:08 pm
hello!
I have been using Flowcode at college and for a project trying to make an up down Counter which displays the count on a 4 7-seg display. i have got the counter working by using switches to make te counter count up every time the input switch count up is pressed which adds 1 to the total count and a switch when pressed takes one away from the total to count down.
to see if the counter was working i used LEDs as a display on the output. now i want to use the 4 7-seg displays to display the total count. i have worked through the floucourse tutorials and have got the sinlge 7 segment display working. the problem with the single 7-seg display is that only displays the count upto 9. when i worked through the 4 7-seg display on flowcourse i got it working on its own with putting the values i wanted on each digit in its macro.
i just wanted some help on how to program the display so i dont have to put the number in each display manually but for it do load the count automatically form the total count. i have tried using variables value1, value2, value3, value4 for each macro but i only get digit 0 the display on the right counting upto 9 after which it goes to zero but the next display doesnt display the 1 to display a 10 the next display stays at 0 and digit 0 starts counting again from 0-9 and the cycle keeps going. how do i program it so it displays the count if the counter has gone over 9
if anyone counld please help me i would appreciate it because i have to do a presentation to the class of the counter in action/working and hand in a report to the tutor.
SUB
I have been using Flowcode at college and for a project trying to make an up down Counter which displays the count on a 4 7-seg display. i have got the counter working by using switches to make te counter count up every time the input switch count up is pressed which adds 1 to the total count and a switch when pressed takes one away from the total to count down.
to see if the counter was working i used LEDs as a display on the output. now i want to use the 4 7-seg displays to display the total count. i have worked through the floucourse tutorials and have got the sinlge 7 segment display working. the problem with the single 7-seg display is that only displays the count upto 9. when i worked through the 4 7-seg display on flowcourse i got it working on its own with putting the values i wanted on each digit in its macro.
i just wanted some help on how to program the display so i dont have to put the number in each display manually but for it do load the count automatically form the total count. i have tried using variables value1, value2, value3, value4 for each macro but i only get digit 0 the display on the right counting upto 9 after which it goes to zero but the next display doesnt display the 1 to display a 10 the next display stays at 0 and digit 0 starts counting again from 0-9 and the cycle keeps going. how do i program it so it displays the count if the counter has gone over 9
if anyone counld please help me i would appreciate it because i have to do a presentation to the class of the counter in action/working and hand in a report to the tutor.
SUB