Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #539973 > unrolled thread

testing an ADC

Started byJohn Larkin <jjlarkin@highlandtechnology.com>
First post2019-04-18 07:04 -0700
Last post2019-04-18 15:26 -0700
Articles 9 — 6 participants

Back to article view | Back to sci.electronics.design


Contents

  testing an ADC John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-18 07:04 -0700
    Re: testing an ADC Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-04-18 10:19 -0400
      Re: testing an ADC DecadentLinuxUserNumeroUno@decadence.org - 2019-04-19 00:14 +0000
    Re: testing an ADC Winfield Hill <hill@rowland.harvard.edu> - 2019-04-18 07:23 -0700
      Re: testing an ADC John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-18 07:49 -0700
        Re: testing an ADC Winfield Hill <hill@rowland.harvard.edu> - 2019-04-18 08:02 -0700
          Re: testing an ADC John Larkin <jjlarkin@highland_snip_technology.com> - 2019-04-18 09:21 -0700
    Re: testing an ADC whit3rd <whit3rd@gmail.com> - 2019-04-18 11:28 -0700
      Re: testing an ADC John Larkin <jjlarkin@highland_snip_technology.com> - 2019-04-18 15:26 -0700

#539973 — testing an ADC

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2019-04-18 07:04 -0700
Subjecttesting an ADC
Message-ID<2svgbe96luhodarj5atsb9gbtkddbes012@4ax.com>

We have a product with a 12-bit ADC that's being clocked around 60
MHz, with the data poured into an FPGA. We want to do a good
production test.

We can route a big triangle wave into the adc and take a lot of
samples. Our thinking is that each bit should be high about 50% of the
time, and we can set limits on that. This will catch bits stuck high
or low, bits shorted to other bits, opens, logic races, and general
misbehavior.

We already have a "logic analyzer" in the FPGA. It snapshots 1024 ADC
samples and some other states in a big RAM. We could read that out
(many times) and analyze each bit in our Python test program, but that
would be slow. So the kids added 13 new 32-bit registers: total sample
count, and one register per ADC bit to total up how many 1's that bit
had. Now we can get 60 million coin tosses per bit line, in one
second, and read that out over ethernet in a millisecond.

Turns out that 60 million coin tosses has some pretty powerful
statistical behavior. The probability of heads being outside 49..51%
is effectively zero.




-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [next] | [standalone]


#539974

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2019-04-18 10:19 -0400
Message-ID<o7ydnVnuau74GiXBnZ2dnUU7-TednZ2d@supernews.com>
In reply to#539973
On 4/18/19 10:04 AM, John Larkin wrote:
> 
> 
> We have a product with a 12-bit ADC that's being clocked around 60
> MHz, with the data poured into an FPGA. We want to do a good
> production test.
> 
> We can route a big triangle wave into the adc and take a lot of
> samples. Our thinking is that each bit should be high about 50% of the
> time, and we can set limits on that. This will catch bits stuck high
> or low, bits shorted to other bits, opens, logic races, and general
> misbehavior.
> 
> We already have a "logic analyzer" in the FPGA. It snapshots 1024 ADC
> samples and some other states in a big RAM. We could read that out
> (many times) and analyze each bit in our Python test program, but that
> would be slow. So the kids added 13 new 32-bit registers: total sample
> count, and one register per ADC bit to total up how many 1's that bit
> had. Now we can get 60 million coin tosses per bit line, in one
> second, and read that out over ethernet in a millisecond.
> 
> Turns out that 60 million coin tosses has some pretty powerful
> statistical behavior. The probability of heads being outside 49..51%
> is effectively zero.

Probably won't catch out-of-spec DNL though.  You'd want to look 
carefully at the major carry etc.

Cheers

Phil Hobbs


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

[toc] | [prev] | [next] | [standalone]


#540030

FromDecadentLinuxUserNumeroUno@decadence.org
Date2019-04-19 00:14 +0000
Message-ID<q9b3t6$dhb$1@gioia.aioe.org>
In reply to#539974
Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote in 
news:o7ydnVnuau74GiXBnZ2dnUU7-TednZ2d@supernews.com:

> Probably won't catch out-of-spec DNL though.  You'd want to look 
> carefully at the major carry etc.
> 
> Cheers
> 
> Phil Hobbs

  Something seems very wrong with his statement.  It says more about 
his code than it does about stats.

  There needs to be a true rng somewhere in this.

  Bad code can 'ring' good or bad exactly 50% of the time or very 
