Forum Discussion
Altera_Forum
Honored Contributor
11 years agoThe pin-assignment for the ADC can be found on page 22 in the user manual (http://www.altera.com/literature/ug/de0_nano_user_manual_v1.9.pdf).
However, the ADC can be put into operation using altera's manual (ftp://ftp.altera.com/up/pub/altera_material/12.1/tutorials/de0-nano/using_de0-nano_adc.pdf). It didn't work for me on the first attempt, here is how it can be done using Nios II / Quartus II 14.1. Install the university program (http://www.altera.com/education/univ/software/upds/unv-upds.html) first! - Start Quartus - New Project - Choose a new folder named adc_example as the working directory and name the project my_adc - Empty project... Device family is cyclone iv e and the device is ep4ce22f17c6 - select Tools > Qsys, save the system as: de0_nano_sopc.qsys - rename the clock clk_50 - Add a Nios II (Classic) Processor and select Nios II/e, use F2 to rename the Processor cpu - Add 40960 Bytes of On-Chip Memory (RAM or ROM) and rename it to onchip_memory2 - Add JTAG-UART and rename it to jtag_uart - Add an output port (PIO) and name it pio_led - Add a System ID peripheral and name it sysid - Add the ADC which is found under University program / Generic IO / de0-nano adc controller - Change the number of channels used to 2 - Rename the adc adc - Export the connections for the LEDs and the ADC to led_pio and adc - Wire the components like in the attached screenshot. - Edit the cpu: Assign Reset and Exception vectors to onchip_memory2 - Click System > Assign Base Adresses, Refresh the System using F5, Save and generate