Timers & Counters


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Timers & Counters

    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.
    Last edited by chapkagop58; - 13th February 2012 at 20:04.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Timers & Counters

    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.

  3. #3


    Did you find this post helpful? Yes | No

    Talking Re: Timers & Counters

    ok, thanksArt!,trywith itonce IinternalizemoreDarrelTaylor's "ElapsedTimer" code.
    Thanks for responding!

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts