The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 23rd, 2024, 3:14am
Pages: 1
Send Topic Print
Measure the DNL/INL by slow frequency sin wave (Read 10077 times)
Monkeybad
Junior Member
**
Offline



Posts: 31

Measure the DNL/INL by slow frequency sin wave
Nov 03rd, 2008, 12:36am
 
Hello! everyone,
I find some data about measuring the DNL/INL of an ADC by using slow frequency sin wave. Actually this data is from "EE315: VLSI Data Conversion Circuits" in STANFORD UNIVERSITY, Department of Electrical Engineering. Here is the MATLAB code.

function [dnl,inl] = dnl_inl_sin(y);
%DNL_INL_SIN
% dnl and inl ADC output
% input y contains the ADC output
% vector obtained from quantizing a
% sinusoid
% Boris Murmann, Aug 2002
% Bernhard Boser, Sept 2002
% histogram boundaries
minbin=min(y);
maxbin=max(y);
% histogram
h = hist(y, minbin:maxbin);
% cumulative histogram
ch = cumsum(h);
% transition levels
T = -cos(pi*ch/sum(h));
% linearized histogram
hlin = T(2:end) - T(1:end-1);
% truncate at least first and last
% bin, more if input did not clip ADC
trunc=2;
hlin_trunc = hlin(1+trunc:end-trunc);
% calculate lsb size and dnl
lsb= sum(hlin_trunc) / (length(hlin_trunc));
dnl= [0 hlin_trunc/lsb-1];
misscodes = length(find(dnl<-0.9));
% calculate inl
inl= cumsum(dnl);

Anyone can explain how this method work? Especially what the red line means. Thanks!
Back to top
 
 
View Profile   IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: Measure the DNL/INL by slow frequency sin wave
Reply #1 - Nov 3rd, 2008, 2:41pm
 
Joey Doernberg explained it here:
("Full-speed testing of A/D converters" - Doernberg, JSSC - DEC 1984)
you can find it at

http://ieeexplore.ieee.org/search/srchabstract.jsp?arnumber=1052232&isnumber=225...
Back to top
 
 

jbdavid
Mixed Signal Design Verification
View Profile WWW   IP Logged
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Re: Measure the DNL/INL by slow frequency sin wave
Reply #2 - Nov 4th, 2008, 12:02am
 
Hi,

It is not necessary to apply a SLOW sine wave. A fast sine wave is also feasible only if it is pure enough.


Yawei
Back to top
 
 
View Profile   IP Logged
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 677
Munich, Germany
Re: Measure the DNL/INL by slow frequency sin wave
Reply #3 - Nov 4th, 2008, 1:24am
 
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.