Teensy 3.2: Is it possible using FreqCount for different Pins (multichannel)?

Status
Not open for further replies.

sun0727

New member
Hello Everyone,

I am newbie to Teensy. Now I am working on a small project, which should be able to measure the frequency for 4-5 Channels. The Input signals are all around 10 MHz square waves..

For the single channel, I have tried the FreqCou nt Lib from PaulStoffregen. It works great. But for multichannel frequency measurement, I only find the Library FreqMeasure, which works only for low frequency. Some similar question could also be found below:

https://forum.pjrc.com/threads/28583-Multi-Line-Frequency-Measurement-with-Teensy-3-1

https://forum.pjrc.com/threads/56477-FreqCount-on-multiple-pins-T3-2

It seems that measuring multiple high frequencies simultaneously is difficult, especially for newbies.

I have a compromise idea. But I don't know if it is possible and how to do it.

The FreqCount Library use Pin 13 as Signal Input. Could we also spefiy other Pin as Input, e.g. 250ms as Gate Time

- First 250 ms: measure the Freq on Pin 13,
- Second 250 ms: measure the Freq on Pin 14,
- Third 250 ms: measure the Freq on Pin 15,
- Fourth 250 ms: measure the Freq on Pin 16

then we could get the frequency from 4 channel in 1 second, just only the measurements happen in a certain sequence, not at the same time.

Anyway, it would be better, if there is a simple solution that can mesure high frequency simultaneous...

Any help would be sincerely appreciated. Thanks!
 
Status
Not open for further replies.
Back
Top