Altera_Forum
Honored Contributor
20 years agoPWM
Who has the PWM example design(a zip file)?
Could you send a copy to me ? Thank you very much! my email: icmaster_0@sohu.comWho has the PWM example design(a zip file)?
Could you send a copy to me ? Thank you very much! my email: icmaster_0@sohu.comIs there anyone who has a PWM IP for the NIOS II which can be added by the SOPC Builder?
Hello,
Opencores has got a PWM/Timer/Counter IP written in Verilog. Because this one is for the Wishbone bus it must be possible to connect the core with the Avalon bus by Custom Component Editor/Interface to User Logic in SOPCB. http://www.opencores.org/projects.cgi/web/ptc/overview (http://www.opencores.org/projects.cgi/web/ptc/overview) Regards, niosIIuserHi,
PWM is very easy to make yourself : One register is used to store the value written by the cpu. One counter is continuous running One comparator is looking for the value of the counter to be bigger or smaller than the register value --> the output og the PWM is the output of the comparator. Stefaan