Talk:Analog-to-digital converter: Difference between revisions
GyroMagician (talk | contribs) →Application to music recording: new section |
|||
Line 51: | Line 51: | ||
== Resolution and number of levels == |
== Resolution and number of levels == |
||
That formula is wrong...Q = (span)/(2^number_of_levels) ... |
|||
Josecampos did some [http://en.wikipedia.org/w/index.php?title=Analog-to-digital_converter&oldid=126995770 changes] regarding the number of levels of the digitalization. I agreed only with some of his modifications... There are 256 levels in a 8 bit digitalization, from 0 to 255. But the difference from level to level is actually (V+-V-)/(2^8 - 1). So I fixed the article making a distinction between the number of levels and the number of "intervals"... Comments? -- [[User:Nwerneck|NIC1138]] 18:44, 1 May 2007 (UTC) |
Josecampos did some [http://en.wikipedia.org/w/index.php?title=Analog-to-digital_converter&oldid=126995770 changes] regarding the number of levels of the digitalization. I agreed only with some of his modifications... There are 256 levels in a 8 bit digitalization, from 0 to 255. But the difference from level to level is actually (V+-V-)/(2^8 - 1). So I fixed the article making a distinction between the number of levels and the number of "intervals"... Comments? -- [[User:Nwerneck|NIC1138]] 18:44, 1 May 2007 (UTC) |
Revision as of 10:34, 3 May 2010
Professional sound production Start‑class | ||||||||||
|
exact reconstruction ?
This article says that a sampled bandlimited signal can be "EXACTLY" reconstructed, but I think there are some who would dispute this. There is some talk going on at Talk:aliasing that suggests that the Nyquist sampling theorem is only an approximation. The maths is beyond me, so I'm hoping that someone will explain the problem in words. I'm guessing that it has to do with the twin impossibilities of building a perfect brick-wall filter and taking an instantaneous sample. -- Heron 09:16, 2 Apr 2004 (UTC)
- A bandlimited signal CAN be EXACTLY reconstructed. The problem is that it is impossible to have a truly bandlimited signal. This is because a signal that is truly bandlimited (i.e. has exactly zero power above a given frequency) cannot be simultaneous limited in time, and is therefore non-causal. Think of this as Heisenburg's Uncertainty Principle for signals. The amount of aliasing can always be controlled, however, to be below the SNR of the signal in question. So, calling Nyquist an approximation is silly, and not useful. It is more accurate to say that the Nyquist's criterion can only be approximately satisfied, rather than the theory itself is an approximation.
- Think about band-limited periodic signals. They are composed by a group of impulses in the frequency domain, so it's easy to see that they are band-limited. If you multiply this periodic (therefore unlimited) signal by a step function, we convolve the impulses in the frequency domain by an unlimited 1/s function, and the signal is not band-limited anymore.
- It's good to think about periodic signals, because the values of the impulses in the time domain will be different depending on the delay between the sampling and the signal. Even so, the reconstruction will bring the same wave shape, delayed.
- You can even have semi-periodic samplings, where the sampling frequency is not a rational multiple of the signal frequency. The reconstruction will bring the original signal, but you need an unlimited number of time samples, what implies in infinite frequency resolution.
- Every band-limited function is unlimited in time. -- nwerneck 22:10, 1 Dec 2005 (UTC)
I've just come to this article, and I'm confused about the apparent inconsistency between exact signal reconstruction and the problems of aliasing. I don't understand the discussion above about what a bandlimited signal is. It would be nice if this could be made a little more layman friendly. Tim Richardson (talk) 23:43, 2 November 2009 (UTC)
Actually, following around a few links and arriving at the bandlimited page sorted me out. bandlimited signals are a subset of waveforms that don't have higher frequency components when Fourier transformed (eg sinewaves). Tim Richardson (talk) 23:53, 2 November 2009 (UTC)
Regarding musical application
This part should talk about the difference between sample rate and resolution regarding music recording and playback. Sample rate will increase the bandwith of the recording and nowadays 44kHz is too low. Theorist might call Nyquist theorem to the discussion, saying the normal person can't hear above 15-17kHz and that 44kHz is enough. The problem is that sound waves are produced mechanically by a speaker and if you simply dont send the hi-frequencies, it will vibrate differently, changing the sound. BTW, DVD is 96kHz. BTW, there is a musical producer that has detected a 95kHz frequency. The guys knew something was bad with his equipment, called in the tech guys, they didnt believe he could hear that high (experts usually hear 20kHz-22kHz) and made a series of test to see if the guy was really feeling it, and HE WAS!
Regarding resolution, 16bits are insufficient for today's standarts. Not only regarding the low SNR, but also regarding the depth, the dynamics of the music. Simply put, between 16bits and 20 or 24 bits, YOU WILL NOTICE the difference, even if you are not an expert. Once again, DVD quality is 24bits.
---
My two cents: we should isolate this discussion in another article, about psychoacoustics. This article would list scientific references about sound perception. I do know one or two articles about high and low frequency perception. Signal quantization is something, hearing quantized signals is another thing.
Now, I don't know what you mean when you say that DVD has 24bits and 96kHz. DVDs are MPEG2 streams, and not raw signals like CDs!!...
AFAIK, sampling rates and bit depths larger than 44100/16 are only required when the signals are going to be digitally processed. But this means "in consumer applications"... The real limits of human perception is a current area of research, an open question. -- nwerneck, 01 Dec 2005 20:25:49 -0200
Stubness
I agree this article needs some rewriting and re-engineering, but why was it marked as a stub? -- NIC1138 21:23, 17 December 2005 (UTC)
Resolution
Updated wikilink from Resolution to Resolution (logic) this might need to point to Resolution (music) or even another page. feel free to change it if you know better. --STHayden 22:35, 6 August 2006 (UTC)
Merge with Digital-to-analog converter
I've posted a merge tag on the article. It would make sense to have the opposite technologies in one article. If you agree or disagree, please post. --Davidkazuhiro 13:03, 9 February 2007 (UTC) I Take that back. The articles are large and well established as it is. --Davidkazuhiro 13:05, 9 February 2007 (UTC)
Resolution and number of levels
That formula is wrong...Q = (span)/(2^number_of_levels) ...
Josecampos did some changes regarding the number of levels of the digitalization. I agreed only with some of his modifications... There are 256 levels in a 8 bit digitalization, from 0 to 255. But the difference from level to level is actually (V+-V-)/(2^8 - 1). So I fixed the article making a distinction between the number of levels and the number of "intervals"... Comments? -- NIC1138 18:44, 1 May 2007 (UTC)
12.47.224.7 15:57, 26 September 2007 (UTC) Jim Bach 12.47.224.7 15:57, 26 September 2007 (UTC) From: James.C.Bach@Delphi.com Date: 26-SEP-2007
The difference from level to level is (V+ - V-) / 2^N . . . . NOT (V+ - V-) / 2^n -1 . . . for a 3-bit ADC that is (V+ - V-)/8 not V+ - V-)/7!
In a 3-bit ADC there might only be 7 transitions from code-to-code . . . but the input voltage range (i.e. V- to V+) has 8 regions in it, representing codes "0" thru "7" ("000" to "111" for bit-bangers :-) ). These regions can be equal-width (at 1/8th of Vsupply) like the MicroChip PIC controllers, or they can have a 1/2-width "0" code and a 1.5-width "7" code like just about everyone else's ADC on the planet. Look at the diagrams (and in some cases, equations) provided in the URLs cited below.
Think about it this way . . . let's say the width of your hand represents the voltage range your A/D covers (i.e. HandWidth = V+ - V-) . . . and each finger represents an output code ("0" thru "4", you pick which hand and whether the thumb is LSB or MSB :-) ) . . . you have (presumably) 5 fingers . . . how many cracks (i.e. voltage transitions) do you have between the fingers? 4, right? So, would you estimate that the width of each of your fingers is HandWidth/(N-1) (i.e. HandWidth/4) OR HandWidth/N (i.e. HandWidth/5)? Obviously it is HandWidth/5, which is HandWidth/N. And, if you used your left hand your pinky reasonably approximates the "0" code of a real-world ADC (i.e. 1/2-width) and your thumb reasonably approximates the "4" ("max") code of a real-world ADC (i.e. 1.5-width).
Checkout:
http://www.freescale.com/files/microcontrollers/doc/app_note/AN2438.pdf?fsrch=1
http://www.embedded.com/columns/technicalinsights/60403334?_requestid=213222
http://www.maxim-ic.com/appnotes.cfm/appnote_number/1080/
http://zone.ni.com/devzone/cda/tut/p/id/3016
12.47.224.7 15:57, 26 September 2007 (UTC) Jim Bach 12.47.224.7 15:57, 26 September 2007 (UTC)
Analog != Audio
This article is linked to from some general articles on electronics (I got here via the oscilloscope article), yet some authors appeared to have assumed that it was predominantly about audio applications of A to D conversion. While the audio information seems good, its organization is confusing. In several spots the topic shifts without warning from general discussion of an analog signal to very audio-specific applications. General A-to-D material should be edited to keep the discussion general, and audio-specific information should be moved to its own section or article. Chriscorbell 23:26, 11 May 2007 (UTC)
Ramp converter with microcontroller
Adding this here, since it's a bit too long to insert into the body of the article. Given a microcontroller (eg PIC) which does not have any analog IO ability, and something we need to measure (eg the resistance of a potentiometer), we can get a fairly decent measurement (perhaps 5%) by using an RC circuit. The PIC's I/O pin is connected to the junction of R/C; C is grounded; R is taken to +V. Then, the I/O pin is initially set up as an output, at logic 0. The I/O pin is then converted back to an input, which (being CMOS) is fairly high-impedance, and probably switches at Vsupply/2. We poll this pin until it goes high. Within its limitations, this technique works extremely well.
- That kind of converter is now briefly mentioned in this article as a "ramp-compare ADC". Would wikibooks:Analog and Digital Conversion be a better place to put detailed information on this technique? --76.209.28.72 18:23, 6 July 2007 (UTC)
Merge from Analog-to-digital conversion with SAR
Would it be worth merging the content at Analog-to-digital conversion with SAR here? Jɪmp 17:22, 8 January 2008 (UTC)
inappropriate example
"For example, to sample audio at 44.1 kHz with 32 bit resolution, a clock frequency of over 1.4 MHz would be required". Implying 32 bit resolution audio in an example that seems to be simple math is misleading and inappropriate. 32 bit audio has never been a goal of any converter manufacturer, it's plain silly. The example uses the number 32 in order to inflate the required clock frequency. Suggest removing or rewriting this paragraph. —Preceding unsigned comment added by 65.115.107.210 (talk) 22:44, 19 December 2008 (UTC)
Oversampling
The section states
a 20 bit ADC can be made to act as a 24 bit ADC with 256x oversampling
, but I believe that it should either read
a 20 bit ADC can be made to act as a 24 bit ADC with 16x oversampling
or
a 16 bit ADC can be made to act as a 24 bit ADC with 256x oversampling
. The sum of 256 (28) 20 bit samples (i.e. 256x oversampling) would require a 28 bit number to represent all possible values. —Preceding unsigned comment added by 217.40.148.115 (talk) 16:23, 11 March 2009 (UTC)
- No, the effective SNR increase is 10*log10(256) = 24dB, which is equivalent to 4*6dB, i.e. a 4-bit increase in resolution. Oli Filth(talk|contribs) 00:22, 12 March 2009 (UTC)
ADC with intermediate FM stage
Many applications require converting some analog quantity at some remote location to a nice digital display at a more convenient, nearby location. I've seen several people do this with several parts:
- an analog transducer-to-frequency converter at the remote location -- perhaps using a linear voltage-controlled oscillator, or perhaps measuring temperature using an oscillator with a known frequency drift;
- a long wire or RF signal to carry that varying-frequency signal to the nearby location; and
- a frequency counter at the nearby location to convert the "instantaneous" frequency to a digital value.
The system as a whole is performing analog-to-digital conversion, although it is difficult to say whether "the ADC" is located at the remote site or at the local site.
I think this kind of ADC structure should be mentioned in the Analog-to-digital converter#ADC structures section of this article.
Is there a standard name for this type of ADC structure? "voltage-to-frequency ADC"? "frequency modulation ADC"? --68.0.124.33 (talk) 06:51, 18 August 2009 (UTC)
- This sounds like it's just a transmission method. From the way you describe it, there's no digits involved until the final stage. Oli Filth(talk|contribs) 07:32, 18 August 2009 (UTC)
- It could be viewed as a form of pulse-density modulation though, since the receiving end is just counting pulses. SpinningSpark 17:26, 20 August 2009 (UTC)
- Yes, frequency modulation and pulse-frequency modulation are used for transmission in this kind of ADC, which is very closely related to pulse-density modulation.
- So what is the name of the whole ADC structure?
- Yes, there are no digits involved until the final stage -- much like several of the ADCs already described in the article, which convert the analog signal into a pulse-width modulation signal in their early stages. But those ADCs are not named "PWM ADCs", they have other names.
- This system has a continuous analog signal at one end. This system has digital digits displayed at the other end. That meets the definition in this article, "a device which converts continuous signals to discrete digital numbers."
- I'm going to stick it in the article now; I have plenty of references. But alas, none of my references give it a name more specific than "ADC" or less specific than a list of the parts ("a V/F converter" and "a frequency counter").
- The Bob Pease reference says that voltage-to-frequency converters are "a kind of ADC".
- Is he trying to point out that the V/F converter -- by itself -- converts an analog voltage level to a (relatively) digital signal? In which case, the frequency counter is technically not part of the ADC, and this article should list the V/F converter -- by itself -- as a kind of ADC.
- Or is he naming the entire ADC structure (the V/F plus the frequency counter) as a "voltage-to-frequency converter"?
- Is there a standard name for this particular type of ADC structure? --68.0.124.33 (talk) 08:53, 30 August 2009 (UTC)
- Unless you can reference that this is an ADC it shouldn't be in the article. FWIW I agree it is, but it still shouldn't be added: 'verifiability over truth'.- (User) Wolfkeeper (Talk) 13:09, 30 August 2009 (UTC)
- Agree with that sentiment.
- To me, it sounds like a tightly-coupled combination of an ADC and a comms system; we need to be careful to distinguish the two (otherwise, the combination of my landline telephone, the copper cable and exchange forms an ADC!). Oli Filth(talk|contribs) 17:48, 30 August 2009 (UTC)
- I agree that this article needs to be clear that the "long wire or opto-isolator or RF signal" is not an essential part of this kind of ADC structure. Please improve the definition in the article if it does not sufficiently distinguish them.
- The article has verifiable references (Robert Pease, Walter Kester, AN795, etc.) that says this is "a kind of ADC". Are the references in the article enough to meet our WP:VERIFY policy? --68.0.124.33 (talk) 00:58, 2 September 2009 (UTC)
Does 16-bit audio exist?
What is the minimum voltage that an ordinary, consumer-grade 16-bit ADC can sample?
I have looked at the Wikipedia article "Line Level", and consumer grade audio peaks at 0.447 volts. Since 16 bits equals 65536, dividing into 0.447 you get 0.0000068 volts. That is 0.0068 millivolts, or 6.8 microvolts (edit: was nanovolts).
Is the average consumer card capable of measuring microvolts? Is any card capable of this? Even if you use the "pro audio" specification of 1.737V, you still get 0.0000265 volts, or 0.0265 millivolts, or 26.5 microvolts.
I have come across the phrase ENOB, or Effective Number of Bits (which has its own article). What is the ENOB of the average 16-bit card? What VOLTAGE range is it designed to measure? -mjs 173.68.190.122 (talk) 04:41, 4 October 2009 (UTC)
- Your initial assumptions are mistaken. Nominal consumer level is 0.316 volts but its peak levels can go higher, depending on the actual piece of gear. Certainly, 1.58 volts is possible for quite a lot of consumer or semi-pro gear if pushed to its limits. The CD Redbook standard is to 2.0 volts rms at full scale, but this isn't always met by manufacturers. Some common ADC chips can take 4.0 volts peak to peak. Most recording gear will have pads or gain stages with volume knobs between the inputs and the ADC chip, so you can't always tell what voltage it is getting at full scale. Yes, all 16 bits are being used by modern decent quality gear. Some early CD gear had a 12- or 14-bit bottleneck, but those days are long past. Binksternet (talk) 14:59, 4 October 2009 (UTC)
- I mentioned that pro audio is 1.7 volts and you went on to say that some consumer gear handles 2.0 volts, not a huge difference. The real question is can it detect 2.0 volts divided by 65536, or 30.5 microvolts? I'm more of a digital person, not an EE person, but 30 microvolts seems like amazing accuracy for any circuitry. Got any docs that show that an $80 Creative Labs or $150 M-Audio card can sample this? -mjs 72.89.228.177 (talk) 07:48, 8 November 2009 (UTC)
- Voltage levels down that low will always be dancing around relative to noise levels, and it doesn't matter whether you're looking at analog gear or digital gear. If you put a 100-microvolt signal into an analog zero gain op-amp or a digital ADC, both of them may output a signal which is more or less than 100 µv. Binksternet (talk) 16:53, 8 November 2009 (UTC)
- I mentioned that pro audio is 1.7 volts and you went on to say that some consumer gear handles 2.0 volts, not a huge difference. The real question is can it detect 2.0 volts divided by 65536, or 30.5 microvolts? I'm more of a digital person, not an EE person, but 30 microvolts seems like amazing accuracy for any circuitry. Got any docs that show that an $80 Creative Labs or $150 M-Audio card can sample this? -mjs 72.89.228.177 (talk) 07:48, 8 November 2009 (UTC)
Application to music recording
I've just applied what I think is the third revert - i.e. we have hit 3RR. To avoid warring, let's discuss this. The text I have (re)removed was:
- Some people[citation needed] in the business sometimes believe this an overkill or marketing hype, because with some kind of music you don't see the difference (typically electronic music made from 48Khz numerical synths won't make any difference when mastered at 192khz). They think that[citation needed] the analog waveform does not have enough information in it to necessitate such high sampling rates. However, the continuation of the LP as a audiofile format on one side, and the new market of the SACD on the other side, tends to show that it more the mythical "CD quality" which is a marketing hype since the eighties.
There is plenty to say about music quality, what a human can/cannot distinguish, and whether CD quality is enough. It would be good to include something sensible on the subject, with sources. An unsourced ramble about 'some people think...' isn't suitable for Wikipedia - we can do better than that. By all means, please add something concrete - it would improve the article - but I will invoke Nyquist if required. 192kHz needs some justification. GyroMagician (talk) 21:46, 9 March 2010 (UTC)