PDA

View Full Version : Start and stop a timer



Jan Bot
- 9th September 2005, 20:01
Hello,

I'm Jan Bot and I am new here. I'm going to build a propellor clock. The most diffecult thing of it is the sofware.

There is a signal at pin 6 of a PIC16F628A microcontroller. When there is a signal then the timer must start, if there is a second signal the timer must stop. But I want that the programme not stop when a timer runs.

Is there anyone who can help me?

bye,

Jan Bot

mister_e
- 10th September 2005, 17:06
mmm what i don't understand now...
you said


When there is a signal then the timer must start, if there is a second signal the timer must stop

BUT you said


I want that the programme not stop when a timer runs.


So i guess you need a timer wich run in background to allow a part of your code to run RIGHT???

How about the delay you need? milliseconds, secondes, hour, day, year,century?

What else your program do?