
W9320
- 32 -
11.2 Tone Frequency Coefficient Calculation
The tone frequency coefficient is calculated by the function "cos(2*PI*f/8000 radian)" where PI =
3.14159, and f is frequency (Hz). The number will then be converted into a 12-bit coefficient whose
MSB is the sign and whose remaining 11 bits are the fractional part found by multiplying by 2048 and
rounding off the number. For example, if the frequency is 1209 Hz, the frequency number is as
followed.
Cos (2*3.14159*1209/8000) = 0.582053
The converted binary number is 010010101000 and the hex number 4A8, where BR4 = 4 and BR5 =
A8.
11.3 Tone Attenuation Coefficient Calculation
The tone attenuation coefficient is calculated by the function "x/1.13 Vp" where x is the amplitude
(Vp). The number will be converted into a 12-bit coefficient whose MSB is the sign and whose
remaining 11 bits are the fractional part, found by multiplying by 2048 and rounding off the number.
For example, if the attenuation is -14 dBm (600
) Hz, first change the dBm units into Vp format as
follows.
sqrt[10*exp(-14/10)*600*0.001] * sqrt(2) = 0.218570 Vp
The attenuation is "0.218570/1.13 = 0.193425" the binary number is 000110001100 and the hex
number is 18C where BR4 = 1 and BR5 = 8C.
11.4 Frequency Coefficients for the DTMF Signal
Table 11-1 shows the 12-bit frequency coefficients for the DTMF signal. The 8 least significant bits
are stored in BR4(b7:b0), the 4 most significant bits are stored in BR5(b3:b0). Table 11-2 illustrates
the 12-bit attenuation coefficients for the DTMF signal such as -9 dBm (600
) or -6 dBm (600
) for
column tone and -11 dBm (600
) or -8 dBm (600
) for row tone.
FREQENCY (HZ)
697
770
852
941
1209
1336
1477
1633
BR5 (HEX)
6
6
6
5
4
3
3
2
BR4 (HEX)
D5
95
46
EA
A8
FC
32
46
Table 11-1 Frequency Coefficients for the DTMF Signal
ATTENUATION (DBM@600
-11
PEAK VALUE (VP)
0.308738
0.388679
0.436105
0.549023
BR5 (HEX)
2
2
3
3
BR4 (HEX)
30
C0
16
E3
-9
-8
-6
Table 11-2 Attenuation Coefficients for the DTMF Signal