SlideShare une entreprise Scribd logo
1  sur  13
Télécharger pour lire hors ligne
TELE3113 Analogue and Digital
          Communications – Quantization


                                        Wei Zhang
                                    w.zhang@unsw.edu.au



                   School of Electrical Engineering and Telecommunications
                              The University of New South Wales


TELE3113 - PCM   2 Sept. 2009                                                p. -1
Analog-to-Digital Conversion
    Goal: To transmit the analog signals by digital means              better performance

                 convert the analog signal into digital format (Pulse-Code Modulation)

     Analog           sampler           Quantizer          Encoder                              Digital
     signal                                                                                     signal
                                                             1111111
                                                             1111110
                                                             1111101
                                                             1111100    1111101 1111001 1111001 1111011 1111101 1111110 1111101 1111001
                                                             1111011
                                                             1111010      c8      c7      c6      c5      c4     c3      c2      c1
              x(t)                                           1111001
                                                             1111000

                                                                                                               time

                                time                time



       Sampling:         a continuous-time signal is sampled by measuring its
                         amplitude at discrete time instants.
       Quantizing: represents the sampled values of the amplitude by a finite set
                   of levels
       Encoding:         designates each quantized level by a digital code

TELE3113 - PCM   2 Sept. 2009                                                                                    p. -2
Reconstruction of Sampled Signal
                                1111101 11110011111001 1111011 1111101 1111110 11111011111001
     Received
     digital signal                c8       c7      c6   c5      c4      c3     c2      c1


                                                                 time

                                         decoding


     Recovered signal
     with discrete levels


                                        interpolation


      Recovered
      analog signal


TELE3113 - PCM   2 Sept. 2009                                                                   p. -3
Sampling

      Consider an analog signal x(t) which is bandlimited to B (Hz), that is:
                                 X ( f ) = 0 for | f |≥ B
      The sampling theorem states that x(t) can be sampled at intervals as
      large as 1/(2B) such that the it is possible to reconstruct x(t) from its
      samples, or the sampling rate fs=1/Ts can be as low as 2B.


                         x(t)                                                        1
                                                               f s ≥ 2B   or Ts ≤
                                                                                    2B
     Sampling rate fs=1/Ts

                                                            time
                          Sampling period   Ts

      Minimum required sampling rate=2B (Nyquist rate) i.e. 2B samples per second

      Sampling rate should be equal or greater than twice the highest frequency in
      the baseband signal.
TELE3113 - PCM   2 Sept. 2009                                                       p. -4
Analogue Pulse Modulation




            Pulse Amplitude
            Modulation



            Pulse Duration
            (Width) Modulation



            Pulse Position
            Modulation
TELE3113 - PCM   2 Sept. 2009            p. -5
Quantization
        After the sampling process, the sampled points will be transformed into a
        set of predefined levels (quantized level) Quantization
        Assume the signal amplitude of x(t) lies within [-Vmax ,+Vmax], we divide the
        total peak-to-peak range (2Vmax) into L levels in which the quantized
        levels mi (i=0,…,(L-1)) are defined as their respective mid-ways.
         Vmax                             xq(t)        x(t)
                                                                                                    Output
         m7                                                             ∆7
                                                                                                   m7= 7∆/2
         m6                                                             ∆6




                                                                                        uniform
                                                                                                   m6= 5∆/2
         m5                                                             ∆5                         m5= 3∆/2
         m4                                                             ∆4                         m4= ∆/2
         m3                                                             ∆3 time        −4∆ −3∆ −2∆ −∆         ∆ 2∆ 3∆ 4∆ Input
         m2                                                             ∆2
                                                                                                      −3∆/2
                                                                                                               uniform
         m1                                                             ∆1                            −5∆/2
         m0                                                             ∆0                            −7∆/2
         -Vmax
                                Sampling time
                                                                                                  Uniform quantizer
                                                                               2Vmax              (midrise type)
        For uniform quantization,               ∆ i ( i =0 ,L,( L −1)) = ∆ =
                                                                                 L                                       p. -6
