Forum Discussion
Altera_Forum
Honored Contributor
13 years agoTo control LEDs with DE0_Nano
Hi, I wants to control leds on DE0_Nano board using Nios II Eclipse, for this anybody can provide code part?Because im very new to this , sory for lack of knowledge. Thanks, ...
Altera_Forum
Honored Contributor
13 years agoCreate a PIO in your SOPC Builder / QSys project, and in the top level file in Quartus, connect this PIO port to the FPGA pins connected to the leds.
Then in your Nios II project you will have some macros to control the PIO port, defined in altera_avalon_pio_regs.h.