Can anybody post me an example how to generate PWM and to control the duty cycle using push button. And how is the connection looks like?
I'm using 16F877 and my switching frequency is 50-100kHz.
Just create a "int8" variable called "pwm_duty", and initialize it to 0.
Then increment it every time the button is pushed. Then
call the set_pwm1_duty() function with the pwm_duty variable
as the parameter.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum