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.
Hi!
I am trying to generate frequency of pwm in khz. At most, I was able to increase it to 100hz by changing Timerper value( to 1, which is last value and crystal osc to 20MHZ). What more I can do to increase PWM freq? Because output is responding to the change in input freq is responding to...
Thanks Venkatesh.
I used third order RC network to get the perfect sine wave and it worked except for the frequency. Previously the freq was 1 hz as you saw. Now it is 1.5 hz when I changed the crystal osc Mhz from 11.095 Mhzto 20 Mhz. That means I should increase the frequency of PWM signals...
Hi Klaus!
The code I posted above has sine table values.
But I don't know why the frequency comes is ~1hz. The dc bus voltage I am using is 24vdc instead of 230v dc, so that once I succeed , I would test it with 230vdc. I hope this wont be a problem.
here is the final output, but is still a...
Its only random values. Could not get calculated ones The frequency of pwm is 60hz according to the code.
the frequency is f = 1 / (2pi RC) Is it right way to calculate?
Hi venkatesh!
Here are 2 pwms:
Here is the output without filtering:
I used a kinda filter to which output appeared like this:
Here is the filter circuit I used:
Hi venkatesh!
Sorry for the long gap.
I am still working on it.
The code looks fine since I am getting correct waveforms .I think I need a proper filter to cut out the sine wave from the output. Can you show me one? I have tried the the following one but couldn't get it.
Here are 2...
Yes I understood how the h bridge works. It should work like this.
High side left Mosfet Low side left mosfet high side right mosfet low side right mosfet
1 0 0 1...
Hi!
The expected PWMs from microcontroller appear square waves one after the other but not at the same time. Due to this, the output appears in intervals distorted as shown in the image.
Please check whether the code is right. I have posted the images, last being the output.
#include...
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.