Top Banner
TLCE - C5 14/10/2009 © 2009 DDC 1 14/10/2009 - 1 TLCE - C5 - © 2009 DDC Politecnico di Torino ICT School Telecommunication Electronics C5 - Special A/D converters » Logarithmic conversion » Approximation, A and μ laws » Differential converters » Oversampling, noise shaping TLCE - C5 14/10/2009 © 2009 DDC 2 14/10/2009 - 2 TLCE - C5 - © 2009 DDC Lesson C5: special A/D converters Logarithmic conversion Piecewise approximation A and μ laws Differential converters Sigma-delta converters – Oversampling Noise shaping Waveform encoding and model encoding Voice LPC • References sect. 4.5
33

Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

May 21, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 1

14/10/2009 - 1 TLCE - C5 - © 2009 DDC

Politecnico di TorinoICT School

Telecommunication Electronics

C5 - Special A/D converters

» Logarithmic conversion» Approximation, A and µ laws» Differential converters» Oversampling, noise shaping

TLCE - C5 14/10/2009

© 2009 DDC 2

14/10/2009 - 2 TLCE - C5 - © 2009 DDC

Lesson C5: special A/D converters

• Logarithmic conversion– Piecewise approximation

– A and µ laws

• Differential converters– Sigma-delta converters– Oversampling

– Noise shaping

• Waveform encoding and model encoding– Voice LPC

• References sect. 4.5

Page 2: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 3

14/10/2009 - 3 TLCE - C5 - © 2009 DDC

Radio systems: where are ADC/DAC ?

• Services– V battery, TX power, …..

• Baseband chain– A/D e D/A for voice signals

• Receiver chain:– A/D conversion of I/Q components in the IF channel

• Transmitter chain– D/A conversion of synthesized I/Q components

• Software Defined Radio architectures– Most functions by digital/programmable circuits

A/D or D/A conversion very close to antenna

TLCE - C5 14/10/2009

© 2009 DDC 4

14/10/2009 - 4 TLCE - C5 - © 2009 DDC

A/D and D/A conversion: where ?

A/D and D/A convertersfor voice signal.

Page 3: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 5

14/10/2009 - 5 TLCE - C5 - © 2009 DDC

ADC and DAC system goals

• Improve cost/performance figure

– Cost factors» Complexity» Bit rate

– Performance parameters» Bandwidth » Precision

• Signals with known features– Amplitude distribution– Statistic parameters

– Model encoding

TLCE - C5 14/10/2009

© 2009 DDC 6

14/10/2009 - 6 TLCE - C5 - © 2009 DDC

Voice signal conversion

• Voice signal– exponential amplitude distribution

» more dense at lower levels

– wide dynamic range» SNRq low and variable with signal level

• Logarithmic analog to digital conversion – constant SNRq over a wide signal dynamic range– fewer bits for the same SNRq

Page 4: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 7

14/10/2009 - 7 TLCE - C5 - © 2009 DDC

Linear and nonlinear A/D conversion

• Linear A/D conversion– all AD intervals have same amplitude

» quantization error does not depend on signal level

– poor results with signals at low levels for most time (voice)» high quantization noise power, low signal power

• Nonlinear A/D conversion– different AD intervals

» quantization error changes with signal level» the nonlinear relation can be chosen to optimize SNRq for a

specific signal type (PDF, amplitude distribution)

– for voice signals (exponential distribution)» logarithmic law

TLCE - C5 14/10/2009

© 2009 DDC 8

14/10/2009 - 8 TLCE - C5 - © 2009 DDC

Linear quantization

• AD intervals with constant width

• Constant quantization noise power

• SNRq varies withsignal level(worse for low-levelsignals)

A

D

Page 5: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 9

14/10/2009 - 9 TLCE - C5 - © 2009 DDC

Nonlinear quantization

• AD intervals with variable width

• Quantization noise power related with signal level

• SNRq independentfrom signal level

A

D

TLCE - C5 14/10/2009

© 2009 DDC 10

14/10/2009 - 10 TLCE - C5 - © 2009 DDC

Standard conversion

• The A/D conversion adds εq noise to analog signal

– D = A + εq– AD is constant, therefore

» constant absolute error on D » % error (SNRq) is related with signal level A

A

εq

D

