This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F427: PWM Generate on MSP430F427

Part Number: MSP430F427

I want to generate PWM(100%,50%,25%,20% etc) on PIN NO. 53 i.e. P1.0(TA0) in MSP430F427 MCU

Please tell me how to generate PWM on this PIN 

  • TA0 (CCR0) can't be used for "real" hardware PWM. It can provide 50% duty but that's it. This is what the User Guide means by "Output modes 2, 3, 6, and 7 are not useful for output unit 0, because EQUx = EQU0." [Ref UG (SLAU056L) Sec 15.2.5, second paragraph]

    If you're stuck with using that pin, I expect you'll need to do software PWM. There's a Reference Design which describes the technique and has some sample code. It's for the G2553, but that has the same TimerA unit:

    http://www.ti.com/tool/TIDM-G2XXSWRGBLED

**Attention** This is a public forum