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.

MSP430G2231: Generation of two PWM signals

Part Number: MSP430G2231

Hello friends,

       I'm new to TI processor. I have started to work in TI MSP430G2231 processor. My intention is to generate two PWM signal with same frequency but dutycycle of PWM signals is independently controllable through a external potentiometer. So far i achieved in generation of one PWM signal. Is is possible? Help me to achieve this.   

       More over, when i gone through the datasheet, the following pins are mentioned with

P1.1 ->TA0.0

P1.2 ->TA0.1

P1.5 ->TA0.0

P1.6 ->TA0.1 What does it mean?

  • For your purposes, TA0.1 carries the output generated according to Timer A [0] CCR 1 (TACCTL1/TACCR1). You connect the timer to the pin using P1SEL.

    Similarly for CCR0. Unfortunately, CCR0 has very limited PWM capabilities (ref SLAU144J Sec 12.2.5.1), not PWM in any meaningful form.

    Since the G2231 doesn't have a CCR2 (TA0.2), to get 2x (different) PWM streams you'll probably need to do PWM in software.

    Is use of the G2231 a requirement?

    [Edit: Added "(different)"]

  • Thanks Bruce. No G2231 is not mandatory to use. Instead can I go for G2553?
  • Yes, I think the G2553 would be quite suitable. The G2553 is a 20-pin (vs 16-pin) device, but e.g. the G2 Launchpad has a 20-pin socket. (Last I checked, the G2 Launchpad came with a G2553 in the box.)

    This will actually give you 4x PWM channels (TA0.1/2, TA1.1/2).
  • Ok Bruce. Once again Thanks :)

**Attention** This is a public forum