You are on page 1of 3

6: STUDY OF DTMF SPECTROGRAM USING MATLAB AIM- To study the DTMF spectrogram using Matlab. APPARATUS- MATLAB 7.5.

0 (R2007b) THEORYThe abbreviation DTMF stands for Dual Tone Multi Frequency, Dual-tone multifrequency (DTMF) signaling is astandard in telecommunication systems . DTMF detection is used to detect DTMF signals in the presence of speech and dialing tone pulses. Besides being used to set up regular calls on a telephone line, DTMF detection is suitable for computer applications such as voice mail and electronic mail, and telephone control features such as conference calling and call forwarding. A DTMF signal consists of the sum of two sinusoids with frequencies taken from two mutually exclusive groups. These frequencies were chosen to prevent any harmonics from being incorrectly detected by the receiver as some other DTMF frequency
DTMF Keypad Frequencies (with sound clips) 1 4 7 * 1209 Hz 2 5 8 0 1336 Hz 3 6 9 # 1477 Hz 697 Hz 770 Hz 852 Hz 941 Hz

PROCEDURE1. 2. 3. 4. 5. Open MATLAB Open new M file Type the program code Save, Compile and run the program See the output on command window or figure window

PROGRAMsymbol = {'1','2','3','4','5','6','7','8','9','*','0','#'}; lfg = [697 770 852 941]; % Low frequency group hfg = [1209 1336 1477]; % High frequency group f = []; for c=1:4, for r=1:3, f = [ f [lfg(c);hfg(r)] ]; end end f' Fs = 8000; % Sampling frequency 8 kHz N = 800; % Tones of 100 ms t = (0:N-1)/Fs; % 800 samples at Fs pit = 2*pi*t; tones = zeros(N,size(f,2)); for toneChoice=1:12, % Generate tone tones(:,toneChoice) = sum(sin(f(:,toneChoice)*pit))'; % Plot tone subplot(4,3,toneChoice),plot(t*1e3,tones(:,toneChoice)); title(['Symbol "', symbol{toneChoice}]) set(gca, 'Xlim', [0 35]); ylabel('Amplitude'); if toneChoice>9, xlabel('Time (s)'); end end

DTMF SPECTROGRAM-

RESULT- DTMF spectrogram using MATLAB was studied. PRECAUTIONS:

1) Programs must be written carefully. 2) Plot the figures carefully.

You might also like