I am sorry if this is discussed before.
I have two software functions using two independent PWM outputs.
Function 1 using P1.2 as PWM output from timer0
Function 2 using P1.6 as PWM output from timer0.
This MCU does have 3 CCR.
What i want is to disable P1.2 completely when function 2 is in command and vice-versa.
here is my PWM code for function 1 and 2
TA0CCR0 = 159; // PWM Period approx 50KHz (160-1=159)
TA0CCR1 = 80; // CCR1 PWM duty cycle
TA0CCTL1 = OUTMOD_7; // CCR1 reset/set
TA0CTL = TASSEL_2 + MC_1; // SMCLK, Up Mode
and i initialized P1.2 and P1.6 as:
P1SEL = 0x44;
P1DIR = 0x46;
Thanks,
Abhishek