TELE3113 - PCM   2 Sept. 2009
Quantization Noise (1)
  The quantized signal, xq(t) is an approximation of the original message signal, x(t).
                                                                           −∆             ∆
  Quantization error/noise: eq(t) ={x(t) - xq(t)} varies randomly within      ≤ eq (t ) ≤
                                                                            2             2

                                                      x(t)

                                                             xq(t)




                    eq(t) ={x(t) - xq(t)}
TELE3113 - PCM   2 Sept. 2009                                                       p. -7
Quantization Noise (2)
            Assume the quantization error varies uniformly within [-∆/2, ∆/2]
            with a pdf of f(eq)=1/∆, then
                             ∆ 2                             ∆ 2
                     2
                     q               [         ]
                   e (t ) = ∫ f (eq ) eq (t ) deq =
                                               2    1
                                                       ∫
                                                    ∆ −∆ 2
                                                               [ 2
                                                          eq (t ) deq  ]           Q f (eq ) =
                                                                                                 1
                                                                                                 ∆
                           −∆ 2

                                                         3    ∆ 2
                                                      1 eq             ∆2 Vmax
                                                                           2
                                                                                                     2Vmax
                                                    =                =   =              with ∆ =
                                                      ∆ 3     −∆ 2
                                                                       12 3L2                          L

            To minimize eq(t), we can use smaller ∆ or more quantized levels L.
                                                          2
            In general, the average power of a signal is x (t )                           or x 2 (t )

                                    x 2 (t )       3L2 x 2 (t )
                 average SNRx =      2
                                               =       2
                                    eq (t )           Vmax
                                             3L2 x 2 (t )                                       V2        
                 average SNRx (dB) = 10 log                          = 4.77 + 20 log L − 10 log 2max      
                                             Vmax
                                                  2
                                                                                                 x (t )    
                                                                                                          


TELE3113 - PCM    2 Sept. 2009                                                                                   p. -8
Quantization Noise (3)

                                                                                                 2
                                                                                                Vmax
        If x(t) is a full-scale sinusoidal signal, i.e. x(t)=Vmaxcosωt , then x (t ) = x (t ) =      2   2

                                                                                                 2
        Thus,
                 average SNRx (dB) = 4.77 + 20 log L − 10 log(2 ) = (1.76 + 20 log L ) dB




         If x(t) is uniformly distributed in the range [-Vmax,+Vmax], then pdf f(x)=1/(2Vmax),
                           Vmax                         Vmax
                                                  1                                            1
                  x (t ) = ∫ f ( x)[x(t )] dx =              ∫ [x(t )]2 dx
                                        2
                   2
                                                                               Q f (eq ) =
                          −Vmax
                                                2Vmax   −Vmax
                                                                                             2Vmax
                                                             Vmax
                                                1       x3               2
                                                                        Vmax
                                            =                         =
                                              2Vmax 3                    3
         Thus,                                                −Vmax


                  average SNRx (dB) = 4.77 + 20 log L − 10 log(3) = 20 log L dB



TELE3113 - PCM   2 Sept. 2009                                                                                p. -9
Non-uniform Quantization (1)
         In some cases, uniform quantization is not efficient.
         In speech communication, it is found (statistically) that smaller amplitudes
         predominate in speech and that larger amplitudes are relatively rare.
            many quantized levels are rarely used (wasteful !)
            Non-uniform quantization is more efficient.
                            xmax
                                                 x(t)
                      Quantized
                        levels




                                                                    time




                            -xmax


TELE3113 - PCM   2 Sept. 2009                                                   p. -10
Non-uniform Quantization (2)
         The non-uniform quantization can be achieved by first compressing the
         signal samples and then performing uniform quantization.
                                          Output
                                                   1




                                uniform
                                               ∆yi




                                                          ∆ si       1 Input
                                                                               x
                                                                      s =
                                                       Non-uniform          x max




                                              Compressor

        There exists more quantized levels for small x and fewer levels for larger x.


TELE3113 - PCM   2 Sept. 2009                                                       p. -11
Non-uniform Quantization (3)
 Input                                                     Uniform                                      Communication
             Sampler                  Compressor                                    Encoder
 signal                                                   Quantizer                                        Channel


                                                                                                          Received
                                       Decoder            Expander                  Interpolator
                                                                                                           signal


                            Output                                              Output




                                                                      Non-uniform
                  uniform




                               ∆ yi                                                  ∆si




                                           ∆si        Input                                                 Input
                                                                                                 ∆ yi
                                        Non-uniform                                            Uniform




                                  Compressor                                               Expander

