Sx28 dip, pwm
Hi,· I would like to use my SX28 to generate 3· - 4 PWM signals at the same time, and be independent of each other(other than base freq).· I would like to know if this can be done, and can I control the % up / down with a button push for each pwm output, 10 pushes up and 10 down?· Thanks for the guidance.· If I need to upgrade chip, I will need to purchase the next developers set for this as I have the SX28 developer PWB.
Regards,
Dave M.
Regards,
Dave M.
Comments
Check out the sticky thread for Best of Threads, There are an number of threads on multiple PWM signals.
RS_JIM
For your application the best method is probably putting the PWM routines in an ISR (Interrupt routine). You can setup the Interrupt internal as something that will work for all your PWM and just use it to update counters for each one of your PWM signals and toggle the output as needed for each counter.
You can find some examples:
http://forums.parallax.com/forums/default.aspx?f=7&m=310134&g=310158#m310158
http://forums.parallax.com/forums/default.aspx?f=21&p=1&m=73867
Regards,
Dave M.
Since you seemed unclear earlier on how to find the sticky threads, I thought I'd help out. First, do you know what a "sticky" is? If you do, then you should be able to find them. Because of this, I'll assume you have no idea what a sticky is. It's simply a message that stays permanently at the top of the list of new messages in a forum.
When you log onto the Parallax forums, you are presented with all the sub-forums. You (since you are posting here) then click on the "SX Microcontroller" sub-forum. Okay, when you arrive at this forum next time, take a look at the handful of messages that are always at the top of the list and have a blue BG. They are the stickies. Look for the one that says "Best SX Threads" and give it a read. Excellent stuff in there.
Thanks,
PeterM
-Dan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A saint-like quantity of patience is a help, if this is unavailable, a salty vocabulary works nearly as well." - A. S. Weaver