Let's Make Robots!

Servo Routine for MSP430 LaunchPad

Has anyone written (or seen) a short simple program that I can build on for PWM servo control using the MSP430 launchpad?

Just someting basic and simple; easy to follow.

Thanks!

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I would recommend checking out 43oh.com or checking the TI site itself. The TI site has several examples and documents that would be helpful for what you are looking for. Basically though it'll have to do with using the timer and compare functionality. I've not tried this myself as I had not planned on using the servo, but I've seen quite a bit of info out there.

Edit: you might be interested in this as well.  Get your kit for $29$14.50 (50% OFF!)TI eStore coupon: MSP430_FRAM

I'm ordering one this eve.

This has likely already been answered, but I did PWM on a F149 back a decade ago...

The beauty of the MSP430 series of controllers is that (asside from pin assignments), the code that works for one (like the F149 that I used), will work for a F169, F449, etc..

I also dont't recall it being that difficult.  You basically configure a port and timer for PWM, then change the value of a CC register to alter the pulse width... 

I googled for "msp430 pwm code example in c" and immediatly got the example at:

http://www.msp430launchpad.com/2010/07/timers-and-clocks-and-pwm-oh-my.html

 

Hope this helps...

Dozer_f149