In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Philldapill wrote: Hey all, I'm pretty new to the SX, but have used the propeller for a good bit of time now. There are some things that the propeller is great at, and others where it is just overkill. This is one of those overkill scenarios, so I'm trying out the SX. What I want to do, is use the SX to output a PWM signal. To control the signal, I want to have two potentiometers - one to control frequency, and the other should control the duty cycle. My thinking is, use the SX to read either the resistance, or the voltage level on the pots, and with these values, change the frequency and duty cycle. These values should be updated continuously, or at least 10 times a second. The PWM frequency at maximum, will be set to 45kHz. Is there any code for this? Like I said, I'm new to the SX and don't really know any code for it just yet, but I figure that if there is code out there that does something similiar, or part of this, I could use it for my project and learn at the same time. Thanks everyone! ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=318599 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)