Forum Discussion
Alina310199
New Contributor
4 years agoMAX 10 ADC
Hello, guys! I really need your help. I have a fpga MAX10 10M50DAF484C6G Development Kit and I want to write a code in verilog or vhdl so that when I move the potentiometer to light different LEDs. F...
sstrell
Super Contributor
4 years agoYou could make use of the threshold feature for each ADC channel to provide an indication on an additional IP interface of when a particular voltage is hit.
As for measuring the exact voltage, the easiest formula is ((digital value x (full scale voltage/4096)) - (full scale voltage/4096)). You need to subtract 1 step (LSB) because full scale (0xfff) is actually 1 step lower, which is common with ADCs. So for a 2.5 V range (without using the extra prescaler) each step is 610.35 uV.