Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Re: 16f877a pwm no output
Thanks for reply. My circuit is a 20kHz H-bridge driven by sinus pwm. For that, I need 2 pwm channels. Pic creats sinus pwms, pwms go to 2 ir2110 mosfet drivers then 4 mosfets make switching.
Because of 20Khz, LUT will have many values in it. I think LUT is not an...
Re: 16f877a pwm no output
With some code changes, I figured out that if I use just set_pwm1_duty(j) or set_pwm2_duty(j) in code it looks like working.(I think Proteus can't show duty cycle changes, but shows %50 duty cycle pwm signal). So how can I use both of the pwm pins?
This picture shows...
16f877a pwm no output
I have written a code below to produce a 20kHz pwm to create a sinus wave at 50 Hz by changing duty cycle.
When I run the program it gave me no out puts on RC1 and RC2 pins. I got just logic 0. But pin RC0 was always logic 1. I couldn't find what wrong is.
Here is the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.