TELE3113 - PCM   2 Sept. 2009                                                                                        p. -12
Non-uniform Quantization (4)
      Two common compression laws                               Α-law : 1 + ln  A x 
                                                                                     
                                                                                    
                                                                          
                                                                                  xmax  sgn( x ) for 1 ≤ x ≤ 1
      µ-law :                                                  y ( x) =      1 + ln A                A xmax
                               x
                  ln1 + µ
                    
                                    
                                                                          A
                             xmax                    x                                x                      x     1
          y ( x) =                  sgn( x) for          ≤1                           sgn( x )   for 0 ≤      ≤
                      ln (1 + µ )                   xmax                  1 + ln A xmax
                                                                                                           xmax   A




             Digital telephone system in North                            Digital telephone system in Europe
             America and Japan (µ=255)                                    (Α=87.6)
TELE3113 - PCM 2 Sept. 2009                                                                                  p. -13

Contenu connexe

Tendances

DSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital FiltersDSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital FiltersAmr E. Mohamed
 
Simulating communication systems with MATLAB: An introduction
Simulating communication systems with MATLAB: An introductionSimulating communication systems with MATLAB: An introduction
Simulating communication systems with MATLAB: An introductionAniruddha Chandra
 
Dsp U Lec10 DFT And FFT
Dsp U   Lec10  DFT And  FFTDsp U   Lec10  DFT And  FFT
Dsp U Lec10 DFT And FFTtaha25
 
Sem1 plt xp_02
Sem1 plt xp_02Sem1 plt xp_02
Sem1 plt xp_02Niit Care
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignAmr E. Mohamed
 
Chapter7 circuits
Chapter7 circuitsChapter7 circuits
Chapter7 circuitsVin Voro
 
Tele4653 l2
Tele4653 l2Tele4653 l2
Tele4653 l2Vin Voro
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformAmr E. Mohamed
 
An Optimized Transform for ECG Signal Compression
An Optimized Transform for ECG Signal CompressionAn Optimized Transform for ECG Signal Compression
An Optimized Transform for ECG Signal CompressionIDES Editor
 
A_law_and_Microlaw_companding
A_law_and_Microlaw_compandingA_law_and_Microlaw_companding
A_law_and_Microlaw_compandingAkshay Sharma
 
D ecimation and interpolation
D ecimation and interpolationD ecimation and interpolation
D ecimation and interpolationSuchi Verma
 

Tendances (18)

DSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital FiltersDSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital Filters
 
Sampling theorem
Sampling theoremSampling theorem
Sampling theorem
 
48
4848
48
 
Simulating communication systems with MATLAB: An introduction
Simulating communication systems with MATLAB: An introductionSimulating communication systems with MATLAB: An introduction
Simulating communication systems with MATLAB: An introduction
 
Dsp U Lec10 DFT And FFT
Dsp U   Lec10  DFT And  FFTDsp U   Lec10  DFT And  FFT
Dsp U Lec10 DFT And FFT
 
Sem1 plt xp_02
Sem1 plt xp_02Sem1 plt xp_02
Sem1 plt xp_02
 
Lo2520082015
Lo2520082015Lo2520082015
Lo2520082015
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
 
Muri
MuriMuri
Muri
 
Chapter7 circuits
Chapter7 circuitsChapter7 circuits
Chapter7 circuits
 
Tele4653 l2
Tele4653 l2Tele4653 l2
Tele4653 l2
 
Solved problems
Solved problemsSolved problems
Solved problems
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
 
An Optimized Transform for ECG Signal Compression
An Optimized Transform for ECG Signal CompressionAn Optimized Transform for ECG Signal Compression
An Optimized Transform for ECG Signal Compression
 
A_law_and_Microlaw_companding
A_law_and_Microlaw_compandingA_law_and_Microlaw_companding
A_law_and_Microlaw_companding
 
D ecimation and interpolation
D ecimation and interpolationD ecimation and interpolation
D ecimation and interpolation
 
