Other Parts Discussed in Thread: MSP430F4270, TPS62260LED-338
I am using MSP430F4270,
and i would like to have PWM signal on TA0 pin. it can produce PWM signal,
but the problem is if I change CCR0 or CCR1 value. the duty cycle or the period won't change.
can someone give me suggestion please..
below is the code
#include <msp430x42x0.h>
void main(void)
{
WDTCTL = WDTPW +WDTHOLD; // Stop WDT
P1DIR |= 0x01; // P1.0 output
P1SEL |= 0x01; // P1.0 TA0 option
CCR0 = 512-1; // PWM Period
CCTL0 = OUTMOD_7; // CCR1 reset/set
CCR1 = 384; // CCR1 PWM duty cycle
TACTL = TASSEL_1 + MC_1; // ACLK, up mode
}