Generating PWM with the SX28
Hey Everyone,
I have been trying to gererate motor control PWM with an SX28 for some time now, but have not been able to make it work.· I have tried Bean's 16 channel PWM code and some code of my own, but none of it seems to be working.· Could anybody take a look at the code and see if they can figure out whats going wrong, because it has me stumped?
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
I have been trying to gererate motor control PWM with an SX28 for some time now, but have not been able to make it work.· I have tried Bean's 16 channel PWM code and some code of my own, but none of it seems to be working.· Could anybody take a look at the code and see if they can figure out whats going wrong, because it has me stumped?
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Comments
For Assembler, If you have Guenther's book, the last portion discusses providing a BOEbot with an SX28 to drive two servos.· The code from the text is publically available at Parallax, but you have to buy the text.
Senix-Ubicom has Assembler code examples and so does SXLIST.com; but for the life of me they just seem too complex or to cryptic in their explanations.· At least with Guenther's text, you can get a proof of concept operating in a tangible device and then work from there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"If you want more fiber, eat the package.· Not enough?· Eat the manual."········
Post Edited (Kramer) : 12/4/2006 4:58:10 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
On a related note; how do you calculate how many cycles a block of code take to run?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·