Dft,fft,windowing
Dft,fft,windowingDft,fft,windowing
Dft,fft,windowing
 
Adm
AdmAdm
Adm
 

En vedette

Westheimer mobil station
Westheimer mobil stationWestheimer mobil station
Westheimer mobil stationrobertday
 
ICT in (Dutch) schools
ICT in (Dutch) schoolsICT in (Dutch) schools
ICT in (Dutch) schoolswimdboer
 
Portfolio 2013
Portfolio 2013Portfolio 2013
Portfolio 2013suehoeft
 
Leermiddelen en leerlijnen
Leermiddelen en leerlijnenLeermiddelen en leerlijnen
Leermiddelen en leerlijnenwimdboer
 
Rollup presentation
Rollup presentationRollup presentation
Rollup presentationmemco-int
 
Onderzoek naar het werkelijk gebruik van de ELO in het VO
Onderzoek naar het werkelijk gebruik van de ELO in het VOOnderzoek naar het werkelijk gebruik van de ELO in het VO
Onderzoek naar het werkelijk gebruik van de ELO in het VOwimdboer
 
2007_1
2007_12007_1
2007_1Diveon
 
非技術者のためのオープンソース入門 LibreOffice コミュニティで質問してみよう
非技術者のためのオープンソース入門 LibreOffice コミュニティで質問してみよう非技術者のためのオープンソース入門 LibreOffice コミュニティで質問してみよう
非技術者のためのオープンソース入門 LibreOffice コミュニティで質問してみようKazumi Ohhashi
 
Tele3113 wk3tue
Tele3113 wk3tueTele3113 wk3tue
Tele3113 wk3tueVin Voro
 
2n taller iloquid qualitat - diba - 06-06-12
2n taller iloquid   qualitat - diba - 06-06-122n taller iloquid   qualitat - diba - 06-06-12
2n taller iloquid qualitat - diba - 06-06-12Servei_Mercat_de_Treball
 
Cao ốc âu cơ tower
Cao ốc âu cơ towerCao ốc âu cơ tower
Cao ốc âu cơ towertranduyen76
 
Tele4653 l8
Tele4653 l8Tele4653 l8
Tele4653 l8Vin Voro
 
Kamaroninfo núm. 8 novembre 1996
Kamaroninfo núm. 8 novembre 1996Kamaroninfo núm. 8 novembre 1996
Kamaroninfo núm. 8 novembre 1996Josep Miquel
 
How to increase sales?
How to increase sales?How to increase sales?
How to increase sales?Kira Zhestkova
 
Ponencia smagua zaragoza marzo 2016
Ponencia smagua zaragoza marzo 2016Ponencia smagua zaragoza marzo 2016
Ponencia smagua zaragoza marzo 2016Alain Jordà
 
Intro to advertising week 1, class 1 - hmlc
Intro to advertising   week 1, class 1 - hmlcIntro to advertising   week 1, class 1 - hmlc
Intro to advertising week 1, class 1 - hmlcRajdish Singh
 

En vedette (20)

Westheimer mobil station
Westheimer mobil stationWestheimer mobil station
Westheimer mobil station
 
ICT in (Dutch) schools
ICT in (Dutch) schoolsICT in (Dutch) schools
ICT in (Dutch) schools
 
Portfolio 2013
Portfolio 2013Portfolio 2013
Portfolio 2013
 
Leermiddelen en leerlijnen
Leermiddelen en leerlijnenLeermiddelen en leerlijnen
Leermiddelen en leerlijnen
 
Rollup presentation
Rollup presentationRollup presentation
Rollup presentation
 
Anna col
Anna colAnna col
Anna col
 
Onderzoek naar het werkelijk gebruik van de ELO in het VO
Onderzoek naar het werkelijk gebruik van de ELO in het VOOnderzoek naar het werkelijk gebruik van de ELO in het VO
Onderzoek naar het werkelijk gebruik van de ELO in het VO
 
2007_1
2007_12007_1
2007_1
 
非技術者のためのオープンソース入門 LibreOffice コミュニティで質問してみよう
非技術者のためのオープンソース入門 LibreOffice コミュニティで質問してみよう非技術者のためのオープンソース入門 LibreOffice コミュニティで質問してみよう
非技術者のためのオープンソース入門 LibreOffice コミュニティで質問してみよう
 