Page 6: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 11

14/10/2009 - 11 TLCE - C5 - © 2009 DDC

Logarithmic conversion

• Conversion of signal logarithm:

– D = log A + εq

– sum of logs � log of product

» D = log A + εq = log K A (εq = log K)» multiplying error (1 - K)» constant % error, independent from signal level A

A

εq

Dlog

log A

TLCE - C5 14/10/2009

© 2009 DDC 12

14/10/2009 - 12 TLCE - C5 - © 2009 DDC

Nominal SNRq

• Log quantization causes a constant relative error– constant SNRq

SNRq

Level

Full scale

log

lin

Page 7: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 13

14/10/2009 - 13 TLCE - C5 - © 2009 DDC

A and µµµµ approximation

– Audio signals are bipolar

– the log curve must be replicated in the III quadrant » symmetric curve from I quadrant

• Log 0 is undefined

• near 0 the log curve can be only approximated

– µ law» translate the positive and negative branches to get a

continuous curve in (0,0)

– A law» replace the curves near 0 with a straight line (crossing 0,0)

TLCE - C5 14/10/2009

© 2009 DDC 14

14/10/2009 - 14 TLCE - C5 - © 2009 DDC

A and µ approximation - graphs

• Translation (µ law) Replacement (A law)

Page 8: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 15

14/10/2009 - 15 TLCE - C5 - © 2009 DDC

SNRq near 0

• A law: signals less than 1/A --> linear quantization– SNRq depends from signal level (6 dB/octave)

• µ law: almost linear quantization at low levels– similar effect: SNRq drop

SNRq

Level

Full scale (S)1/A

TLCE - C5 14/10/2009

© 2009 DDC 16

14/10/2009 - 16 TLCE - C5 - © 2009 DDC

SNRq with A and µ law

µ law

A law

linear

Linear behavior Log behavior Overload

Page 9: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 17

14/10/2009 - 17 TLCE - C5 - © 2009 DDC

Log A/D approximation

• Obtaining calibrated continuous nonlinear behavior requires complex and expensive analog circuits

• Piecewise approximation

• The log curve is divided in linear segments– due to log scale, the same ratio of input signal corresponds

to the same shift in horizontal axis

– slope and starting point of each segment are sequenced as 2 powers (2, 4, 8, 16, ….)

– linear coding inside each segment

TLCE - C5 14/10/2009

© 2009 DDC 18

14/10/2009 - 18 TLCE - C5 - © 2009 DDC

Piecewise approximation

Compressed signal

Continuous log law

slope

slope

slope

slope

Input signal

Page 10: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 19

14/10/2009 - 19 TLCE - C5 - © 2009 DDC

Log PCM format

• Each sample is coded on 8 bit

– MSB (bit 7): sign

– bit 6, 5, 4: segment

– bit 3, 2, 1, 0: level within the segment

7 6 5 4 3 2 1 0

TLCE - C5 14/10/2009

© 2009 DDC 20

14/10/2009 - 20 TLCE - C5 - © 2009 DDC

Piecewise approximation: SNRq

• Within each segment

– quantization error εq remains constant

– signal level changes � signal power changes

– SNRq changes with unity slope

• From each segment to the next one (from S to 0)

– quantization error εq is divided by 2

– signal level is divided by 2

– SNRq constant

• Near 0 same behavior as linear quantization

– constant εq

– signal level changes

Page 11: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 21

14/10/2009 - 21 TLCE - C5 - © 2009 DDC

SNRq with A and µ µ µ µ approximation

µ 255 law

A (87.6) law

TLCE - C5 14/10/2009

© 2009 DDC 22

14/10/2009 - 22 TLCE - C5 - © 2009 DDC

Log conversion techniques

• Analog log circuit, followed by A/D– poor precision and stability in the analog circuit

– high cost

• High resolution A/D conversion, followed by digital log encoding

– makes available both the linear and log conversion

• Intrinsic log A/D converter– nonlinear law A/D or D/A conversion

– suitable for any type of nonlinear transfer function (DAC for DDS)

Page 12: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 23

14/10/2009 - 23 TLCE - C5 - © 2009 DDC

A/D logarithmic converter

• A logarithmic A/D converter can use the D/A feedback technique: comparator-Approximation logic - D/A loop

