Sei sulla pagina 1di 17

From MATLAB and Simulink to Real Time with TI DSPs

Dual Tone Multi Frequency (DTMF)


Content developed in partnership with Tel-Aviv University

2007 Texas Instruments Inc,

0-1

DTMF Signals
The DTMF is a popular signaling method between telephones and switching centers

DTMF is also used for signaling between the Telephone network and computer networks
The DTMF signals are Transmitted over a telephone line Uses speech frequency signals DTMF signals are the superposition of 2 sine waves with different frequencies
2007 Texas Instruments Inc, Slide 2

The DTMF Keypad


1209 Hz 1336 Hz 1477 Hz 697 Hz 770 Hz 852 Hz 941 Hz
2007 Texas Instruments Inc,

1 4 7

2 5 8

3 6 9

#
Slide 3

DTMF Digits

2007 Texas Instruments Inc,

Slide 4

DTMF Generation
697 Hz 770 Hz

Row Selector

852 Hz

Desired Digit

941 Hz

+
1209 Hz

Dual Tone

Column Selector

1336 Hz 1477 Hz

2007 Texas Instruments Inc,

Slide 5

DTMF Detection
Leading Edge Detection

Enable

x[n]

Frequency Detection

Convert to Display
Display

2007 Texas Instruments Inc,

Slide 6

Frequency Detection
Row Calculation
697 Hz 770 Hz

852 Hz 941 Hz

Digit Calculation

x[n]

Calculated Digit

Column Calculation
1209 Hz 1336 Hz

1477 Hz
2007 Texas Instruments Inc,

Slide 7

Simulation (cont.)
Selecting Digits for transmission

2007 Texas Instruments Inc,

Slide 8

Simulation (cont.)
Detected Digits

2007 Texas Instruments Inc,

Slide 9

Simulation (cont.)
The Receiver Performs:

sensing

Edge Detected

Signal Rcv
samples

Buffer Digit

New Digit

Detect Digit

2007 Texas Instruments Inc,

Slide 10

Simulation (cont.)
Digit Detection: transforms signal received to digit using the following detection blocks:
X1 XN

Detect 852 Hz

Detect 941 Hz

Detect 1209 Hz

Detect 697 Hz Detect 770 Hz

1 4 7 *

2 5 8 0

3 6 9 #
Slide 11

X1 XN
Detect 852 Hz Detect 941 Hz
2007 Texas Instruments Inc,

Simulation (cont.)
Detection block operation:
Input: X1XN signal samples

Output: flag to indicate whether the signal has a correlation with the frequency under detection or not
Implementation:
Band Pass around the frequency under detection

Average the absolute value of the BPF output


Comparing the average to an agreed threshold Flag is up the average is greater than the threshold

Detect fb

X1XN

BPF (fb-eps , fb+eps)

1 N

k 1

Threshold Test

flag

2007 Texas Instruments Inc,

Slide 12

Real-Time Environment
Based on the Simulation model R-T Implementation involves detecting the digits only The R-T Simulation involves a few modification to support the interface with the transmitter

2007 Texas Instruments Inc,

Slide 13

Real-Time Environment (cont.)


PC
MATLAB: DTMF transmission
GUI
PC (Sound Card)

rtdx
DTMF

Detected Digits

Line In

x t

A/D

DTMF Receiver

TMS320C6713
DSK6713

2007 Texas Instruments Inc,

Slide 14

Real Time Environment (cont.)


The DTMF signal is processed in order to overcome DC offset and to make amplitude modifications:

2007 Texas Instruments Inc,

Slide 15

GUI Functionality
Load the DSK Initialize RTDX Create DTMF samples Transmit them to PC Sound Card Display Dialed and Dtected Digits for comparison

2007 Texas Instruments Inc,

Slide 16

The System
Transmitted Digit GUI

Sound Card

USB

Reported Digit (RTDX)

2007 Texas Instruments Inc,

Slide 17

Potrebbero piacerti anche