/Pulse-Code-Modulation

A code to implement Pulse Code Modulation on a stream of data

Primary LanguagePythonMIT LicenseMIT

Pulse-Code-Modulation

A code to implement Pulse Code Modulation on a stream of data

For Matlab Implementation of Pulse Code Modulation:

image

Calculated Output:

Bit rate (Rb): 90.00 bits/sec

Bit duration (Tb): 1.11e-02 sec

Step size (δ): 0.5714 volts

Maximum quantization error (Qe_max): 0.2857 volts

Signal power: 3.01 dB

Quantization noise power: -15.65 dB

SQNR (calculated): 18.66 dB

SQNR (formula): 19.82 dB

Vizualization of Quantization

image

  • The Python implementation should generate similar results with slight skew.