– the D/A must have exponential transfer function

• How to build an exponential D/A (bipolar):

– sign bit: inverts the D/A reference voltage

– segment bits: provide a voltage with 2N steps» segment bits are decoded into linear code (3-8 decoder)» the 8 bit feed a linear 8-bit D/A » each segment generates outputs with a ratio 2 towards

adjacent ones

– level bits: fed directly to a linear D/A

TLCE - C5 14/10/2009

© 2009 DDC 24

14/10/2009 - 24 TLCE - C5 - © 2009 DDC

Logarithmic ADC

• Sign bit � inverts the reference voltage Vr• Segment bits � voltage Vs scaled with 2N steps (1, 2, 4, 8, …)

• Level bits � fed directly to a linear DAC using Vs as reference

Vs

Page 13: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 25

14/10/2009 - 25 TLCE - C5 - © 2009 DDC

Nonlinear DAC

• Structure for nonlinear DAC and ADC with piecewise approximation

– Segment bit decoder

– Standard DAC + lookup table– Decoded DAC uniform elements

» To build starting point and slope of each segment

– Linear coding within each segment (level bits)– Output adder

» Shifts the segment starting point

• Technique used for DACs in DDS (sine generators)– Sine conversion law (piecewise approximation)

TLCE - C5 14/10/2009

© 2009 DDC 26

14/10/2009 - 26 TLCE - C5 - © 2009 DDC

Nonlinear DAC block diagram

• Piecewise nonlinear characteristic– Da: segment bits

– Db: level bits

+Vr

-Vr

Da

LEVELDAC

Db

SEGMENT SLOPE DAC

DECODER/LOOKUP

SEGMENTSTART DAC

+VO

Page 14: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 27

14/10/2009 - 27 TLCE - C5 - © 2009 DDC

Lesson C5: special A/D converters

• Logarithmic conversion– Piecewise approximation

– A and µ laws– Logarithmic converters

• Differential converters– Sigma-delta converters

– Oversampling – Noise shaping

• Waveform encoding and model encoding– Voice LPC

– Comparison quality/bit rate

TLCE - C5 14/10/2009

© 2009 DDC 28

14/10/2009 - 28 TLCE - C5 - © 2009 DDC

Tracking converter

• The tracking ADC is a differential converter– The serial bit flow from the comparator output represents the

sign of A - A’ (current value – previous value)

Up/downcounter

Page 15: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 29

14/10/2009 - 29 TLCE - C5 - © 2009 DDC

Differential converters

• Quantization of difference between previous and current values

– Dynamic reduction

– 1-bit A/D conversion (comparator)– Serial flow of uniform bits

CODER DECODER

TLCE - C5 14/10/2009

© 2009 DDC 30

14/10/2009 - 30 TLCE - C5 - © 2009 DDC

Delta converter

• Integrating differential converter– L is a sequence of positive or negative pulses, with rate

Fck = 1/Tck

– The recovered signal is S(L)

– On each pulse R changes of one step γ (posive or negative).

Page 16: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 31

14/10/2009 - 31 TLCE - C5 - © 2009 DDC

Signal in the Delta converter

– L is a sequence of positive or negative pulses, with rate Fck = 1/Tck

– The recovered signal is S(L)

– On each pulse R changes of one step γ (posive or negative).

TLCE - C5 14/10/2009

© 2009 DDC 32

14/10/2009 - 32 TLCE - C5 - © 2009 DDC

Delta ADC dynamic

• Minimum signal (IDLE state)– Peak level γ/2; idle noise

• Maximum tracked signal– Slew rate γ/Tck overload

Page 17: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 33

14/10/2009 - 33 TLCE - C5 - © 2009 DDC

Characteristic of Delta ( ∆) ADC

• A differential converter

– Does not require high precision devices

• but ….

– Provides limited dynamic range» From idle noise and overload

– For a specific SNRq, generates a bit flow with high rate

• Operates in oversampling mode

TLCE - C5 14/10/2009

© 2009 DDC 34

14/10/2009 - 34 TLCE - C5 - © 2009 DDC

Oversampling

• Sampling at a rate far higher than the Nyquist limit – Example: 3 kHz audio signal (Nyquist = 6 kS/s)

» 8 kS/s � Nyquist sampling» 1 MS/s � Oversampling

