Hi,
There seems to be something wrong with the attachment so I can't look at your code and I'm not exactly shure what you're asking. Do you have a 6 digit display that will display elapsed time in seconds or do you have 3pcs of 2-digit displays that will all display elapsed time in seconds but independently of each other or do you have a 6 digit display that will display elapsed time in hours:minutes:seconds format?
But basically, each time you increment a digit you check if it rolled over, if it did you increment the "next" digit, check if IT rolled over and so on. If you have three digits showing elapsed time in seconds then something like this:
Code:
Ones = Ones + 1
If Ones = 10 THEN ' A single digit can only display 0-9
Ones = 0
Tens = Tens + 1
If Tens = 10 THEN
Tens = 0
Hundreds = Hundreds + 1
ENDIF
ENDIF
The same tecnique can be adopted to any number of digits, to hours:minutes:seconds or a countdown timer etc.
/Henrik.
Bookmarks