8 to 0 countdown timer

Status
Not open for further replies.

rayel

Newbie level 5
Joined
Sep 17, 2013
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,364
Hi
I was looking at a countdown timer sent in by Metal it was quite a way back 05-08-05 the title was countdown from 8 to 0
I like the ease of the program so I downloaded it then ran it
it ran right off no problems EXCEPT it counts up .What I really need is a count down time with a short code a possible
I am very green at this stuff so any help would be very helpful. Could some lead me to a solution to that program ?
if I get it to work I would like to try a 2 digit countdown timer from 10 to 0 with an output when it reaches 0 then start all over again

What I really am doing is making a 10 min id'r for my radio station when it reaches 0 it will turn on a relay it sets the play button on my radio shack voice module to indentify my station

Thanks for any help
Ray
 

Attachments

  • 8 to 0 count down timer.txt
    604 bytes · Views: 86
Last edited:

Hi Jay
did you get my post ???
I had to send it 2 times I hope it went through
I noticed that it went to my original post is that the way its done.?
I thought it would go to your reply


Thanks Ray
 

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
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…