0% found this document useful (1 vote)
147 views2 pages

Lab 7 DTMF Tone Generation and Detection Using Goertzel Algorithm Objectives

This document discusses generating and detecting dual-tone multi-frequency (DTMF) tones using the Goertzel algorithm in MATLAB. It describes: 1) Generating DTMF tones by using two digital filters in parallel with an impulse sequence input to model the tones for each key. 2) Detecting DTMF tones using a Goertzel filter for each tone frequency, calculating the spectral value at each frequency, and comparing values to a threshold to decode the pressed key. 3) The procedures involve writing MATLAB programs to generate each DTMF tone according to specifications, and to perform detection by processing an input tone and displaying the detected key.

Uploaded by

Malik Muchamad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
147 views2 pages

Lab 7 DTMF Tone Generation and Detection Using Goertzel Algorithm Objectives

This document discusses generating and detecting dual-tone multi-frequency (DTMF) tones using the Goertzel algorithm in MATLAB. It describes: 1) Generating DTMF tones by using two digital filters in parallel with an impulse sequence input to model the tones for each key. 2) Detecting DTMF tones using a Goertzel filter for each tone frequency, calculating the spectral value at each frequency, and comparing values to a threshold to decode the pressed key. 3) The procedures involve writing MATLAB programs to generate each DTMF tone according to specifications, and to perform detection by processing an input tone and displaying the detected key.

Uploaded by

Malik Muchamad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MATLAB

Lab 7 DTMF Tone Generation and Detection Using Goertzel Algorithm


OBJECTIVES
1. To learn how to generate DTMF tones
2. To learn how to perform DTMF detection using the Goertzel algorithm.
PROCEDURE:
Part A: DTMF Tone Generation
The DTMF tone generator uses two digital filters in parallel each using the impulse sequence as an input.
The filter for the DTMF tone for key 7 is depicted below.

L 2 852 / f s
H L ( z)

z sin L
z 2 z cos L 1
2

DTMF Tone

( n)

y7 ( n )
7

z sin H
H H ( z) 2
z 2 z cos H 1
H 2 1209 / f s
Figure 1. Digital DTMF tone generator for the digit 7.

The industry standard frequency specifications for all the keys are listed in Figure 2.

1209 Hz 1336 Hz 1477 Hz

697 Hz

770 Hz

852 Hz

941 Hz

Figure 2 DTMF tone specifications.

MATLAB

According to the DTMF tone specification, develop the MATLAB program that will be able to generate
each tone.
Part B: DTMF detection
The DTMF detection relies on the Geortzel algorithm (Geortzel filter). The main purpose of using the
Goertzel filters is to calculate the spectral value at the specified frequency index using the filtering method.
Its advantage includes the reduction of the required computations and avoidance of complex algebra. The
seven modified Goertzel filters are implemented in parallel shown in Figure 3. As shown in Figure 3, the
output from each Goertzel filter is fed to its detector to compute its spectral value, which is given by
m Ak

2
205

X (k )

Each calculated spectral value m is compared to a specified threshold value. If the detected value m is
larger than the threshold value, the logic operation outputs the logic 1 otherwise it outputs the logic 0. Then
the logic operation at the last stage is to decode the key information based on the 7-bit binary pattern.

H18 ( z )
H20 ( z )

x ( n ) y7 ( n )
DTMF Tone

H22 ( z )
H24 ( z )
H31 ( z )
H34 ( z )
H38 ( z )

v18 (n)
v20 (n)
v22 (n)

v24 (n)
v31 (n)
v34 (n)
v38 (n)

A18

logic

A20

logic

A22

logic

0
0
1
0

A24

logic

A31

logic

A34

logic

logic

1
0
0

A38

logic

Threshold
( A18 A20 A22 A24 A31 A34 A38 ) / 4
Figure 3 DTMF tone detector.

Write a MATLAB program to perform detection and display each detected key on the screen.

You might also like