Quang thai new
Quang thai newQuang thai new
Quang thai new
 
Tele3113 wk3tue
Tele3113 wk3tueTele3113 wk3tue
Tele3113 wk3tue
 
2n taller iloquid qualitat - diba - 06-06-12
2n taller iloquid   qualitat - diba - 06-06-122n taller iloquid   qualitat - diba - 06-06-12
2n taller iloquid qualitat - diba - 06-06-12
 
Cao ốc âu cơ tower
Cao ốc âu cơ towerCao ốc âu cơ tower
Cao ốc âu cơ tower
 
Tvi presentation
Tvi presentationTvi presentation
Tvi presentation
 
Tele4653 l8
Tele4653 l8Tele4653 l8
Tele4653 l8
 
Kamaroninfo núm. 8 novembre 1996
Kamaroninfo núm. 8 novembre 1996Kamaroninfo núm. 8 novembre 1996
Kamaroninfo núm. 8 novembre 1996
 
хүн орчин
хүн орчинхүн орчин
хүн орчин
 
How to increase sales?
How to increase sales?How to increase sales?
How to increase sales?
 
Ponencia smagua zaragoza marzo 2016
Ponencia smagua zaragoza marzo 2016Ponencia smagua zaragoza marzo 2016
Ponencia smagua zaragoza marzo 2016
 
Intro to advertising week 1, class 1 - hmlc
Intro to advertising   week 1, class 1 - hmlcIntro to advertising   week 1, class 1 - hmlc
Intro to advertising week 1, class 1 - hmlc
 

Similaire à Tele3113 wk7wed

Speech signal time frequency representation
Speech signal time frequency representationSpeech signal time frequency representation
Speech signal time frequency representationNikolay Karpov
 
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐ
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐCHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐ
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐlykhnh386525
 
Tele3113 tut2
Tele3113 tut2Tele3113 tut2
Tele3113 tut2Vin Voro
 
UPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptxUPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptxHarisMasood20
 
Tele3113 tut4
Tele3113 tut4Tele3113 tut4
Tele3113 tut4Vin Voro
 
Digital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptDigital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptMohamadHalimAbdWahid
 
Communication system lec5
Communication system  lec5Communication system  lec5
Communication system lec5ZareenRauf1
 
Signal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLABSignal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLABEmbedded Plus Trichy
 
Digital communication
Digital communicationDigital communication
Digital communicationmeashi
 
Matlab 2
Matlab 2Matlab 2
Matlab 2asguna
 
Performances des turbo codes parallèles pour un canal satellite non linéaire
Performances des turbo codes parallèles pour un canal satellite non linéairePerformances des turbo codes parallèles pour un canal satellite non linéaire
Performances des turbo codes parallèles pour un canal satellite non linéaireRachidz
 
Sampling and Reconstruction of Signal using Aliasing
Sampling and Reconstruction of Signal using AliasingSampling and Reconstruction of Signal using Aliasing
Sampling and Reconstruction of Signal using Aliasingj naga sai
 
Correlative level coding
Correlative level codingCorrelative level coding
Correlative level codingsrkrishna341
 

Similaire à Tele3113 wk7wed (20)

Analog to-digital conversion
Analog to-digital conversionAnalog to-digital conversion
Analog to-digital conversion
 
Speech signal time frequency representation
Speech signal time frequency representationSpeech signal time frequency representation
Speech signal time frequency representation
 
Basic concepts
Basic conceptsBasic concepts
Basic concepts
 
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐ
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐCHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐ
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐ
 
DSP Lab 1-6.pdf
DSP Lab 1-6.pdfDSP Lab 1-6.pdf
DSP Lab 1-6.pdf
 
Tele3113 tut2
Tele3113 tut2Tele3113 tut2
Tele3113 tut2
 
UPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptxUPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptx
 
Asp unit 1.pdf
Asp unit 1.pdfAsp unit 1.pdf
Asp unit 1.pdf
 
Tele3113 tut4
Tele3113 tut4Tele3113 tut4
Tele3113 tut4
 
