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

Thread: Read two freqcount at same time

  1. #1
    Junior Member
    Join Date
    May 2022

    Read two freqcount at same time

    Hello, I have two sensors that make pulse around 50khz to 120khz, I need to count them both at the same time, how can I do it with teensy 3.2 or is that possible to do it?
    Frqucnycunter liberary just read one sensor on pin 13

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Maybe try FreqCount for the higher frequency and FreqMeasure for the lower frequency?

    If the speed is too fast for FreqMeasure, maybe add a hardware divider circuit to lower the frequency.

    Unfortunately there is only one LPTRM inside Teensy 3.2, so FreqCount is limited to counting only 1 frequency. It is a hardware limitation. No amount of software can overcome the fact that only 1 external count capable timer exists within the chip.

Posting Permissions

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