How can I get Timer 1 to overflow every 5 seconds


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    FLA
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    thanks scalerobotics and acetronics...I guess I had answer my own question

    "...Can I use Timer0 as another prescaler to Timer1?...

    I guess I could use Timer0 and at overflow set any available pin high then low (generate a pulse) and use it as input (via hardwire) to another timer which would be set to read an external clock (that would be the pulse).

    Thinking out of the box.....

    thanks again

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Just increment/count a variable in the TIMER1 interrupt service routine and you can achieve any interval that you want - from fractions of a second to hours.

Members who have read this thread : 0

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