Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumProgramming Questions & HelpSyntax › pulseOut timing

Page Index Toggle Pages: 1
pulseOut timing (Read 3226 times)
01/07/09 at 11:25:56

Nocturnal   Offline
YaBB Newbies

Posts: 5
*
 
How close is the output of pulseOut() to the requested frequency? what is the maximum (I'm guessing the minimum is 1hz) usable frequency?

These are details that are lacking from the documentation, but might be helpful if they were in there.
 
IP Logged
 
Reply #1 - 01/07/09 at 12:12:01

Nocturnal   Offline
YaBB Newbies

Posts: 5
*
 
Its definitely not outputting the frequency I want, and after watching my, scope as I vary the frequency, its obvious that it's approximating.

Again, would have been nice if that was in the documentation, it would have saved me a lot of time.
 
IP Logged
 
Reply #2 - 01/07/09 at 23:07:03

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
Yes, it is done via PWM, here is the source code file for it: http://wiring.uniandes.edu.co/source/trunk/wiring/core/WPulse.cpp?revision=472&view=markup
 
IP Logged
 
Page Index Toggle Pages: 1