Forum Discussion
Altera_Forum
Honored Contributor
8 years agoDE10-NANO - How to use the ADC with FPGA and NIOSII
Hello, I just started learning about FPGA, NIOSII and QuartusII. I have the DE10-NANO Dev. Board and I want to learn how to use the ADC and FPGA (NIOS II) to read some analog data. I've pr...
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Check the system.h file in the BSP project for info on the macros in this code. Open the .qsys file for the design to see the hardware implementation and the parameter settings for the ADC IP. --- Quote End --- Thank you for your quick reply. I did all of that but I couldn't find any useful info, I only get the base and end address in the QSYS picture below. my qsys image (http://i66.tinypic.com/316b0gj.png) adc parameters in qsys image (http://i63.tinypic.com/2052jnn.png) Here is the relevant code from the system.h file:
/*
* adc_ltc2308 configuration
*
*/
# define ADC_LTC2308_BASE 0x81010
# define ADC_LTC2308_IRQ -1
# define ADC_LTC2308_IRQ_INTERRUPT_CONTROLLER_ID -1
# define ADC_LTC2308_NAME "/dev/adc_ltc2308"
# define ADC_LTC2308_SPAN 8
# define ADC_LTC2308_TYPE "adc_ltc2308"
# define ALT_MODULE_CLASS_adc_ltc2308 adc_ltc2308 I must be missing something.