• Oversampling sends alias far away (1 MHz, 2MHz,…)– Relaxed specifications on the anti-alias input filter

• Reduced noise power density– Reduced inband noise power

– Requires good reconstruction filter

• Higher bit rate (more samples/s)– Can be reduced with digital filtering– Complexity: analog � digital domain

Page 18: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 35

14/10/2009 - 35 TLCE - C5 - © 2009 DDC

Oversampling vs. Nyquist

X(ω)f

FS10

Main spectrum (baseband) First alias

2FS1

Second alias

X(ω)

f

FS20

First alias

Oversampling

Quantization noise (0-Fs1 band)

Nyquist

Quantization noise (0-Fs2 band)

TLCE - C5 14/10/2009

© 2009 DDC 36

14/10/2009 - 36 TLCE - C5 - © 2009 DDC

Oversampling vs. Nyquist filtering

X(ω)f

FS10 2FS1

X(ω)

f

FS20

Oversampling

Nyquist Steep filter

Smooth filter

Different filters:same quantization noise power (after reconstruction filter)

Page 19: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 37

14/10/2009 - 37 TLCE - C5 - © 2009 DDC

Oversampling vs. Nyquist noise

X(ω)f

FS10 2FS1

Nyquist Steep filter

Same filter:reduced quantization noise power (after reconstruction filter)

X(ω)

f

FS20

Oversampling Steep filter

Removed quantization noise

TLCE - C5 14/10/2009

© 2009 DDC 38

14/10/2009 - 38 TLCE - C5 - © 2009 DDC

Which is the actual limit ?

• Actual Nyquist rule:– A signal must be sampled at least

twice the signal BANDWIDTH

– Example: a 1 GHz carrier, 100 kHz BW signal can be safely sampled at Fs > 200 ks/s

– Spectrum is folded around K Fs/2

• Less stringent specs for RF A/D converters– Sampling rate related with bandwidth, not carrier

• Tight specs for the S/H– sampling jitter related with carrier, not bandwidth

Page 20: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 39

14/10/2009 - 39 TLCE - C5 - © 2009 DDC

Filter for Nyquist sampling

A/D

Complex analog LP filter

NYQUIST

X(ω)f

FS0 2FSFS/2

Spectrum segment folded to baseband(aliasing noise)

Steep antialias filter, to limit aliasing noise

TLCE - C5 14/10/2009

© 2009 DDC 40

14/10/2009 - 40 TLCE - C5 - © 2009 DDC

Reducing aliasing noise

• Lower outband signal level– More steep input filter

• Increase sampling rate Fs (oversampling)– Moves alias spectra far from baseband– Need for faster A/D converter– Higher bit rate

can be reduced by digital filtering

• Move complexity from the analog to the digital domain

Page 21: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 41

14/10/2009 - 41 TLCE - C5 - © 2009 DDC

Oversampling: more simple filter

X(ω)

ω

2πFS20

Complex, steep digital filter:- reduce noise- reduce bit rate (decimation)

Alias is far away; antialias analogfilter can be simple

TLCE - C5 14/10/2009

© 2009 DDC 42

14/10/2009 - 42 TLCE - C5 - © 2009 DDC

Filters with oversampling

A/D

Simple analog filter

Complex digital filterCan reduce the bit rate (decimation)

NYQUIST �

OVERSAMPLING �

Complex analog LP filter

A/D

Move complexity from the analog to the digital domain

Page 22: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 43

14/10/2009 - 43 TLCE - C5 - © 2009 DDC

∆ converter input dynamic range

• Range of input signals correctly handled– γ corresponds to

the quantization stepAD in a standard ADC

– Input dynamic range: Fck/πFs» Does not depend on γ

• To increase input dynamic range– γ constant

» possible only to change Fck

– γ variable (adaptive converters)» Minimum in idle condition (output sequence 0-1-0-1-0-…)» Maximum near overload (output sequences 000… or 111... )

– Remove dependency from signal frequency (ω)» Σ−∆ converters

TLCE - C5 14/10/2009

© 2009 DDC 44

14/10/2009 - 44 TLCE - C5 - © 2009 DDC

Adaptive converters

• Two integrators in the loop– Stability problems

– Integrator + predictor (pole/zero)

