FreqCount on multiple pins ? T3.2

Status
Not open for further replies.

Gadget999

Well-known member
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)
 
Since FTM0 has 8 channels, you could implement similar capability on that (FreqCount uses the LPTMR). See the processor's Datasheet.

EDIT:
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:
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.
 
Status
Not open for further replies.
Back
Top