I can help you with mikroBasic Code.
Jay Im not sure what mikrobasic is but I found a solution . I found that the n array counts from left to right in the lookup statement
so what I did was to reverse the digits order I took the first statement and moved to it to the last and then took the last to the first
I might be confusing you so I'll paste it here
'* Notes reverse (lookup n ) to count down instead of count up *
'* count up) Lookup n, [$40, $79, $24, $30, $19, $12, $02, $78, $00, $18], '
'* count dn) Lookup n, [$18, $00, $78, $02, $12, $19, $30, $24, $79, $40],
it works perfect it counts down from 9 to 0 then brings pin rb7 high for 3 seconds to turn on relay
I'll look into that mikrobasic
Thanks for your help
Ray