Hridoy C Borman
Newbie
MicroC Pro PWM not working with 16F73 need help
unsigned short duty_c; // Define variable duty_c
void initMain() {
ANSEL = 0;
PORTC = TRISC = 0;
PWM1_Init(50);
}
void main() {
initMain();
duty_c = 127; // Initial value of duty-cycle
PWM1_Start(); // Start PWM1 module
PWM1_Set_Duty(duty_c); // Set PWM duty-cycle to 50%
}
unsigned short duty_c; // Define variable duty_c
void initMain() {
ANSEL = 0;
PORTC = TRISC = 0;
PWM1_Init(50);
}
void main() {
initMain();
duty_c = 127; // Initial value of duty-cycle
PWM1_Start(); // Start PWM1 module
PWM1_Set_Duty(duty_c); // Set PWM duty-cycle to 50%
}