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.

MSP430 Launchpad

Other Parts Discussed in Thread: MSP430G2553

Hi All,

Can I get 3 PWM output with this launchpad :http://www.ti.com/ww/en/launchpad/launchpads-msp430-msp-exp430g2.html#tabs using the timers?

How may timers do I need to get 3 PWM outputs?

Are there some code examples how to do that?

And what about that uC http://www.ti.com/product/msp430l092 , it hat 2 timers is that enough to generate 3 PWM signals to control 3 LED diodes?

Regards.

 

  • Current G2 launchpad have msp430g2553. If we take in account this, then answer is yes, on g2553 you can have not only 3 LED PWM channels but 6 :)

    Here's product in action :)

  • Ilmars said:
    on g2553 you can have not only 3 LED PWM channels but 6 :)

    Make that 4 (2*2) if you want to have some control over the PWM frequency (for each pair separately then). Else you are stuck to a full 65536 timer ticks cycle length.

  • Jens-Michael Gross said:
    Make that 4 (2*2) if you want to have some control over the PWM frequency (for each pair separately then). Else you are stuck to a full 65536 timer ticks cycle length.

    That's my point that they made 6 channels out of hardware that seemingly have limited hardware resources. Key here is "just enough" PWM resolution and calculated compromises, if any. You can run software PWM without CCR PWM output, using CCR IRQ with GPIO output wisely

**Attention** This is a public forum