PWM help
clloyd
Posts: 31
The PWM function has the parameters: Pin, duty cycle, and "duration". I clearly understand the duty cycle and the pin in which you want to output it through however i dont understand this "duration" parameter. If say I wanted to output a 50% duty cycle through pin 9 at a 1 kHz output would i then use an RC value of 1/(5*R*C) being equal to 1000 with the circuit that is shown in the index for PWM? Just not sure what the relevance of the RC component is just assumed you could set the frequency on the output and nothing else would be necessary.
Comments
-Phil
-Phil
What is your ultimate objective? There's usually more than one way to get from A to B.
-Phil
You may also want to take a look at the PWMPal which Parallex sells:
http://www.parallax.com/Store/Accessories/MotorServoControllers/tabid/160/ProductID/67/List/1/Default.aspx?SortField=ProductName,ProductName
The PWMPal fits underneath the Stamp so it really needs no PCB real estate of its own.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When all else fails, try inserting a new battery.