• Aucun résultat trouvé

Analog to digital converters

N/A
N/A
Protected

Academic year: 2022

Partager "Analog to digital converters"

Copied!
33
0
0

Texte intégral

(1)

converters J.-M Friedt

Analog to digital converters

J.-M Friedt

FEMTO-ST/time & frequency department jmfriedt@femto-st.fr

slides and references atjmfriedt.free.fr

March 13, 2021

(2)

converters

J.-M Friedt

Basics

ADC: discrete time (aliasing) and discrete levels (quantization)1 V =Vref · bits

2m−1 ⇔bits = V

Vref ·(2m−1)

PM/AM 1/Vr

v(t)

n(t) x(t) r(t) q(t)

2

m

• Characteristics: sampling rate and resolution

• 8 bits=48 dB dynamic range on input power (20×log10(256))

• 10 bits=60 dB dynamic range on input power (Atmega32U4)

• 12 bits=72 dB dynamic range on input power

• 16 bits=96 dB dynamic range on input power

• Vref noise directly impactsV measurement: ∆VVref

ref = ∆VV

1C. Cardenas-Olaya, E. Rubiola, J.-M. Friedt, M. Ortolano, S. Micalizio, & C.E.

Calosso,Simple method for ADC characterization under the frame of digital PM and AM noise measurement, Joint IFCS/EFTF (2015)

2 / 33

(3)

converters

J.-M Friedt

Technologies

• successive approximation (SAR): as many clock cycles as bits on the output (low cost, low power)

• Σ−∆: 1-bit converter (comparator) followed by low-pass filtering

(audiofrequency, very high resolution thanks to oversampling)

• flash: voltage ladder with comparator, for very fast (>100 MS/s) ADC

• pipelined ADC: mix between successive approximation and flash ADC (fast but introduces some latency, higher resolution

Atmega32U4 datasheet

(4)

converters

J.-M Friedt

Identifying the sampling rate from

continuous acquisition

Signal generated at 20 kHz

Unknown sampling rate, continuous output stream

-0.5 0 0.5 1

5 10 15 20

voltage (V)

sample number

What is the sampling rate ? resolution ?

4 / 33

(5)

converters

J.-M Friedt

Identifying the sampling rate from

continuous acquisition

Signal generated at 20 kHz

Unknown sampling rate, continuous output stream

-0.5 0 0.5 1

5 10 15 20

voltage (V)

sample number

-1 -0.5 0 0.5 1

voltage (V)

(6)

converters

J.-M Friedt

Noise aliasing

Options Title: Not titled yet Output Language: Python Generate Options: QT GUI

Variable Id: N1 Value: 8

Variable Id: N2 Value: 2 Variable

Id: samp_rate Value: 32k

Noise Source Noise Type: Gaussian Amplitude: 500m Seed: 0

Keep 1 in N Throttle

Sample Rate: 32k

Low Pass Filter Decimation: 8 Gain: 1 Sample Rate: 32k Cutoff Freq: 2k Transition Width: 15.625 Window: Hamming Beta: 6.76

QT GUI Frequency Sink FFT Size: 1.024k Center Frequency (Hz): 0 Bandwidth (Hz): 4k

QT GUI Time Sink Number of Points: 1.024k Sample Rate: 4k Autoscale: Yes

• low-pass filter before sampling to remove unwanted alias

• low-pass filter before sampling to reject out-of-band noise

• if only baseband sampling of broadband noise: energy conservation accumulates noise in baseband by aliasing

⇒raises noise floor

6 / 33

(7)

converters

J.-M Friedt

Sample & hold

• Sample & hold (Track & hold): input stage for keeping the sampled voltage constant

• Defines the bandwidth over which noise is integrated

• Possibly much higher than the sampling (conversion) rate Example of external Track&Hold control: Linear Technology LTC1407 Application to stroboscopic

measurements2: 100 MHz carrier, echo delays at 1.2 and 1.5µs, 4 GS/s equivalent sampling rate

(8)

converters

J.-M Friedt

Sample & hold

• Sample & hold (Track & hold): input stage for keeping the sampled voltage constant

• Defines the bandwidth over which noise is integrated

• Possibly much higher than the sampling (conversion) rate Example of external Track&Hold control: Linear Technology LTC1407 Application to stroboscopic

measurements2: 100 MHz carrier, echo delays at 1.2 and 1.5µs, 4 GS/s equivalent sampling rate

2F. Minary, D. Rabus, G. Martin, J.-M. Friedt,Note: a dual-chip stroboscopic pulsed RADAR for probing passive sensors, Rev. Sci. Instrum.87p.096104 (2016)

8 / 33

(9)

converters

J.-M Friedt

Quantization noise floor

(8 bits/5 bits)*6 dB/bit=18 dB Options

Title: Not titled yet Output Language: Python Generate Options: QT GUI

Variable Id: N1 Value: 256

Variable Id: N2 Value: 32 Variable

Id: samp_rate Value: 32k

Noise Source Noise Type: Gaussian Amplitude: 5u Seed: 0

Signal Source Sample Rate: 32k Waveform: Cosine Frequency: 100 Amplitude: 1 Offset: 0 Initial Phase (Radians): 0

Add

Float To Short Scale: 1

Float To Short Scale: 1

Float To Short Scale: 1 Multiply Const Constant: 256

Multiply Const Constant: 32

Multiply Const Constant: 31.25m Multiply Const Constant: 3.90625m

Multiply Const Constant: 125m Multiply Const

Constant: 8

Short To Float Scale: 1

Short To Float Scale: 1

Short To Float Scale: 1

Throttle Sample Rate: 32k

QT GUI Frequency Sink FFT Size: 128 Center Frequency (Hz): 0 Bandwidth (Hz): 32k

QT GUI Time Sink Number of Points: 1.024k Sample Rate: 32k Autoscale: Yes

• add noise over a full-scale range sine wave (“noise dithering”

over sine wave – noise only will be below LSB)

• 6.02 dB/bit resolution impacts on noise floor

(10)

converters

J.-M Friedt

Averaging for improved resolution

• Noise scales as 1/√

M when averaging overM samples⇒4-times sampling rate loss for 1-additional bit

• 10 log10(4) = 6.02 dB/bit

Which input interface is better for sampling a 77500 Hz signal ? a 16-bit sound card sampling at 192 kS/s or a 8-bit DVB-T

sampling at 2 MS/s ?

10 / 33

(11)

converters

J.-M Friedt

Averaging for improved resolution

• Noise scales as 1/√

M when averaging overM samples⇒4-times sampling rate loss for 1-additional bit

• 10 log10(4) = 6.02 dB/bit

Which input interface is better for sampling a 77500 Hz signal ? a 16-bit sound card sampling at 192 kS/s or a 8-bit DVB-T

sampling at 2 MS/s ?

fss= 4p×fs ⇔10 log10(fss/fs) = 10 log104×p'6.02×p i.e. 10 log10( 10

|{z}

2·106/192000

)/6.02'1.5 bits: high sampling rate only gains 1.5 dB or 9.5 dB equivalent, poorer than sound card result

