PDA

View Full Version : count down timer 12f683 4 modes



chrisrlundberg
- 18th August 2012, 02:22
I'am very new at programming and having issues on a solution .

Using 12f683
would like 4 timer modes that will hold pin 5 high for 5 secs off for 5 secs at a time for duration of mode selected .

Modes as follows 5 mins, 10 mins, 20 mins counting down to zero then enter sleep mode when done . only one timer will be running at a time

Each mode can be selected with one push button each button press will move to next mode timer using pin 7 with led flashing mode ,


If anyone can help me figure this out I would jump for joy .


using mikro C asm is ok also .

Archangel
- 18th August 2012, 04:35
Create your countdown timer with a variable which contains the initial value according to your setting of switches or some serial input .

chrisrlundberg
- 18th August 2012, 06:54
Sounds like a plan but a bit over my head can you please give me a code example to get me stated .

mackrackit
- 18th August 2012, 07:44
Sounds like a plan but a bit over my head can you please give me a code example to get me stated .

using mikro C asm is ok also .
Sorry, this is a PicBasic forum.

chrisrlundberg
- 19th August 2012, 00:53
I'am also using pic-basic if any one can help it would be appreciated . Thanks .