• Variable step γ , depending from – Signal level (power estimation)

» Syllabic adaptation

– Error sign sequences» Real-time adaptation

• Adaptation circuits must use the line signal– idle: alternated 0-1-0-1… sequence at output– overload: continuous streams 0000… or 1111...

Page 23: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 45

14/10/2009 - 45 TLCE - C5 - © 2009 DDC

Adaptive converters

• DAC uses only line signal

Powerestimation

Powerestimation

TLCE - C5 14/10/2009

© 2009 DDC 46

14/10/2009 - 46 TLCE - C5 - © 2009 DDC

Differential converter architectures

• The differential converter can operate on many bits

– The comparator is replaced by an ADC

– A DAC drives the integrator

Integrator

Page 24: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 47

14/10/2009 - 47 TLCE - C5 - © 2009 DDC

Digital differential converters

• Integration can occur in the digital domain

– Integrator becomes accumulator

TLCE - C5 14/10/2009

© 2009 DDC 48

14/10/2009 - 48 TLCE - C5 - © 2009 DDC

Σ∆Σ∆Σ∆Σ∆ converters

• The input dynamic range is limited by signal slew rate– For wider dynamic: limit slew rate

– Integrator on input signal» Decrease amplitude as frequency goes up (integrator) � constant slew rate

Page 25: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 49

14/10/2009 - 49 TLCE - C5 - © 2009 DDC

Σ∆Σ∆Σ∆Σ∆ converters

• The input dynamic range is limited by signal slew rate– For wider dynamic: limit slew rate

– Integrator on input signal» Decrease amplitude as frequency goes up (integrator)

– To correctly rebuild the signal: derive the output

Standard differential chain

TLCE - C5 14/10/2009

© 2009 DDC 50

14/10/2009 - 50 TLCE - C5 - © 2009 DDC

Sigma-Delta ADC and DAC

• Move integrators on adder input � single integrator at the output

• Remove the integrator-derivator in DAC

• Keep antialias input and reconstruction output filters (not shown)

ADC DAC

Page 26: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 51

14/10/2009 - 51 TLCE - C5 - © 2009 DDC

Quantization noise in ΣΣΣΣ−−−−∆∆∆∆

• In the ΣΣΣΣ−−−−∆∆∆∆ ADC quantization noise εq is generated after integraton

• Y/N transfer function is highpass

TLCE - C5 14/10/2009

© 2009 DDC 52

14/10/2009 - 52 TLCE - C5 - © 2009 DDC

Noise shaping

• Noise is shifted towards high frequencies

• Noise power spectrum density is higher at high frequencies:

– Noise shaping

• Noise power spectrum density in baseband is reduced

• Further reduction to output noise power– Or simpler reconstruction filter

Page 27: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 53

14/10/2009 - 53 TLCE - C5 - © 2009 DDC

Oversampling vs. Nyquist noise

Noise power is moved to HF, lower power density in baseband

X(ω)

f

FS20

Noise shaping

Shaped quantization noise

X(ω)

f

FS20

Oversampling Reconstruction filter

Flat quantization noise

TLCE - C5 14/10/2009

© 2009 DDC 54

14/10/2009 - 54 TLCE - C5 - © 2009 DDC

Complete ΣΣΣΣ−−−−∆∆∆∆ conversion chain

• Anti aliasing filter» Oversampling allows simple filters

• ADC Σ−∆ order 1, 2, … N» Produces a high speed, non-weighted bit stream

• Decimator» Changes the high speed bit rate in low rate words

– ---- Channell -----

• Interpolator» Recreates the high speed serial flow

• Σ−∆ DAC» Rebuilds analog signal

• Reconstruction filter

Page 28: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 55

14/10/2009 - 55 TLCE - C5 - © 2009 DDC

Bit rate reduction

ΣΣΣΣ−−−−∆∆∆∆ DECIMATOR

INTERPOLATOR ΣΣΣΣ−−−−∆∆∆∆

A

A filtered

D serial, High rate

D parallel, Low rate

A’

TLCE - C5 14/10/2009

© 2009 DDC 56

14/10/2009 - 56 TLCE - C5 - © 2009 DDC

Numeric example

• Audio signal– Fmax 3 kHz

