Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Quantization confusion in pulse code modulation.

Status
Not open for further replies.

shivajikobardan

Junior Member level 2
Joined
Oct 23, 2021
Messages
24
Helped
0
Reputation
0
Reaction score
2
Trophy points
3
Activity points
292
I have a question-:
This is a quantized version of an information signal. Here number of bits used to encode is 4 so there are 16 levels.

3fztQR2zK1guEVqQNowIZm8HWLLcEh6tS_qb0sqnYvSznTB39s6JSjuHEUFkD1pzUeTxNnuBaYOZSkA7c4euV2dPvcy2GwxZEPqwozcY5yGBbB1w31ovHm3-yUAc6p2zytm-nk1Y


ZXCScuMJmXYlPHiSVds54M_f-OpRMle8lBHcz3NEOk6qPBqWZwQwhIVZJ7hiGp5-rn3cXwl4OVVVOW4kb5Yyk8MQmzovSaSiTOo11qh2jbcgyFQPr___cfcjBQ3wPdXrITPSMQrt


Here is the encoding.
I tried to do this with similar type of questions.

qPukvkdJWdXdC5ztEK3fDRyKiSRjUSBhK7BYEEjoczaw2qvOjEzxNnFs-yortxvpmE9UChoVhJ8bkWVcIqElUvIBs0RUFuCQov1tkd9Uu_XGNWb5OVB-hOOhYxQ8YutwL18Zx8kk

But as you see here is the problem. There are 5 Voltage levels but only 4 possible encodings. There is a solution to this afaik it is to let like-:

4V-2V=00
2V-0V=01
0V-–2V=10
-2V- -4V=11.
But that is making less sense to me at the moment.
Can you shed some light in this issue?
 

Hi,

I'm not able to follow your thoughts completely. But the quantization step voltage can be determined by

V_FS / (2^n) = (4 V - -4V) / 2^4 = 8 V / 16 = 0.5 V.​
So there are 16 quantization steps, each one covers an interval of 0.5 V. Have you choesen a 2 Bit ADC (n = 2 --> L = 4) on purpose for your pen & paper example, I assume so?

4V-2V=00
2V-0V=01
0V-–2V=10
-2V- -4V=11.

Here you are dealing with ranges, as you have correctly shown. So there are no five specific voltages, only ranges, and of course TWO voltage levels define ONE interval/range. Consequently, you have one range less than specific voltage levels. Have a look on the links below, they might help you, especially [3].

[1] https://www.analog.com/en/education/education-library/data-conversion-handbook.html
[2] https://www.analog.com/media/en/tra...ndbooks/Data-Conversion-Handbook/Chapter2.pdf
[3] https://microchipdeveloper.com/adc:adc-quantization-error

BR
 

Hi,

the first picture shows an "unsigend" behaviour from 0 to 15.

the second one is a signed behaviour (-4 ... 0 ... +3). But a signed behaviour is 16 steps including zero, thus just 15 steps are available for non_zero values. You can´t have symmetric behaviour, unless:
* you define the range to be -3 ... 0 ... +3 (leave the "-4" redundant)
* you define the steps to be -3.5 / -2.5 / -1.5 / -0.5 / +0.5 / ... /+3.5. But you can´t have true zero

Klaus
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top