Digital Clock

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Confused
Posts: 1
Joined: Thu Nov 15, 2007 3:35 pm

Digital Clock

Post by Confused »

Hello
I wonder if anybody can help me?
I am at college and one of the things i am studying is Flowcode.
I have to program a 24 hour digital clock. The problem i am having is that the LED7seg4 can only display one number at a time. With the nature of what i am trying to program, the multiplexing doesn't allow me to have the numbers displayed all the time to show the clock working.
I don't think the way i have it programed is right either so any suggestions would be great :D

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello

You can use the timer0 interrupt on the chip to either do the timing or to do the refreshing of the 7 segments. I am guessing that you are using it for the timing so your main code fil would just have to deal with refreshing the displays. If you write a number to the first 7 seg, wait approx 5ms, then write the number to the next 7 seg, wait approx 5ms etc.

This will allow you to display all 4 digits at once.

Post Reply