PDA

View Full Version : Ultrasonic PWM



vspear
11-21-2012, 04:51 PM
Urgently need approx 31KHz on any PWM pin of the Teensy 3.0 Can someone suggest exact settings for the Timers, etc to simply call it in the setup().

Thank You in advance.

PaulStoffregen
11-21-2012, 05:37 PM
Please use this thread.

http://forum.pjrc.com/threads/518-PWM-Frequency-%28was-TimerOne-on-Teensy-3%29

The API for this is being discussed (perhaps too much) on the Arduino developer mail list right now. Actually, for the last 5 days.

If you could very briefly mention why you need 31 kHz, it might really help. But please do so on that other thread. That's where I'll (probably soon) be posting code.