(12)

converters

J.-M Friedt

Impact of clock jitter

• jitter impact dependent on fastest slope of signal

• minimum impact at signal maximum (amplitude fluctuations) V

dV t

dt

v(t) =A·cos(ωt)⇒max(dv/dt) =Aω

Jitterτ ⇒dv=Aωτ ⇒σv =Aωστ &τ= 2πϕ/ω⇒σv =Aσϕ

12 / 33

(13)

converters

J.-M Friedt

Impact of clock jitter

ERROR:

SNRdegradation =−20 log10(2πfinστ)

(14)

converters

J.-M Friedt

Application example: sound card

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 16 (or 24) bit ADC clocked at 192 kHz operating in

±1 V range

3 Impact of clock jitter on a 10 kHz input signal at full scale range ?

14 / 33

(15)

converters

J.-M Friedt

Application example: sound card

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 16 (or 24) bit ADC clocked at 192 kHz operating in

±1 V range

3 Impact of clock jitter on a 10 kHz input signal at full scale range ?

• Sϕ= σ

2 ϕ

B withB integration bandwidth andσϕ phase standard deviation: σϕ=p

10Sϕ/10×B= 4·10−5rad ifB =fADC

(16)

converters

J.-M Friedt

Application example: sound card

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 16 (or 24) bit ADC clocked at 192 kHz operating in

±1 V range

3 Impact of clock jitter on a 10 kHz input signal at full scale range ?

• Sϕ= σ

2 ϕ

B withB integration bandwidth andσϕ phase standard deviation: σϕ=p

10Sϕ/10×B= 4·10−5rad ifB =fADC

• ADC sampling rate →time jitter: 4·10−5/(2π×192000) = 33 ps

16 / 33

(17)

converters

J.-M Friedt

Application example: sound card

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 16 (or 24) bit ADC clocked at 192 kHz operating in

±1 V range

3 Impact of clock jitter on a 10 kHz input signal at full scale range ?

• Sϕ= σ

2 ϕ

B withB integration bandwidth andσϕ phase standard deviation: σϕ=p

10Sϕ/10×B= 4·10−5rad ifB =fADC

• ADC sampling rate →time jitter: 4·10−5/(2π×192000) = 33 ps

• ADC resolution: 2V/216= 30µV LSB but 2V/224= 120 nV LSB

(18)

converters

J.-M Friedt

Application example: sound card

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 16 (or 24) bit ADC clocked at 192 kHz operating in

