DT_Elapsed timer constant for 40 MHz?


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Wink

    Thanks for that. Inside the Elapsed_INT-18.bas file, was reference to a link that was suppose to show you how to calculate different TimerConsts for different crystal frequencies, but it is now dead. I will test this tomorrow.

    Can I add the prescaler to the Elapsed_INT-18.bas like this, or does it have to be external?


    If OSC == 40
    T1CON.4=1 ; Set a 1:8 prescaler
    T1CON.5=1 ; on TMR1
    TimerConst=0CF2Dh
    EndIF
    Last edited by circuitpro; - 11th July 2010 at 19:23.

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