Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: FrequencyCount Library

  1. #1

    FrequencyCount Library

    Hello All,

    Just a quick question about frequencyCount Library. Is it possible to measure frequency above 65MHz with Teensy3.6? If yes, what should I do?

    Best regards,


  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    With that library, no, 65 MHz is the limit.

    If you write different code, or edit the library, maybe you can measure higher. Maybe. The main issue is the minimum 1 ms gate time, and overflowing the 16 bit counter. So if you write code for a shorter timing interval to do the measurements (probably the simpler path), or somehow add code to deal with the overflow issues (probably much harder), maybe you could measure higher.

    Whether the hardware really would work at higher frequency, and really whether it's truly accurate even this high, is questionable. NXP's datasheet for this chip says on page 18 the maximum clock for LPTMR is 25 MHz.

  3. #3
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Colmar, France
    Why not use an external pre-scaler IC? I remember that in the 1980ies, most DIY frequency counter stuff was limited by the speed of available logic ICs and reached normally 10MHz. Using a /64 prescaler IC in ECL logic, one could then go beyond 600MHz.

  4. #4
    Sorry for late response,

    Thanks a lot about your opinion and help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts