Forum Discussion
Altera_Forum
Honored Contributor
15 years agoNIOS II C code tips?
hey everybody I'm trying to make a PWM using NIOSII and SOPC and i have reached the point where i need to wright the C code for my model but i can't find any documentation describing how to do it...
Altera_Forum
Honored Contributor
15 years agoHi, look at "hello world" example, it is a good starting point.
is your pwm a hardware module ? or are you making a c software that behaves like a pwm ? If your PWM is a hardware module, you have to interface it to Avalon bus in your SOPC by maybe a PIO (Parallel Input Output) (this is quite simple).