SPRA118
Table 13. Quantizer Definition for 32-Kbps ADPCM
DS/DSX |
DLN/DLNX |
I |
ID |
0 |
400, ..., 2047 |
0111 |
15 |
0 |
349, ..., 399 |
0110 |
14 |
0 |
300, ..., 348 |
0101 |
13 |
0 |
246, ..., 299 |
0100 |
12 |
0 |
178, ..., 245 |
0011 |
11 |
0 |
80, ..., 177 |
0010 |
10 |
0 |
–124, ..., 79 |
0001 |
9 |
0 |
–2048, ..., –125 |
1111 |
7 |
1 |
–2048, ..., –125 |
1111 |
7 |
1 |
–124, ..., 79 |
1110 |
6 |
1 |
80, ..., 177 |
1101 |
5 |
1 |
178, ..., 245 |
1100 |
4 |
1 |
246, ..., 299 |
1011 |
3 |
1 |
300, ..., 348 |
1010 |
2 |
1 |
349, ..., 399 |
1001 |
1 |
1 |
400, ..., 2047 |
1000 |
0 |
|
|
|
|
NOTE: The I values are transmitted with bit 1.
Table 14. Quantizer Definition for 24-Kbps ADPCM
DS/DSX |
DLN/DLNX |
I |
ID |
0 |
331, ..., 2047 |
011 |
7 |
0 |
218, ..., 330 |
010 |
6 |
0 |
8, ..., 217 |
001 |
5 |
0 |
–2048, ..., 7 |
111 |
3 |
1 |
–2048, ..., 7 |
111 |
3 |
1 |
8, ..., 217 |
110 |
2 |
1 |
218, ..., 330 |
101 |
1 |
1 |
331, ..., 2047 |
100 |
0 |
|
|
|
|
NOTE: The I values are transmitted with bit 1.
G.726 Adaptive Differential Pulse Code Modulation (ADPCM) on the TMS320C54x DSP |
41 |
SPRA118
Table 15. Quantizer Definition for 16-Kbps ADPCM
DS/DSX |
DLN/DLNX |
I |
ID |
0 |
261, ..., 2047 |
01 |
3 |
0 |
–2048, ..., 260 |
00 |
2 |
1 |
–2048, ..., 260 |
11 |
1 |
1 |
261, ..., 2047 |
10 |
0 |
|
|
|
|
NOTE: The I values are transmitted with bit 1.
Table 16. Quantizer Output Levels for 40-Kbps ADPCM
I |
DQS |
DQLN |
IM |
01111 |
0 |
566 |
31 |
01110 |
0 |
539 |
30 |
01101 |
0 |
514 |
29 |
01100 |
0 |
488 |
28 |
01011 |
0 |
459 |
27 |
01010 |
0 |
429 |
26 |
01001 |
0 |
395 |
25 |
01000 |
0 |
358 |
24 |
00111 |
0 |
318 |
23 |
00110 |
0 |
274 |
22 |
00101 |
0 |
224 |
21 |
00100 |
0 |
169 |
20 |
00011 |
0 |
104 |
19 |
00010 |
0 |
28 |
18 |
00001 |
0 |
–66 |
17 |
00000 |
0 |
–2048 |
16 |
11111 |
1 |
–2048 |
15 |
11110 |
1 |
–66 |
14 |
11101 |
1 |
28 |
13 |
11100 |
1 |
104 |
12 |
11011 |
1 |
169 |
11 |
|
|
|
|
NOTES: 1. The I values are received, starting with bit 1.
2.It is possible for the decoder to receive the codeword 00000 because of transmission disturbances (e.g., line bit errors).
42 G.726 Adaptive Differential Pulse Code Modulation (ADPCM) on the TMS320C54x DSP
SPRA118
Table 16. Quantizer Output Levels for 40-Kbps ADPCM (Continued)
I |
DQS |
DQLN |
IM |
11010 |
1 |
224 |
10 |
11001 |
1 |
274 |
9 |
11000 |
1 |
318 |
8 |
10111 |
1 |
358 |
7 |
10110 |
1 |
395 |
6 |
10101 |
1 |
429 |
5 |
10100 |
1 |
459 |
4 |
10011 |
1 |
488 |
3 |
10010 |
1 |
514 |
2 |
10001 |
1 |
539 |
1 |
10000 |
1 |
566 |
0 |
|
|
|
|
NOTES: 1. The I values are received, starting with bit 1.
2.It is possible for the decoder to receive the codeword 00000 because of transmission disturbances (e.g., line bit errors).
Table 17. Quantizer Output Levels for 32-Kbps ADPCM
I |
DQS |
DQLN |
IM |
0111 |
0 |
425 |
15 |
0110 |
0 |
373 |
14 |
0101 |
0 |
323 |
13 |
0100 |
0 |
273 |
12 |
0011 |
0 |
213 |
11 |
0010 |
0 |
135 |
10 |
0001 |
0 |
4 |
9 |
0000 |
0 |
–2048 |
8 |
1111 |
1 |
–2048 |
7 |
1110 |
1 |
4 |
6 |
1101 |
1 |
135 |
5 |
1100 |
1 |
213 |
4 |
1011 |
1 |
273 |
3 |
|
|
|
|
NOTES: 1. The I values are received, starting with bit 1.
2.It is possible for the decoder to receive the codeword 00000 because of transmission disturbances (e.g., line bit errors).
G.726 Adaptive Differential Pulse Code Modulation (ADPCM) on the TMS320C54x DSP |
43 |
SPRA118
I |
DQS |
DQLN |
IM |
1010 |
1 |
323 |
2 |
1001 |
1 |
373 |
1 |
1000 |
1 |
425 |
0 |
|
|
|
|
NOTES: 1. The I values are received, starting with bit 1.
2.It is possible for the decoder to receive the codeword 00000 because of transmission disturbances
(e.g., line bit errors).
Table 18. Quantizer Output Levels for 24-Kbps ADPCM
I |
DQS |
DQLN |
IM |
011 |
0 |
373 |
7 |
010 |
0 |
273 |
6 |
001 |
0 |
135 |
5 |
000 |
0 |
–2048 |
4 |
111 |
1 |
–2048 |
3 |
110 |
1 |
135 |
2 |
101 |
1 |
273 |
1 |
100 |
1 |
373 |
0 |
|
|
|
|
NOTES: 1. The I values are received, starting with bit 1.
2.It is possible for the decoder to receive the codeword 000 because of transmission disturbances (e.g., line bit errors).
Table 19. Quantizer Output Levels for 16-Kbps ADPCM
I |
DQS |
DQLN |
IM |
01 |
0 |
365 |
3 |
00 |
0 |
116 |
2 |
11 |
1 |
116 |
1 |
10 |
1 |
365 |
0 |
|
|
|
|
NOTE: The I values are received, starting with bit 1.
Table 20. Map Quantizer Output F|I| for 40-Kbps ADPCM
|I(k)| |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
F|I(k)| |
6 |
6 |
5 |
4 |
3 |
2 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 21. Map Quantizer Output F|I| for 32 Kbps ADPCM
|I(k)| |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
F|I(k)| |
7 |
3 |
1 |
1 |
1 |
0 |
0 |
0 |
|
|
|
|
|
|
|
|
|
44 G.726 Adaptive Differential Pulse Code Modulation (ADPCM) on the TMS320C54x DSP
SPRA118
|
|
|
|
Table 22. Map Quantizer Output for 24 Kbps ADPCM |
|
|
|
|
|||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|I(k)| |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
F|I(k)| |
7 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 23. Map Quantizer Output for 16 Kbps ADPCM |
|
|
|
|
|||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|I(k)| |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
F|I(k)| |
7 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 24. Quantizer Scale Factor Multipliers W|I| for 40 Kbps ADPCM |
|
|
||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|I| |
15 |
14 |
13 |
12 |
|
11 |
|
10 |
|
9 |
|
8 |
|
7 |
6 |
5 |
4 |
|
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
W|I| |
696 |
529 |
440 |
358 |
|
280 |
|
219 |
|
179 |
|
141 |
|
100 |
58 |
41 |
40 |
|
39 |
24 |
14 |
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 25. Quantizer Scale Factor Multipliers W|I| for 32 Kbps ADPCM |
|
|
||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|I| |
7 |
6 |
5 |
4 |
|
3 |
|
2 |
|
1 |
|
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
W|I| |
1122 |
355 |
198 |
112 |
|
64 |
|
41 |
|
18 |
|
–12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||
|
|
|
Table 26. Quantizer Scale Factor Multipliers W|I| for 24 Kbps ADPCM |
|
|
||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|I| |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
W|I| |
582 |
137 |
30 |
–4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||
|
|
|
Table 27. Quantizer Scale Factor Multipliers W|I| for 16 Kbps ADPCM |
|
|
||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|I| |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
W|I| |
439 |
–22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
G.726 Adaptive Differential Pulse Code Modulation (ADPCM) on the TMS320C54x DSP |
45 |