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

Thread: FreqCount on multiple pins ? T3.2

  1. #1

    FreqCount on multiple pins ? T3.2

    I see that freqCount uses Pin 13

    is it possible to use FreqCout on more than one pin at the same time ?

    Ideally 5 channels

    Is interrupts my best option (the frequency is typically under 50khz)

  2. #2
    Senior Member
    Join Date
    Feb 2017
    Since FTM0 has 8 channels, you could implement similar capability on that (FreqCount uses the LPTMR). See the processor's Datasheet.

    Sorry, that's wrong. The FreqCount technique clocks the counter with the external signal. So, at most, you could have 3 more inputs (one per FTM). But, you can't even do that on a T3.2 as the required pins are used for other functions. Maybe use some sort of MUX arrangement on Pin 13?
    Last edited by gfvalvo; 06-09-2019 at 12:33 PM.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Use FreqMeasureMulti. 50 kHz is a little high, but it still should work pretty well as long as you don't have other code hogging or disabling interrupts.

Posting Permissions

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