PROGRAM
int f=0;
void main()
{
unsigned int pwm_period, current_duty ;
current_duty=110; //duty ratio 50%
pwm_period = PWM1_MC_Init(50000, 0, 0x11, 0); //enable 1L AND 1H
pwm pins
PWM1_MC_Set_Duty(current_duty, 1) ;
PWM1_MC_Start();
DTCON1=5;
while (1)
{
}
}
}
A lifelong passion for innovation and a keen eye for the next big thing, I ensure you stay ahead in tomorrow's tech landscape.
LEARN MORE ABOUT ME