Pulse Code Modulation - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Pulse Code Modulation

Description:

Analog samples (Pulse Amplitude Modulation, PAM) Quantization 8 Bit samples 256 levels Quality comparable with analog transmission Matlab Code: fid = fopen ... – PowerPoint PPT presentation

Number of Views:1129
Avg rating:3.0/5.0
Slides: 8
Provided by: Moh102
Category:

less

Transcript and Presenter's Notes

Title: Pulse Code Modulation


1
Pulse Code Modulation
2
What is PCM?
  • Analog samples (Pulse Amplitude Modulation, PAM)
  • Quantization
  • 8 Bit samples
  • 256 levels
  • Quality comparable with analog transmission

3
Matlab Code
  • fid fopen (seether.mp3','r')
  • m fread (fid,'int16')
  • Mp max (m)
  • bit_rate 8000bits Fs8000 Ts1
  • Quantizing the input signal 'm(t)'.
  • for k 1No_Samples,
  • samp_in(k) m(kTs)
  • quant_in(k) samp_in(k)/step_size
  • error(k) (samp_in(k) - quant_in(k))/No_Samples
  • end

4
Matlab Code Cont..
  • quantized signal 'quant_out'.
  • signS sign (m)
  • quant_out quant_in
  • for i 1count,
  • S(i) abs (quant_in(i)) 0.5
  • quant_out(i) signS(i)round(S(i))step_size
  • end
  • Calculating the quantization noise 'Nq'.
  • Nq ((Mp)2)/(3((levels)2))
  • Calculating signal to noise ratio 'SNR'.
  • SNR 1.5((levels)2)
  • Gms log10(SNR)

5
Output
6
Applications
  • Sending analog data in the form of digital
    signals
  • Used in digital telephone systems
  • Digital audio in computer

7
Thank You
Write a Comment
User Comments (0)
About PowerShow.com