time measurement between 2 pulses


Closed Thread
Results 1 to 11 of 11

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Ok, Vlad

    Erroneous, erroneous ... you're joking, I hope !!! 2x10µs for a 1ms period is 2% ... use a 20 Mhz Xtal and it will be 2x2µs ... .4% !!!

    The limitation is in maths involved.

    You want a high precision wide range freq. meter ??? ... begin by considering your Xtals precision and The Pic Osc stability vs temp. ...

    the only way is to use timers and interrupts ... with additionnal variables that extend timers range.

    somewhat like you started with ...

    but AT LEAST using Darrel's instant interrupts ... and probably the "N Bits maths" both from Darrel's goodies.

    Alain
    ************************************************** ***********************
    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
    Apr 2010
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Alain
    I call erroneous when the counter pass through 65535 and then the counter start again. When de width of pulse is too big I must to handler the final count.
    Please be patient with me! I´m newbie!

  3. #3
    Join Date
    Apr 2010
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    The maximum time between pulse and pulse is of 65535 us x 2, that is 1,310s. How can I do to measure the value of the time between each pulse if this time is greater to 2 seconds, for example?

    Thank you!

  4. #4
    Join Date
    Apr 2010
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Alain, are you there? Help me please!!

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