Timers have me beat


Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    Aug 2006
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    Here's the math I used to come up with my output frequency.

    The internal clock executes at 1Mhz.

    If I use a 1:16 Prescaler, then it will take 256*16 clock pulses to overflow Timer0. 1,000,000/(256*16)=244Hz

    Math was never my strong suit though...

    I moved the enable/disable to where you suggested, and now I'm getting a 10Khz signal.

    Getting closer...

    EDIT: WOO! I forgot I'd changed another value! It works now! I'm getting my 244Hz signal! Thanks so much!
    Last edited by Doormatt; - 7th June 2007 at 05:56. Reason: Got it working!

Similar Threads

  1. Timers
    By mitchf14 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th November 2008, 20:08
  2. Reading Timers
    By kevj in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th August 2007, 08:19
  3. Timers !
    By n qwerty in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd August 2007, 11:39
  4. hardware timers
    By Adam in forum General
    Replies: 3
    Last Post: - 7th March 2007, 00:10
  5. Availability of PIC timers from PBP
    By coda64 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th February 2006, 07:18

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