Getting PWM generation of wrong frequency

Create new topics, add your comment, remark, bugs...
Posts: 3
Joined: Tue Mar 27, 2012 7:34 pm

Getting PWM generation of wrong frequency

Postby kanchibhotla14 » Tue Apr 03, 2012 7:44 pm

Hello Sir,
I want to generate the SPWM and simple PWM to GPIOs ... SPWM of fundamental frequency 50Hz and Switching frequency 5kHz .....but when we build and run the program i am getting the switching frequency is of around 63Hz and fundamental frequency 2Hz ....simple PWM is of least frequency...
Ts = 2e-6 and Fixed step size is of 2e-6 (in solver) and MIPS 20e6 (in master).....even the fixed step size (in solver) is every time is resetting to 0.01..... I am attaching the simulation file...can you check and please tell me how to get the my required pwm frequency and spwm....even i tried with rate transition box but no use...
Sample PWM Generator
(30.11 KiB) Downloaded 163 times

Return to “General Remark and Questions”

Who is online

Users browsing this forum: No registered users and 2 guests