erickone96 Posted November 22, 2016 Report Share Posted November 22, 2016 Hello, I'm using the PWM generator block successfully, but the PWM signals have a frequency of about 375KHz (way too fast for my application). Is it possible to change the frequency of the generated PWM signals without messing around with the VHDL code? I'm not very familiar with VHDL. I'm generating two PWM signals, one is the complement of the other (while 1 is high the other one is low), that I will be using for controlling a DC motor so a reasonable frequency would be between 500Hz and 20KHz. thanks, Erick Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted November 22, 2016 Report Share Posted November 22, 2016 Hello Erick, Which PWM generator block are you using? Can you post a screenshot or some code? Thanks, Jack. Quote Link to comment Share on other sites More sharing options...
erickone96 Posted November 22, 2016 Author Report Share Posted November 22, 2016 Hi Jack, I just figured out how to change the frequency of my pwms. I saw in the vhdl code that [ freq = CLK / (2^PWM_width)]. Thank you so much for replying so quick though! Have a great day! P.D. I was using the RCL_PWM_x48. Regards, Ruben Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted November 22, 2016 Report Share Posted November 22, 2016 Sounds good. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.