close to it.

  A cool test would be to arrange for 60 million folks around the 
world to sign up to perform a single coin toss at a specific moment 
in time, and then record the results, and have a website database 
set up to tally up the result reports.  One could even make a 
distribution graphic of the globe showing it as a perfectly 
homogenized aggregate or have patches.

  I say perfect aggregate, but not exactly a 50 50 result 
distribution.

[toc] | [prev] | [next] | [standalone]


#539975

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-04-18 07:23 -0700
Message-ID<q9a19901cc7@drn.newsguy.com>
In reply to#539973
John Larkin wrote...
>
> Turns out that 60 million coin tosses has some pretty
> powerful statistical behavior. The probability of heads
> being outside 49..51% is effectively zero.

 You want to test the ADC better than the manufacturer?


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#539977

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2019-04-18 07:49 -0700
Message-ID<j33hbe5capd54hcb6up3hnts3092emccdo@4ax.com>
In reply to#539975
On 18 Apr 2019 07:23:37 -0700, Winfield Hill
<hill@rowland.harvard.edu> wrote:

>John Larkin wrote...
>>
>> Turns out that 60 million coin tosses has some pretty
>> powerful statistical behavior. The probability of heads
>> being outside 49..51% is effectively zero.
>
> You want to test the ADC better than the manufacturer?

Unfortunately the beautiful stats will be wrecked by the actual ADC.
It will be interesting to see what a few ADCs really do. 

We mostly want to catch possible opens and shorts on production
boards, but we'd spot the rare bad ADC too. 32 bits and 60 million
samples are gross overkill, but it's free.

We will also analyze the saved 12-bit ADC codes to check gain and
offset.

We try to have production test catch any possible assembly error, not
just functionality and specs.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#539980

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-04-18 08:02 -0700
Message-ID<q9a3ho01g1u@drn.newsguy.com>
In reply to#539977
John Larkin wrote...
>

 OK, John, you gotta tell us the part number.


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#539987

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2019-04-18 09:21 -0700
Message-ID<qj8hbet3en977k64npdds37sceldu8lpfn@4ax.com>
In reply to#539980
On 18 Apr 2019 08:02:16 -0700, Winfield Hill
<hill@rowland.harvard.edu> wrote:

>John Larkin wrote...
>>
>
> OK, John, you gotta tell us the part number.

Do I have to?

We're going to try this soon on a board with a 10-bit part, ADC10080,
at 60 MHz. The more serious application will use a 12-bit ADC at 40
MHz. We haven't picked that ADC yet. The customer insists on running
our proposed BOM through their two expensive and mostly useless EOL
research services, and we can't finalize the design until they do
that.

The FPGA on the existing board is a 7020 ZYNQ.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#540005

Fromwhit3rd <whit3rd@gmail.com>
Date2019-04-18 11:28 -0700
Message-ID<748eca28-3b89-4a0f-8f32-2f5a4077cb4a@googlegroups.com>
In reply to#539973
On Thursday, April 18, 2019 at 7:05:02 AM UTC-7, John Larkin wrote:
> We have a product with a 12-bit ADC that's being clocked around 60
> MHz, with the data poured into an FPGA. We want to do a good
> production test.
> 

Test, but for what?   Will you calibrate the reference voltage?   Do
a few cycles overclocked to a 20% higher frequency?  Clock the
gizmo asynchronously to the other logic and examine for
crosstalk?

Slow triangle-wave input is OK for missing-codes errors, but
those only happen in some kinds of converters.   Can you close
the loop (do D-to-A) and production-test by X-Y of input and
output on an o-scope?   Square-wave input and test for slewing?

[toc] | [prev] | [next] | [standalone]


#540026

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2019-04-18 15:26 -0700
Message-ID<99uhbe16liqf9h2go152755790jb8mugei@4ax.com>
In reply to#540005
On Thu, 18 Apr 2019 11:28:50 -0700 (PDT), whit3rd <whit3rd@gmail.com>
wrote:

>On Thursday, April 18, 2019 at 7:05:02 AM UTC-7, John Larkin wrote:
>> We have a product with a 12-bit ADC that's being clocked around 60
>> MHz, with the data poured into an FPGA. We want to do a good
>> production test.
>> 
>
>Test, but for what?  

Bits stuck high, stuck low, shorted to other bits, open, generally not
behaving. This is for production testing.




-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web