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.

PWM of msp

Hi

    I made this code for PWM of the msp2274.

 

 

 WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT
  
  P2DIR |= 0x04;                          //port 2 pin p2.2                     

  P2SEL |= 0x04;                            // P1.2 and P1.3 TA0/2 otions

  TACCR0 =512;                             // PWM Period/2

  TACCTL1 = OUTMOD_3;                       // TACCR2 toggle/set
  TACCR1 = 384;
 
  TACTL = TASSEL_2 + MC_3;                  // ACLK, up-down mode

  __bis_SR_register(LPM3_bits);          

 

               But i have not got any output on the pin 2.2 .means i got the 0 volt at same pin.

So if anyone knows about the problem please told me.

Thanks

nilesh

**Attention** This is a public forum