Iinitially, I was calculating DNL and INL as:
1. Applying ramp input and had taken 2^N samples for N-bit.
2. Giving the sampled input to the ADC and obtained Digital output corresponding to each input.
3. Calculating the equivalent analog output for each digital output of ADC using ideal DAC.
4. DNL was calculated as:
DNL(i)= ((Vout(i+1)-Vout(i))/mean(Vout)) -1 and INL as cumulative summation of DNL.
Is this method is correct? Because I am getting some peaks in the DNL curve of around 250LSB(image is attached).
I recently came across DNL and INL calculation using the histogram. Can anybody explain me, how this works?
Please help.