Forum Discussion
Altera_Forum
Honored Contributor
10 years agoDeforming of 60Hz sine wave wrt time based on 20KHz SPWM
Hello everyone! I am using altera ep2c5t144c8 mini development board to get the output of 60Hz sine wave with the carrier frequency of 20KHz. I,ve got the results of SPWM but with spikes in ...
Altera_Forum
Honored Contributor
10 years agofirst of all thanks for your attention Kaz!
What I can understand from ur perspective that I should write the condition like this if(counter_pwm >= 2500) then counter_pwm := 0 end if; secondly in given code the count of 208 is adding instead of 83. Now my logic is that the value '208335' is the total time in which 1/4th of the complete cycle completes and I am using 1000 values(you can see in code) which I am sending in this total time so I get the equal interval of 208 counts. In short we can say 208 is the time interval between two values of the table of 1000 values.