Timer1 - frequency measurement


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Talking

    Looking at this ...pic. I do think PbP has not its place inside the 870 !!!

    125 Khz * 256 = ... 32 Mhz

    Alain
    Last edited by Acetronics2; - 27th October 2008 at 17:33.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Jul 2007
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Looking at this ...pic. I do think PbP has not its place inside the 870 !!!

    125 Khz * 256 = ... 32 Mhz

    Alain
    What do you mean?

    and the 125khz is that the maximum frequency the 16f870 can capture?

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Timer1 can work with some pretty quick external input clocks. Check the electrical specs
    section TIMER0 AND TIMER1 EXTERNAL CLOCK REQUIREMENTS.

    Look at the specs for T1CKI High Time, T1CKI Low Time, and T1CKI Input Period.

    With a pickup coil tuned to the frequency you're measuring, and the /64 output, it should
    be pretty simple to measure your freq range.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Jul 2007
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Timer1 can work with some pretty quick external input clocks. Check the electrical specs
    section TIMER0 AND TIMER1 EXTERNAL CLOCK REQUIREMENTS.

    Look at the specs for T1CKI High Time, T1CKI Low Time, and T1CKI Input Period.

    With a pickup coil tuned to the frequency you're measuring, and the /64 output, it should
    be pretty simple to measure your freq range.
    Hi Bruce,

    I've read that, but i don't totally understand it, thats why i wanted some help in getting started, i no timer1 would do what i need, but i don't no how to control timer1, i've never written a program that uses it.

  5. #5
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Visit the given link, schematic and code available.


    http://digilander.libero.it/alfred73/eprojects.htm#1300 Mhz Frequencymeter with prescale

    Al.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I've read that, but i don't totally understand it
    Which part are you having trouble with? I'll be happy to explain it.

    thats why i wanted some help in getting started, i no timer1 would do what i need, but i don't no how to control timer1
    T1CON on the 16F870 only has 6-bits that control the timer. Let me know what you don't understand that's in the data sheet, and I'll do my best to explain it. It would help if you tried a few code examples, and indicated which part you're having trouble with.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Jul 2007
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Which part are you having trouble with? I'll be happy to explain it.



    T1CON on the 16F870 only has 6-bits that control the timer. Let me know what you don't understand that's in the data sheet, and I'll do my best to explain it. It would help if you tried a few code examples, and indicated which part you're having trouble with.
    I don't understand how i work out, what the maximum frequency timer1 could capture from that data

Similar Threads

  1. Help with TIMER1 + SLEEP
    By Yodoad in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd May 2009, 15:07
  2. Advice on frequency measurement to 30MHz
    By Andy Wood in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th March 2009, 04:23
  3. inaccurate frequency using TMR1 PI18F452
    By nkarpovich in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 14th October 2006, 16:22
  4. frequency measurement
    By big-x in forum General
    Replies: 2
    Last Post: - 25th November 2005, 00:53
  5. Timer1 and Interupt wierdness
    By mind in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd August 2005, 01:24

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