frequency measurement


Closed Thread
Results 1 to 3 of 3
  1. #1
    big-x's Avatar
    big-x Guest

    Unhappy frequency measurement

    can anyone help me with frequency measurements... i'm using a voltage to frequency converter to remotly sense a temperature, and for now i'm using a basic stamp to make the prototype. i will be moving it to the pic16f84 when done but i need to be able to measure the frequency down to +/- 1 Hz.... using the pulsein or the count function all i can get is a +/- 10 Hz and that is'nt good enough for the application.. so any hlep would be very much appreciated

    the frequency range is a represntation of the absolute temp scale where 2732 Hz is the temp of ice

    thanks

    Erwin

  2. #2
    Nitro's Avatar
    Nitro Guest


    Did you find this post helpful? Yes | No

    Smile other options

    interestingly enough, if you go into the pic's datasheets, you see two ways to count pulses in hardware.
    if tyou use something more complicated than the f84, you could use the external clock source for tmr0(0 to FF) or tmr1(0 to FFFF). using this you could count the pulses in a given delay period and get a figure in terms of
    pin-oscils/(period) the time base can be multiplied to 1sec.
    otherwise you could use the capture feature of the ccp module(which includes the pwm) to measure the amount of internal clock pulses in between every pulse on the pin. this will give an amount in terms of
    periods/pin-oscils.
    see if you can use either one.
    the first is easiest because you just have to multiply for hertz. for the capture module you'd have to invert the fraction for hz.

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Nitro
    interestingly enough....
    ...to see people taking the time to reply to posts that are dated more than 2 years back (from users that are not registered anymore).....

    ;-)
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



Similar Threads

  1. Advice on frequency measurement to 30MHz
    By Andy Wood in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th March 2009, 04:23
  2. HPWM command and oscillator frequency
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th March 2009, 22:41
  3. Timer1 - frequency measurement
    By -Dan- in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 5th November 2008, 10:31
  4. HPWM10 Frequency Updating
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 19th January 2008, 12:30
  5. inaccurate frequency using TMR1 PI18F452
    By nkarpovich in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 14th October 2006, 16:22

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