Forum Discussion
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.