Hello All,
I am working on MSP430f67641 mcu and set the clock at 16Mhz.
I am working on PWM based rgb led brightness controlling. Brightness controlling working fine but problem is the led flicker, it not the seem likes a permanently on.
my code is:-
clock config at 16Mhz
void rgb_led_pwm(void)
{
// Configure RGB Led Pins As Output and PWM control
P3DIR |= BIT3;
P3SEL |= BIT3;
TA0CCR0 = 511-1; // PWM Period
TA0CCTL2 = OUTMOD_7; // CCR2 reset/set
TA0CCR2 = 0; // CCR2 PWM duty cycle
TA0CTL = TASSEL_2 | MC_1 | TACLR; // ACLK, up mode, clear TAR
}
it is working fine with 100 duty cycle but at below the 100 duty cycle it is flicker.
i am not getting the solution of it....