Digital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptDigital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.ppt
 
Communication system lec5
Communication system  lec5Communication system  lec5
Communication system lec5
 
Signal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLABSignal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLAB
 
Digital communication
Digital communicationDigital communication
Digital communication
 
Matlab 2
Matlab 2Matlab 2
Matlab 2
 
Performances des turbo codes parallèles pour un canal satellite non linéaire
Performances des turbo codes parallèles pour un canal satellite non linéairePerformances des turbo codes parallèles pour un canal satellite non linéaire
Performances des turbo codes parallèles pour un canal satellite non linéaire
 
dsp
dspdsp
dsp
 
Sampling and Reconstruction of Signal using Aliasing
Sampling and Reconstruction of Signal using AliasingSampling and Reconstruction of Signal using Aliasing
Sampling and Reconstruction of Signal using Aliasing
 
Lecture_ch6.pptx
Lecture_ch6.pptxLecture_ch6.pptx
Lecture_ch6.pptx
 
Correlative level coding
Correlative level codingCorrelative level coding
Correlative level coding
 
Fft
FftFft
Fft
 

Plus de Vin Voro

Tele3113 tut6
Tele3113 tut6Tele3113 tut6
Tele3113 tut6Vin Voro
 
Tele3113 tut5
Tele3113 tut5Tele3113 tut5
Tele3113 tut5Vin Voro
 
Tele3113 tut1
Tele3113 tut1Tele3113 tut1
Tele3113 tut1Vin Voro
 
Tele3113 tut3
Tele3113 tut3Tele3113 tut3
Tele3113 tut3Vin Voro
 
Tele3113 wk11tue
Tele3113 wk11tueTele3113 wk11tue
Tele3113 wk11tueVin Voro
 
Tele3113 wk10wed
Tele3113 wk10wedTele3113 wk10wed
Tele3113 wk10wedVin Voro
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tueVin Voro
 
Tele3113 wk11wed
Tele3113 wk11wedTele3113 wk11wed
Tele3113 wk11wedVin Voro
 
Tele3113 wk9tue
Tele3113 wk9tueTele3113 wk9tue
Tele3113 wk9tueVin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wedVin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wedVin Voro
 
Tele3113 wk7tue
Tele3113 wk7tueTele3113 wk7tue
Tele3113 wk7tueVin Voro
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wedVin Voro
 
Tele3113 wk6tue
Tele3113 wk6tueTele3113 wk6tue
Tele3113 wk6tueVin Voro
 
Tele3113 wk5tue
Tele3113 wk5tueTele3113 wk5tue
Tele3113 wk5tueVin Voro
 
Tele3113 wk4wed
Tele3113 wk4wedTele3113 wk4wed
Tele3113 wk4wedVin Voro
 
Tele3113 wk4tue
Tele3113 wk4tueTele3113 wk4tue
Tele3113 wk4tueVin Voro
 
Tele3113 wk5wed
Tele3113 wk5wedTele3113 wk5wed
Tele3113 wk5wedVin Voro
 
Tele3113 wk2tue
Tele3113 wk2tueTele3113 wk2tue
Tele3113 wk2tueVin Voro
 
Tele3113 wk1tue
Tele3113 wk1tueTele3113 wk1tue
Tele3113 wk1tueVin Voro
 

Plus de Vin Voro (20)

Tele3113 tut6
Tele3113 tut6Tele3113 tut6
Tele3113 tut6
 
Tele3113 tut5
Tele3113 tut5Tele3113 tut5
Tele3113 tut5
 
Tele3113 tut1
Tele3113 tut1Tele3113 tut1
Tele3113 tut1
 
Tele3113 tut3
Tele3113 tut3Tele3113 tut3
Tele3113 tut3
 
Tele3113 wk11tue
Tele3113 wk11tueTele3113 wk11tue
Tele3113 wk11tue
 
Tele3113 wk10wed
Tele3113 wk10wedTele3113 wk10wed
Tele3113 wk10wed
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tue
 
Tele3113 wk11wed
Tele3113 wk11wedTele3113 wk11wed
Tele3113 wk11wed
 
Tele3113 wk9tue
Tele3113 wk9tueTele3113 wk9tue
Tele3113 wk9tue
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
 