±1 V range

3 Impact of clock jitter on a 10 kHz input signal at full scale range ?

• Sϕ= σ

2 ϕ

B withB integration bandwidth andσϕ phase standard deviation: σϕ=p

10Sϕ/10×B= 4·10−5rad ifB =fADC

• ADC sampling rate →time jitter: 4·10−5/(2π×192000) = 33 ps

• ADC resolution: 2V/216= 30µV LSB but 2V/224= 120 nV LSB

• 2π×10000×33·10−12= 2µV: no impact on 16 bit ADC but prevents full resolution of 24 bit ADC (only 20 bits valid)

18 / 33

(19)

converters

J.-M Friedt

Application example: RF ADC

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 12 (or 16) bit ADC clocked at 125 MHz operating in ±1 V range

3 Impact of clock jitter on a 5 MHz input signal at full scale range ?

(20)

converters

J.-M Friedt

Application example: RF ADC

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 12 (or 16) bit ADC clocked at 125 MHz operating in ±1 V range

3 Impact of clock jitter on a 5 MHz input signal at full scale range ?

• Sϕ= σ

2 ϕ

B withB integration bandwidth andσϕ phase standard deviation: σϕ=p

10Sϕ/10×B= 1 mrad if B=fADC

20 / 33

(21)

converters

J.-M Friedt

Application example: RF ADC

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 12 (or 16) bit ADC clocked at 125 MHz operating in ±1 V range

3 Impact of clock jitter on a 5 MHz input signal at full scale range ?

• Sϕ= σ

2 ϕ

B withB integration bandwidth andσϕ phase standard deviation: σϕ=p

10Sϕ/10×B= 1 mrad if B=fADC

• ADC sampling rate →time jitter: 10−3/(2π×125·106) = 1 ps

(22)

converters

J.-M Friedt

Application example: RF ADC

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 12 (or 16) bit ADC clocked at 125 MHz operating in ±1 V range

3 Impact of clock jitter on a 5 MHz input signal at full scale range ?

• Sϕ= σ

2 ϕ

B withB integration bandwidth andσϕ phase standard deviation: σϕ=p

10Sϕ/10×B= 1 mrad if B=fADC

• ADC sampling rate →time jitter: 10−3/(2π×125·106) = 1 ps

• ADC resolution: 2V/212= 490µV LSB but 2V/216 = 30µV LSB

22 / 33

(23)

converters

J.-M Friedt

Application example: RF ADC

1 Assume a local oscillator withSϕ=−140 dBrad2/Hz phase white phase noise

2 Assume a 12 (or 16) bit ADC clocked at 125 MHz operating in ±1 V range

3 Impact of clock jitter on a 5 MHz input signal at full scale range ?

• Sϕ= σ

2 ϕ

B withB integration bandwidth andσϕ phase standard deviation: σϕ=p

10Sϕ/10×B= 1 mrad if B=fADC

• ADC sampling rate →time jitter: 10−3/(2π×125·106) = 1 ps

• ADC resolution: 2V/212= 490µV LSB but 2V/216 = 30µV LSB

• 2π×5·106×10−12= 31µV: no impact on 12 bit ADC but at the threshold of 16 bit ADC

(24)

converters

J.-M Friedt

Impedance and equivalent circuit

From the Atmega32U4 datasheet (section 24.7.1):

Typical ADC equivalent impedance:'10 kΩ

Make sure sensor impedance is10 kΩ, otherwise voltage divider between sensor

impedance and ADC impedance

operational amplifier as follower acts as impedance buffer (high input impedance, low output impedance)

select single supply or rail to rail operational amplifier for positive power supply only

24 / 33

(25)

converters

J.-M Friedt

Impedance and equivalent circuit

sound

card (PC) ADC

fs R

R Vcc

Z

ADC

C

Bias T layout:

• sound card output centered on 0 V, but ADC can only sample from 0 toVref

• C impedance |ZC|= 1/(Cω) must be much lower at ω= 2πf than resistor bridge impedance

• R much lower thanZADC

6000 7000 8000 9000 10000 11000

voltage (bit)

time (sample number)

’210310_1kHz_sndcrd.hex’

• at 1 kHz, 100 nF:

Z100nF = 1600 ΩZADC

• RZADC butR≥ZC: R'2200..5600 Ω

(26)

converters

J.-M Friedt

Bibliography

• Clock and voltage reference statistical noise impacts on ADC output stability.

• High bandwidth ADC needed for high frequency signals

• If low frequency signals, resolution is improved by averaging ...

• but low frequency ADCs usually provide more bits.

• Adding noise before averaging can improve resolution !

[1] M. Bellanger,Traitement num´erique du signal : Th´eorie et pratique, 8e Ed., Sciences Sup, Dunod (2012)

