inl dnl histogram method slow ramp
Hi,
I've been dealing with the same problem in MATLAB as well, so I thought I'd put in my 2 cents.
First off, the sine wave in comparison with the clock signal. If you're referring to the FFT analysis, it is important that the sine frequency is not a integer multitude of the clock frequency. Also, since the FFT analysis is actually a DFT, dealing with sampled waves, it is important the the sampling is first of all uniform and also not an integer multitude of the sine frequency. Long story, why? If your sampling or clock is an integer multitude of the sine frequency, the sampling points will always hit the sine at the same amplitude. If it is not, the sampling points will always be a bit offset and sample the sine at different point, creating a much denser sampling pattern on the sine (seen over a number of sine periods).
A more practical approach:
Choose sine frequency (say roughly 1M)
Sine_period = 1us
FFT size? Let's say 2^16 = 65536 points
Distribute points along 100 periods or so --> sample_time = 100us/2^16 = 1.525878906250000e-009 corresponding to 655.36MHz (not integer multitude)
Now, the clock can be chosen an integer multitude of the sampe frequency (how cares if you're sampling the clock at the same points within a period) so say you want a 10M clock --> choose 655.36MHz/5 = 13.1072MHz or t_clock = 1/13.1072M.
Simulate 100us, run FFT.
This is a very ellaborate way to do an FFT, but it will provide you with a clean FFT, even without windowing.
Now, on the DNL/INL measurements. Slow is the key here, be it either a ramp or sine wave, DNL/INL measurements are quasi DC. For both measurements you need the input signal. The article you read probably states definitions for DNL and INL, although I've heard different people using different methods to measure it.
I am unclear though on what the FFT should have to do with the DNL and INL measurements.