You are on page 1of 10

Touch Tone Dial Telephone

Touch Dial Arrangement


Touch tone receive scheme
clc
clear
fr = [697 770 852 941];
fc = [1209 1336 1477];
s=input('')
switch s
   case '*', k = 4; j = 1;
   case '0', k = 4; j = 2;
   case '#', k = 4; j = 3;
   otherwise,
      d = s-'0'; j = mod(d-1,3)+1; k = (d-j)/3+1;
end
Fs = 32768;
t = 0:1/Fs:0.25;
y1 = sin(2*pi*fr(k)*t);
y2 = sin(2*pi*fc(j)*t);
y = (y1 + y2)/2;
sound(y,Fs)
plot(t,y1)
Principles of Crossbar Switching

You might also like