Hi Dennis, Really appreciate you trying to help me. I want to create symmetrical PWM waveforms with one PWM "high pulse" and one inverted "low pulse" with the same duty cycles very next to each other and the rest of the period to be at reset mode. I think when I connect the MCU to my power board, the hardware will take care of the inversion, so I don't need to invert the second pulse. So for example, if the period is 1000 s: TA0CCR0 = 1000; //High pulse TA0CCTL2 = OUTMOD_7; TA0CCR2= 100; //Second pulse TA0CCTL3=OUTMOD_3; TA0CCR3 = 100; //Reset the rest of the interval TA0CCTL4=OUTMOD_5; TA0CCR0 = 200; TA0CLR=MC_1 + TASSEL_2 + TACLR; //up-mode Please let me know if this looks right to you. Thank you so much.
↧