You are here

AN2095 - Algorithm - Logarithmic Signal Companding - Not Just a Good Idea - It Is μ-Law | Cypress Semiconductor

AN2095 - Algorithm - Logarithmic Signal Companding - Not Just a Good Idea - It Is μ-Law

Last Updated: 
Jun 26, 2020
Version: 
*D

AN2095 explains how logarithmic signal compression works. Routines are developed and an application is shown to implement a μ-Law compressor that converts an analog voice band signal and produces a digitized 8-bit compressed value. An expanding DAC is also developed that restores the compressed digital value back to an analog value.

Introduction

Virtually all telephony applications are becoming digital. Be it wireless or standard line, digitization of speech for transmission has advantages over traditional analog techniques. μ-Law (pronounced mu law) is a technique of data compression and expansion that allows for a greater dynamic range given the same signal bandwidth. This Application Note explains the logarithmic nature of the human ear’s response. Equations are developed to calculate the signal-to-noise ratio for variable input levels. A PSoC® implementation of a μ-Law compressor and expander (compandor) is developed. A project is included that accomplishes the following:

Digitizes and compresses incoming data to an 8-bit value.

Transmits this data via a RS232 transmitter.

Receives this data via a RS232 receiver.

Expands this data and coverts it back to an analog value.

‘C’ callable companding routines are developed and presented.

PSoC1 u-Law Compressor and Expander

Dear valued customer,

Thank you for choosing our products. They come with all the know-how and passion that our engineers have put into it. As you probably already know, Cypress is now Infineon. This is a major step for our company, but also for the good of you. 

Reliability and business continuity are of utmost importance for us. Hence, we remain fully committed to honoring existing customer and distributor relationships. This includes offering the legacy Cypress product portfolio. We thank you very much for your trusting support.

For the full version of this message, please download the PDF version.