FreqCount on Teensy 3.0

peja

New member
Hi Paul,

I like to use the teensy 3.0 for frequency measurements with FreqCount.
FreqCount/util/timer.h does not contain a definition for teensy 3.0 yet.

Is it complicated to add it?
Will the maximal frequency be higher as on teensy 2.0 if I use 96 MHz?

By the way, many thanks for the great board and the perfect support!

Kindest regards,
Peter
 
Hi Paul,

I like to use the teensy 3.0 for frequency measurements with FreqCount.
FreqCount/util/timer.h does not contain a definition for teensy 3.0 yet.

Is it complicated to add it?

Yes, it's complicated.

I will do it, but this isn't easy, so it's not something I can do very quickly.


Will the maximal frequency be higher as on teensy 2.0 if I use 96 MHz?

I believe the timers can be externally clocked up to 1/4 of the clock. However, the timers run from the bus clock (as almost all the peripherals do), not the cpu clock. The bus clock is 48 MHz when the CPU is either 48 or 96 MHz. So 12 MHz will probably be the maximum.
 
Yes, it's complicated.

I will do it, but this isn't easy, so it's not something I can do very quickly.




I believe the timers can be externally clocked up to 1/4 of the clock. However, the timers run from the bus clock (as almost all the peripherals do), not the cpu clock. The bus clock is 48 MHz when the CPU is either 48 or 96 MHz. So 12 MHz will probably be the maximum.

did anyone make any progress on this one? or any clues as to where the complications reside? (sorry if that sounds lazy... i just found out this hasn't been ported yet, and after finding this, i feel slightly intimidated)

edit. just found this - http://www.digitalmisery.com/2013/06/timer-input-capture-on-teensy-3-0/
looks like more worthwhile than trying to fiddle with that library
 
Last edited:
Just for followup for anyone tracking this thread, Paul reported porting FreqCount and FreqMeasure to Teensy 3.x back in June 2014.

Paul, what input circuit did you use with Teensy 3.x here? The ones for Teensy 2 looks as if the transistor would be into saturation on a 3V3 rail.
 
Back
Top