Hi,
i don`t think with 20 samples per code you get meaningfull DNL or INL information. It is too low of timing resolution.
Is it usefull for a 5 bit ADC to calculate DNL and INL?
For sure it is possible... But I don´t think you will do signal processing / analog signal analyzing with this low resolution ADC.
Do you expect a larger error than +/- 0.6 LSB?
If you really want to do INL/DNL measurement, then keep an eye on the analog input value at the "hold" edge of the S/H circuit.
Klaus