I need help on how to convert an analog output voltage of a potentiometer to digital then display the digital value, per bit, to LED red (LEDR = DigitalVal[11:2]). I know how to code and how to display to LEDR but what I want to know is how to convert the Analog to Digital. I need the digital value. Could you please guide me on how to setup?
There is already a question on how to setup the DE10-lite for ADC but it didn't help.
You will need an IP which converts analog input to digital for internal logic usage.
FOr MAX 10, i would suggest you to use MAX 10 ANalog to digital converter.
Please refer the user guide above for the usage of this IP.
Thank you for the reply. To be honest, I have difficulty understanding all the information on your provided link. Is there any sample tutorial that shows a step-by-step procedure on how to setup/program the FPGA DE10-lite for ADC application like rotating a potentiometer and outputs its equivalent voltage on 7-segment? Can't find any. Just wanted to used it to my class, but it lacks resources.
We do have sample design in our design store. Perhaps you can take a look. It might help you.
Design Store example with ADC: