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.

MSP430G2353: How to get 3 PWM outputs

Part Number: MSP430G2353

Hi,

Can I get 3 PWM outputs using  any of the timers. Timer A1 has TA1.0,TA1.1 and TA1.2. But  it looks like I can only get two.  Any ideas? I suppose I could use one from timer A0 and 2 from timer A1?

I wired up the 3 PWM line to pins 16,17 & 13 of the 28 pin package.but TA1.0  has limitations on the modes of operation(Output mode. Modes 2, 3, 6, and 7 are not useful for TACCR0, ) on a prototype, but I can use other pins if I can do it. The period is slow like 5 msec and i need from 50-100 % PWM for RGB lighting.

Thanks

  • Hi Jerry,

    We have example code/an application note for multiple PWM generation, see here. Let me know if you have any follow up questions, but this should be able to answer most of them.

    Best,
    Amruta 

  • The G2353 only has two CCR registers for each of it's two A timers. The app note on using the continuos mode to generate multiple PWM times is interesting but it requires some running software(An interrupt each cycle to continually change the time).

    I was going to use one of the timers for an interval timer for software housekeeping, but I guess I can share it with a PWM period timer.  Anyhow, thanks very much for the app notes on this. 

    Best Regards,

    Jerry

**Attention** This is a public forum