Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

PWM

Altera_Forum
Honored Contributor II
1,398 Views

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.com
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
490 Views

Is there anyone who has a PWM IP for the NIOS II which can be added by the SOPC Builder?

0 Kudos
Altera_Forum
Honored Contributor II
490 Views

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, 

niosIIuser
0 Kudos
Altera_Forum
Honored Contributor II
490 Views

Hi, 

 

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
0 Kudos
Reply