PDA

View Full Version : Timers & Counters



chapkagop58
- 13th February 2012, 19:02
Dear:
First apologize because my English is not good and second I am an amateur beginner.
I need to count with a PIC16F887, a timed output at up to 30 seconds when receiving an input signal.
I count also how long (max. 6 seconds) it is kept with 1an input (through a switch), this is for simultaneous input 4. Note that these 4 inputs and pulse timer can be activated simultaneously.
Is this possible to doin this PIC and PicBasic?
If possible I could give some help.
From already thank you very much.

Art
- 22nd February 2012, 15:12
Start with Darrel Taylor's "Elapsed Timer" code.
You don't really need to bother with keeping the real time,
but once implemented you can easily check the Secondschanged variable
and count seconds at any time from there.
A "Ticks" (1/100th of a second) variable is also available.
Cheers, Art.

chapkagop58
- 23rd February 2012, 02:18
ok, thanks Art!, try with it once I internalize more Darrel Taylor's "Elapsed Timer" code.
Thanks for responding!