– Sampled 8 ks/s, 8 bit quantization » Which SNRq ?» Which Fck to obtain the same SNRq with a differential

converter?

Page 29: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 57

14/10/2009 - 57 TLCE - C5 - © 2009 DDC

Lesson C5: special A/D converters

• Logarithmic conversion– Piecewise approximation

– A and µ laws– Logarithmic converters

• Differential converters– Sigma-delta converters

– Oversampling – Noise shaping

• Waveform encoding and model encoding– Voice LPC

– Comparison quality/bit rate

TLCE - C5 14/10/2009

© 2009 DDC 58

14/10/2009 - 58 TLCE - C5 - © 2009 DDC

Model encoding vs waveform encoding

• Waveform encoding:– Sequence of number which represent the sequence of

values generated by sampling the time varying signal.

– Example: sine tone» Values of the sine signal at sampling times.

• Model encoding:– Define a “source model”

– Model parameters are derived from the signal– The signal is rebuilt from parameters using the model

– Example: sine tone» Model: sine generator» Parameters: amplitude, frequency, and phase» Rebuilt using a properly set signal generator.

Page 30: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 59

14/10/2009 - 59 TLCE - C5 - © 2009 DDC

Waveform encoding

• Sequence of samples– example: sine tone

» Values of A sinωt for t = K Ts

• Values: 8, -1, -10, -7, +2, +10, +5, -6, -10, -4, ….

Ts = 0,2 ms

t(ms)

10 V

1

2

TLCE - C5 14/10/2009

© 2009 DDC 60

14/10/2009 - 60 TLCE - C5 - © 2009 DDC

Model and parameters

Model: v(t) = V sen (ω t + θ)

Parameters: V = 10 Vω = 2πf = 2π/T = 5.2 krad/sθ = 0,3π = 0,9 rad

6 decimal digits

Period TPhase θ

t[ms]1

2Peak value V

Page 31: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 61

14/10/2009 - 61 TLCE - C5 - © 2009 DDC

SNR for model encoding

• Which factors influence SNR?

• Waveform encoding

– Sampling rate

– Resolution of samples (bit number)

• Model encoding

– Model accuracy– Correctness and resolution of parameters

TLCE - C5 14/10/2009

© 2009 DDC 62

14/10/2009 - 62 TLCE - C5 - © 2009 DDC

Example of model encoding

• LPC (Linear Predictive Coding) for voice signals– Based on a vocal segment model (larinx)

– Signal is divided in frames (10-30 ms)

– For each frame:» voiced/unvoiced decision» evaluation periodicity step (pitch)» Evaluation of adapted filter coefficients

– Voiced: complex waveforms repeated » Pulse generator at pitch rate» Filter to generate the waveform

– Unvoiced: filtered noise» Noise generator + filter

Page 32: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 63

14/10/2009 - 63 TLCE - C5 - © 2009 DDC

Block diagram of LPC decoder

PULSE GENERATOR

NOISEGENERATOR

FILTER

PITCH

FILTER PARAMETERS

VOICED

UNVOICED

TLCE - C5 14/10/2009

© 2009 DDC 64

14/10/2009 - 64 TLCE - C5 - © 2009 DDC

Model encoding: performance

• Standard criteria:– speaker recognition (A)

– speech understanding (B)

• Waveform encoding speed (kbit/s)

– log PCM 64/32– Differential 32/16

– Adaptive Differential (ADPCM) 4 (only B)

• Model encoding– LPT (GSM phones) 9,6– Frequency slots vocoder 4,8

– LPC 2,4

Page 33: Politecnico di Torino ICT School · – the log curve must be replicated in the III quadra nt » symmetric curve from I quadrant • Log 0 is undefined • near 0 the log curve can

TLCE - C5 14/10/2009

© 2009 DDC 65

14/10/2009 - 65 TLCE - C5 - © 2009 DDC

Lesson C5 – final test

• Which are the benefits of logarithmic conversion?

• What happens for signals close to 0 in a log ADC?

• Which are the differences between A and µ log approximations?

• Which parameter controls the dynamic range of a differential ADC?

• Explain structure of delta-sigma ADC.–

• Which are benefits and drawbacks of oversampling?

• Explain noise shaping.

• Which parameters influence S/N for model encoding?

• Describe features of waveform and model encoding techniques.