[2] B. Widrow & I. Koll´ar,Quantization Noise: Roundoff Error in Digital

Computation, Signal Processing, Control, and Communications, Cambridge University Press (2008)

[3] B. Morley,ESE488 Signals and Systems Laboratory(2016),

classes.engineering.wustl.edu/ese488/Lectures/Lecture5a_QNoise.pdf [4] PhD Carolina C´ardenas Olaya,Digital Instrumentation for the Measurement of High Spectral Purity Signals(2017), at

http://porto.polito.it/2687860/1/Polito_PhD_Thesis.pdf

[5] P.-Y. Bourgeois, T. Imaike, G. Goavec-Merou & E. Rubiola,Noise in High-Speed Digital-to-Analog Converters, IFCS 2015

26 / 33

(27)

converters

J.-M Friedt

Quantization noise

• samples are uniformly distributed from−q/2 to +q/2 withqthe quantization step

• quantization errore distribution

σ2v =E(e2) = 1 q

Z +q/2

−q/2

e2·de = 1 q

e3 3

+q/2

−q/2

= 1 q

q3

3×8− −q3 2×8

= 1 q

2q3 24

= q2 12

e V

t

(28)

converters

J.-M Friedt

ENOB

Sv dBV2/Hz×fs

6.02 bit/dB = ENOB = log2

1 + VFSR

√12·fN·Sfloor

Measurement: 50Ω load or sine wave on both channels and subtract measurements (impact of track & hold jitter)

S

f

flicker

white noise floor

f =f /2

N s

v

ENOB: Effective Number Of Bits practically

28 / 33

(29)

converters

J.-M Friedt

ENOB

Sv dBV2/Hz×fs

6.02 bit/dB = ENOB = log2

1 + VFSR

√12·fN·Sfloor

Measurement: 50Ω load or sine wave on both channels and subtract measurements (impact of track & hold jitter)

vq= 2Mvfsr−1: here the target isM =ENOB.

σ2=vq2 12

then the total noise density over the bandwidth isNt2 fs Now we express

pNt= σ

√fs

= vq

√12fs

= vfsr

12·fs(2M−1) so 2M= 1 + vfsr

√12·fs· Nt

vfsr

©

(30)

converters

J.-M Friedt

ENOB

Sv dBV2/Hz×fs

6.02 bit/dB = ENOB = log2

1 + VFSR

√12·fN·Sfloor

Measurement: 50Ω load or sine wave on both channels and subtract measurements (impact of track & hold jitter)

PhD Carolina C´ardenas Olaya,Digital Instrumentation for the Measurement of High Spectral Purity Signals(2017), at

http://porto.polito.it/2687860/1/Polito_PhD_Thesis.pdf

practically

30 / 33

(31)

converters

J.-M Friedt

ENOB

Sv dBV2/Hz×fs

6.02 bit/dB = ENOB = log2

1 + VFSR

√12·fN·Sfloor

Measurement: 50Ω load or sine wave on both channels and subtract measurements (impact of track & hold jitter)

(32)

converters

J.-M Friedt

Oscillator phase noise

(a) Input carrier frequencyν0 = 10 MHz.

PhD Carolina C´ardenas Olaya,Digital Instrumentation for the Measurement of High Spectral Purity Signals(2017), at

http://porto.polito.it/2687860/1/Polito_PhD_Thesis.pdf

σ2ϕ=Sϕ·BW =BW ·10Sϕ(dB)/10

32 / 33

(33)

converters

J.-M Friedt

Low-pass filtering the ADC

measurements

• IIR:Pakyn−k =Pbkxn−k

• FIR: yn=P bkxn−k

• Delay dependent onN number of coefficients, bits per sample ?

Références

Documents relatifs

The setup is suitable for fast analysis of the effective number of bits of such converters, the main parameter related to quantization noise and signal to noise ratio,

FIG. a) The contributions of the input stage noise plus aperture jitter are shown. The measurements were taken at different carrier frequencies. The white phase noise level changes

The proposed block-level synthesis design flow combines circuit analysis with simulation to reduce the design space and speed up transistor-level evaluation, enabling use of

Both architectures are similar to sigma-delta or delta modulators: like in those structures, an ADC and an integrator are involved in the loop; the only

They show that, considering a given targeted SNR, anti-aliasing constraints upon the out-of-band attenuation can be relaxed in the HFB case compared to the TI-ADC case, even

In this paper we present a theoretical study of the errors due to imperfect reconstruction and to quantization in hybrid fil- ter bank (HFB) analog/digital (A/D) converters, that are

Post-Filtering (PF) is applied for eliminating the oversam- pling and GB spectral areas in the classical and TDM cases respectively, the TDM HFB architecture is associated with

Thin-film transistors (TFTs) employing oxide semiconductors have recently emerged in electronics, offering excellent performance and stability, low processing