Tele3113 wk7tue
Tele3113 wk7tueTele3113 wk7tue
Tele3113 wk7tue
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wed
 
Tele3113 wk6tue
Tele3113 wk6tueTele3113 wk6tue
Tele3113 wk6tue
 
Tele3113 wk5tue
Tele3113 wk5tueTele3113 wk5tue
Tele3113 wk5tue
 
Tele3113 wk4wed
Tele3113 wk4wedTele3113 wk4wed
Tele3113 wk4wed
 
Tele3113 wk4tue
Tele3113 wk4tueTele3113 wk4tue
Tele3113 wk4tue
 
Tele3113 wk5wed
Tele3113 wk5wedTele3113 wk5wed
Tele3113 wk5wed
 
Tele3113 wk2tue
Tele3113 wk2tueTele3113 wk2tue
Tele3113 wk2tue
 
Tele3113 wk1tue
Tele3113 wk1tueTele3113 wk1tue
Tele3113 wk1tue
 

Tele3113 wk7wed

  • 1. TELE3113 Analogue and Digital Communications – Quantization Wei Zhang w.zhang@unsw.edu.au School of Electrical Engineering and Telecommunications The University of New South Wales TELE3113 - PCM 2 Sept. 2009 p. -1
  • 2. Analog-to-Digital Conversion Goal: To transmit the analog signals by digital means better performance convert the analog signal into digital format (Pulse-Code Modulation) Analog sampler Quantizer Encoder Digital signal signal 1111111 1111110 1111101 1111100 1111101 1111001 1111001 1111011 1111101 1111110 1111101 1111001 1111011 1111010 c8 c7 c6 c5 c4 c3 c2 c1 x(t) 1111001 1111000 time time time Sampling: a continuous-time signal is sampled by measuring its amplitude at discrete time instants. Quantizing: represents the sampled values of the amplitude by a finite set of levels Encoding: designates each quantized level by a digital code TELE3113 - PCM 2 Sept. 2009 p. -2
  • 3. Reconstruction of Sampled Signal 1111101 11110011111001 1111011 1111101 1111110 11111011111001 Received digital signal c8 c7 c6 c5 c4 c3 c2 c1 time decoding Recovered signal with discrete levels interpolation Recovered analog signal TELE3113 - PCM 2 Sept. 2009 p. -3
  • 4. Sampling Consider an analog signal x(t) which is bandlimited to B (Hz), that is: X ( f ) = 0 for | f |≥ B The sampling theorem states that x(t) can be sampled at intervals as large as 1/(2B) such that the it is possible to reconstruct x(t) from its samples, or the sampling rate fs=1/Ts can be as low as 2B. x(t) 1 f s ≥ 2B or Ts ≤ 2B Sampling rate fs=1/Ts time Sampling period Ts Minimum required sampling rate=2B (Nyquist rate) i.e. 2B samples per second Sampling rate should be equal or greater than twice the highest frequency in the baseband signal. TELE3113 - PCM 2 Sept. 2009 p. -4
  • 5. Analogue Pulse Modulation Pulse Amplitude Modulation Pulse Duration (Width) Modulation Pulse Position Modulation TELE3113 - PCM 2 Sept. 2009 p. -5
  • 6. Quantization After the sampling process, the sampled points will be transformed into a set of predefined levels (quantized level) Quantization Assume the signal amplitude of x(t) lies within [-Vmax ,+Vmax], we divide the total peak-to-peak range (2Vmax) into L levels in which the quantized levels mi (i=0,…,(L-1)) are defined as their respective mid-ways. Vmax xq(t) x(t) Output m7 ∆7 m7= 7∆/2 m6 ∆6 uniform m6= 5∆/2 m5 ∆5 m5= 3∆/2 m4 ∆4 m4= ∆/2 m3 ∆3 time −4∆ −3∆ −2∆ −∆ ∆ 2∆ 3∆ 4∆ Input m2 ∆2 −3∆/2 uniform m1 ∆1 −5∆/2 m0 ∆0 −7∆/2 -Vmax Sampling time Uniform quantizer 2Vmax (midrise type) For uniform quantization, ∆ i ( i =0 ,L,( L −1)) = ∆ = L p. -6 TELE3113 - PCM 2 Sept. 2009
  • 7. Quantization Noise (1) The quantized signal, xq(t) is an approximation of the original message signal, x(t). −∆ ∆ Quantization error/noise: eq(t) ={x(t) - xq(t)} varies randomly within ≤ eq (t ) ≤ 2 2 x(t) xq(t) eq(t) ={x(t) - xq(t)} TELE3113 - PCM 2 Sept. 2009 p. -7
  • 8. Quantization Noise (2) Assume the quantization error varies uniformly within [-∆/2, ∆/2] with a pdf of f(eq)=1/∆, then ∆ 2 ∆ 2 2 q [ ] e (t ) = ∫ f (eq ) eq (t ) deq = 2 1 ∫ ∆ −∆ 2 [ 2 eq (t ) deq ] Q f (eq ) = 1 ∆ −∆ 2 3 ∆ 2 1 eq ∆2 Vmax 2 2Vmax = = = with ∆ = ∆ 3 −∆ 2 12 3L2 L To minimize eq(t), we can use smaller ∆ or more quantized levels L. 2 In general, the average power of a signal is x (t ) or x 2 (t ) x 2 (t ) 3L2 x 2 (t ) average SNRx = 2 = 2 eq (t ) Vmax  3L2 x 2 (t )   V2  average SNRx (dB) = 10 log   = 4.77 + 20 log L − 10 log 2max   Vmax 2   x (t )      TELE3113 - PCM 2 Sept. 2009 p. -8
  • 9. Quantization Noise (3) 2 Vmax If x(t) is a full-scale sinusoidal signal, i.e. x(t)=Vmaxcosωt , then x (t ) = x (t ) = 2 2 2 Thus, average SNRx (dB) = 4.77 + 20 log L − 10 log(2 ) = (1.76 + 20 log L ) dB If x(t) is uniformly distributed in the range [-Vmax,+Vmax], then pdf f(x)=1/(2Vmax), Vmax Vmax 1 1 x (t ) = ∫ f ( x)[x(t )] dx = ∫ [x(t )]2 dx 2 2 Q f (eq ) = −Vmax 2Vmax −Vmax 2Vmax Vmax 1 x3 2 Vmax = = 2Vmax 3 3 Thus, −Vmax average SNRx (dB) = 4.77 + 20 log L − 10 log(3) = 20 log L dB TELE3113 - PCM 2 Sept. 2009 p. -9
  • 10. Non-uniform Quantization (1) In some cases, uniform quantization is not efficient. In speech communication, it is found (statistically) that smaller amplitudes predominate in speech and that larger amplitudes are relatively rare. many quantized levels are rarely used (wasteful !) Non-uniform quantization is more efficient. xmax x(t) Quantized levels time -xmax TELE3113 - PCM 2 Sept. 2009 p. -10
  • 11. Non-uniform Quantization (2) The non-uniform quantization can be achieved by first compressing the signal samples and then performing uniform quantization. Output 1 uniform ∆yi ∆ si 1 Input x s = Non-uniform x max Compressor There exists more quantized levels for small x and fewer levels for larger x. TELE3113 - PCM 2 Sept. 2009 p. -11
  • 12. Non-uniform Quantization (3) Input Uniform Communication Sampler Compressor Encoder signal Quantizer Channel Received Decoder Expander Interpolator signal Output Output Non-uniform uniform ∆ yi ∆si ∆si Input Input ∆ yi Non-uniform Uniform Compressor Expander TELE3113 - PCM 2 Sept. 2009 p. -12
  • 13. Non-uniform Quantization (4) Two common compression laws Α-law : 1 + ln  A x          xmax  sgn( x ) for 1 ≤ x ≤ 1 µ-law :   y ( x) =  1 + ln A A xmax x ln1 + µ     A xmax x x x 1 y ( x) =   sgn( x) for ≤1  sgn( x ) for 0 ≤ ≤ ln (1 + µ ) xmax 1 + ln A xmax  xmax A Digital telephone system in North Digital telephone system in Europe America and Japan (µ=255) (Α=87.6) TELE3113 - PCM 2 Sept. 2009 p. -13