Vous êtes sur la page 1sur 17

MT8870 DTMF Decoder

The MT8870D/MT8870D-1 is a complete DTMF receiver integrating both the band split filter
and digital decoder functions. The filter section uses switched capacitor techniques for high and
low group filters; the decoder uses digital counting techniques to detect and decode all 16 DTMF
tone pairs into a 4-bit code. External component count is minimized by on chip provision of a
differential input amplifier, clock oscillator and latched three-state bus interface.

Features of MT8870
 Complete DTMF Receiver

 Low power consumption

 Internal gain setting amplifier

 Adjustable guard time

 Central office quality

 Power-down mode

 Inhibit mode

 Backward compatible with MT8870C/MT8870C-1

Applications of MT8870
 Receiver system for British Telecom (BT) or CEPT Spec (MT8870D-1)

 Paging systems

 Repeater systems/mobile radio

 Credit card systems

 Remote control

 Personal computers
DTMF Decoder Application Circuit and
Working Procedure

DTMF Decoder

In earlier days, our telephone systems were operated by manually in a telephone


exchange room. The callers will pick up the phone and giving instruction to the
operator to connect their destination line. The DTMF technology provides ultimate
solutions for the telephone industries which is used to switch two lines automatically.
The DTMF stands for ‘Dual Tone Multi-frequency’ which is one of the techniques for
converting the analogue signal to digital using DTMF decoder. The DTMF decoder
circuit mostly used in mobile communications system which recognizes the sequence
of DTMF tones from the standard keypad of the mobile phone.

DTMF Decoder Application Circuit and Working


Procedure
DTMF keypad is placed out on a 4 cross 4 matrices, in which each row represents low
frequency, each column represents high frequency, with DTMF, each key passed on
a phone generates two tones of the specific frequencies one tone is generated from
a high frequency tones and low frequency tone. These tones are converted to digital
form using DTMF decoder circuit. These codes are the address of the destination
which is read and preceded by the computer that connects the caller to the destination.
The DTMF decoder circuit used in many electronics projects for better connectivity to
control the applications.

DTMF Decoder based Home Automation System and its Working Procedure

In previous days, the home applications are controlled by manually using switches.
Now a day, many technologies are available to control home appliances. This project
mainly discusses DTMF decoder circuit to control the home applications. The working
procedure of this project is just like dialing a customer care number using DTMF
technology by following automatic voice recorded instructions. It will ask to press 1,2
or any other number when you press number to your mobile one particular procedure
is happening. This is called a DTMF technology. If any button is pressed on the mobile
phone keypad, then it will generate two frequencies. These tones are called row are
column frequencies. Normally row frequencies are low frequencies and column
frequencies are high frequencies. These column frequencies are slightly louder than
the row frequencies to compensate for the high-frequency roll off of voice audio
systems.

DTMF Decoder based Home Automation System

The main objective of this project is to control the home applications like light, electric
fan or some electronic gadgets by using DTMF techniques. DTMF encoder is present
in mobile and the DTMF decoder circuit is present in the microcontroller. The mobile
is connected at one end of the circuit with the help of the mobile phone jack. The
mobile jack is consisting of two wires. The red wire is connected to the decoder IC and
Black is grounded. When a button is pressed from mobile it generates a tone which is
decoded by the decoder IC and it’s sent to the micro controller. The controller checks
the inputs and delivers the respective outputs according to the code written on it.

Pin Architecture and Circuit Explanation of DTMF

The decoder IC is an electronics circuit which is consisting of an inbuilt op-amp and to


separate low and high frequencies, the output of an operational amplifier is given to
the pre-filters. And it passed though the code detector and frequency circuits. The tone
which is generated from the mobile is sent through a capacitor and the resistor of the
DTMF.
Pin Architecture and Circuit Explanation of DTMF

 pin1 is a non inverting pin, which is connected to the pin 4.


 Pin3 is the output of the operational amplifier, which is feedback to the pin 2.
 The pin 7 and pin 8 is connected to the crystal oscillator of both pins.
 Pin 15 is the data interconnection pin.
 The procedure of the signal from the frequency detection to digitalization, is
done steering circuit that consists of resistor, capacitors, receiver and
transmitter and etc.
 11, 12 pins are output pins that are connected DTMF pins. Then DTMFis
connected to relay.
 Relay output is connected pb0 and pb3 pins of microcontrollers.
 PD0, PD1 are output pins of controller that are connected to the relays.
 Relay output is connected to the load.

Automatic Garage Door Opening System

The main goal of this project is to design an automatic door locking and unlocking
system using a mobile phone over long distances. This method is very convenient as
it reduces the energy to get down from the car to open/close the gate physically.
Nowadays opening and closing of garage doors in the homes, hospitals and other
places involves human work. With this proposed system, the opening and closing of a
garage door can be achieved by using a mobile phone with the unique password
entered through the keypad of the phone.
Automatic Garage Door Opening System

If any button is pressed to generate a respective tone on the user phone, the same
tone will be heard at the other end of the cell attached to the circuit to operate the door.
This tone is called ‘Dual Tone Multi Frequency’ (DTMF) tone. The received tone is
processed by the 8051 microcontroller with the help of the DTMF decoder. If this
decoded value (password entered by the user) matches with the stored password in
the microcontroller, then the microcontroller initiates a mechanism to the door opening
system through a motor driver.

DTMF Decoder
EE066

Group all Htabs Electronics


 Summary(active tab)
 Description
 Circuit Diagram
 Components
 Step-By-Step
 Software Development Tools
By:

Himanshu Choudhary

DTMF (Dual tone multiple frequency) is the most popular and nowadays ubiquitously
used telecommunication signalling method. A DTMF decoder detects the DTMF tones
and generates the binary sequence corresponding to key pressed in a DTMF keypad.
The circuit of this project presented here is a DTMF decoder. DTMF keypads are used
in almost all landline and mobile handsets. The DTMF decoders, therefore, are used
at the telephone switching centres to detect the number dialled by the caller.
The DTMF version used in pushbutton telephones is called touch tone and is a
registered trademark of AT&T.

DTMF Decoder
EE066

Group all Htabs Electronics


 Summary
 Description(active tab)
 Circuit Diagram
 Components
 Step-By-Step
 Software Development Tools
By:

Himanshu Choudhary

DTMF (Dual tone multiple frequency) is the most popular and nowadays ubiquitously
used telecommunication signalling method. A DTMF decoder detects the DTMF tones
and generates the binary sequence corresponding to key pressed in a DTMF keypad.
The circuit of this project presented here is a DTMF decoder. DTMF keypads are used
in almost all landline and mobile handsets. The DTMF decoders, therefore, are used
at the telephone switching centres to detect the number dialled by the caller.
The DTMF version used in pushbutton telephones is called touch tone and is a
registered trademark of AT&T.

The circuit of this project uses a DTMF decoder IC (HT9170). The DTMF tones are
generated by the keypad of a cell phone or by the computer software available
on www.polar-electric.com.

The tones generated from the speaker (audio signals) of keypad are given to
microphone which converts audio tones into electrical signals. The signals from the
microphone are processed by the DTMF decoder IC which generates the equivalent
binary sequence as a parallel output.
The electrical signals from microphone (mic) are fed to inverting output (pin2; VN) of
Op-amp, present in IC, through a series of resistance and capacitance of value 100 k
and 0.1 µF respectively. The non-inverting input pin (pin1; VP) of Op-amp is
connected to pin4 (VREF). The voltage at VREF pin is VDD/2. A feedback signal is provided,
by connecting the output of Op-amp (pin3; GS) to inverting input pin (pin2; VN) through
a resistor R2 (100 k ).

The output of Op-amp is passed through a pre filter. The output from this pre filter is
then supplied to low group and high group filters. These filters consist of switched
capacitors and divide DTMF tones into low and high group signals. High group filters
pass the high frequencies while low group filter pass low frequencies. These
frequencies are then passed through frequency detector and code detector circuits.
Finally the four-digit code is latched on the output pins of HT9170. The output on these
pins has been used to drive a set of four LEDs.

The whole process, from frequency detection to latching of the data, is controlled by
steering control circuit. So it is very important part of the whole process and is mainly
controlled by RT/GT and DV pins of DTMF decoder IC. RT/GT pin is connected to
VDD through a capacitor of 0.1 µF. The EST pin is connected to RT/GT pin through a
resistor of 300k .

Pin6, PWDN pin (active high) inhibits the working of oscillator thereby stopping the
working of circuit; and Pin5, INH pin (active high) inhibits detection of the tones of
character A,B,C,D. The pin 10; OE (output enable; active high) enables the latching of
the data on the data pins. Pin15; DV (Data valid pin) becomes high on detection of
valid DTMF tone otherwise it remains low. An oscillator of frequency 3.579545 MHz is
connected between pins 7 and 8.
http://www.electronicwings.com/sensors-modules/mt8870-dtmf-decoder

ExploreSensors & ModulesMT8870 DTMF Decoder

MT8870 DTMF Decoder

Introduction

 DTMF (Dual Tone Multi-Frequency) signaling is used for telecommunication signaling over
telephone line in the voice frequency band between communication devices (telephone, mobile).
 It is a set of eight audio frequencies transmitted/received in pairs to represent 16 different signals.
 The Telephone keypad is 4x4 or 4x3 matrix of push buttons in which rows represents lower
frequency component and columns represents higher frequency component which is mapped as
follows.

Table1: Telephone Keypad Tone Frequencies

FL\FH 1209Hz 1336Hz 1477Hz 1633Hz

697Hz 1 2 3 A

770Hz 4 5 6 B

852Hz 7 8 9 C

941Hz * 0 # D

 For each column and row unique frequency is assigned. No frequency is multiple of other.
 Pressing a key sends a combination of the two sine frequencies corresponding to row and column.

DTMF Encoding

 Each DTMF tone must contain one sinusoid from high frequency group (1209, 1336, 1477, 1633)
and one sinusoid from the low frequency group (697, 770, 852, 941).
 When a key is pressed, combination of low and high frequency is sent.
 E.g. When key ‘5’ is pressed, superimposition of tones (frequencies) 770 Hz and 1336 Hz produces
a tone.
 Each key pressed can be represented as a discrete time signal of form as given below,

Dt[n] = A*sin (2 * pi * FH * n) + A*sin (2 * pi * FL * n), 0≤n≤N-1

Where,

A – Amplitude
N – Number of samples

n – sampling frequency (8 kHz)

DTMF Decoding

 DTMF receiver decodes dial tone and identifies which key is pressed by the user.
 The input to the decoder is a DTMF tone that is generated by DTMF encoder.
 Decoder has Band split filter (FIR) which is centered at the frequencies of interest for decoding
each key pressed.
 Band split filter section separates lower frequency tone and higher frequency tone and provides it
to digital decoder section
 Digital decoder verifies the frequency and duration of received tones and provides4-bit output.

For more detail, you can refer attached DTMF Encoding and Decoding file.

There are various DTMF decoders available in market such as MT8870, HT9170 etc. Out of those,
MT8870 information is given below.

MT8870 Decoder

 MT8870 is a DTMF receiver which consists of a bandsplit filter section along with digital decoder
section.
 The output of DTMF receiver is 4-bit digital, which is used to identify the total 16 combinations of
the input as shown in below table.

Table2: Tone Decoding

DIGIT Q4 Q3 Q2 Q1

1 0 0 0 1

2 0 0 1 0

3 0 0 1 1

4 0 1 0 0

5 0 1 0 1

6 0 1 1 0

7 0 1 1 1

8 1 0 0 0
9 1 0 0 1

0 1 0 1 0

* 1 0 1 1

# 1 1 0 0

A 1 1 0 1

B 1 1 1 0

C 1 1 1 1

D 0 0 0 0

ANY Z Z Z Z

Where, Z= High Impedance.

 In most cellphones, there is only a 4 rows x 3 columns matrix keypad available i.e. only 12 tones
are possible of total 16 tones.
 DTMF technique is widely used in telecom exchange room to transmit a character on telephone
line for giving instruction to the operator. Also, it is used in many applications to control the devices
remotely.

Basic connection of MT8870 (DTMF)

The basic connection diagram of the MT8870 (DTMF) IC is shown in figure below.
Note: DTMF Input – Connect Audio cable from mobile to DTMF inputwith respect to ground.

Power-down and Inhibit Mode (PWDN & INH)

 A logic high applied to pin 6 (PWDN) will power down the device to minimize the power
consumption in a standby mode. It stops the oscillator and the functions of the filters.
 Inhibit mode is enabled by a logic high input to the pin 5 (INH). It inhibits the detection of tones
representing characters A, B, C and D. The output code will remain the same as the previous
detected code.

Delayed Steering Output (StD)

 StD output presents high whenever there is new tone pair registered and updated on output latch.
 This pin is used as signal for new tone receive.

Testing MT8870 DTMF Output


Before interfacing MT8870 DTMF module/IC with any microcontroller, we can check the output
by connecting 4 LEDs on Q4:Q1 pin and do the connection as shown in above basic connection
diagram.

1. Connect Audio jack of mobile to the DTMF input.

2. Press any dial tone key. (Check keypad tone setting for whether it is muted and set it on 100%
volume)

3. And verify above respective combination of LEDs from above table.

E.g. When key ‘1’ is pressed then LED on Q1 pin will glow and other LEDs will remain OFF.

Here, testing of MT8870 DTMF module is as shown below,

Examples of MT8870 DTMF Decoder interfacing

MT8870 DTMF Interfacing with 8051

Introduction

 DTMF (Dual Tone Multi-Frequency) is telecommunication signaling technique that uses a


mixture of two pure tones (pure sine waves) sounds. It is used in phones to generate dial tones.
 Whenever a key is pressed, a combination of 2 sine waves (one of lower frequency and one of
higher frequency) is transmitted. There are 8 different frequencies, 4 from higher frequency range
and 4 from lower frequency range. This gives us 16 different combinations of lower and higher
frequencies to transmit for 16 keys.
 MT8870 is a DTMF decoder; it helps decodes the key pressed.
 It consists of bandsplit filter section that helps separate the input signal into a lower frequency
and a higher frequency and in turn helps identify the key pressed.
 It gives a 4-bit digital output. This gives 16 possible outputs for 16 different keys.
 Microcontroller can read these 4 bits to detect which key has been pressed.

For more information about MT8870 DTMF decoder and how to use it, refer the topic MT8870
DTMF Decoder in the sensors and modules section.

Interfacing diagram
DTMF Decoder Interfacing with 8051

Example
Here, we are going to interface MT8870 DTMF receiver/decoder module to 8051 which will
receive key pressed input from cellphone keypad and display that decoded key on LCD16x2
display.

Programming for DTMF


/*
* Interfacing DTMF with 8051
* http://www.electronicwings.com
*/

#include<stdio.h>
#include<reg52.h>
#include<LCD_16x2_8-bit_Header_File.h>

#define DTMF_Input_Read P2

void External_Interrupt_Init();

volatile char Key_detect; /* flag to check Tone is received or n


ot */

void main()
{
unsigned char DTMF_Key; /* variable to store detected key */
LCD_Init();
LCD_Clear();
DTMF_Input_Read = 0xff; /* set port as input */
LCD_String_xy(0,0,"DTMF Key:");
External_Interrupt_Init();
Key_detect = 0;
while(1)
{
MSdelay(1);

if(Key_detect) /* Key_detect = 1 indicates Tone


Received*/
{
Key_detect = 0;
LCD_Command(0xc0);
DTMF_Key = 0;
DTMF_Key = (DTMF_Input_Read & 0x0f);
switch(DTMF_Key) /* detect received key*/
{
case 0x01: LCD_Char('1');
break;
case 0x02: LCD_Char('2');
break;
case 0x03: LCD_Char('3');
break;
case 0x04: LCD_Char('4');
break;
case 0x05: LCD_Char('5');
break;
case 0x06: LCD_Char('6');
break;
case 0x07: LCD_Char('7');
break;
case 0x08: LCD_Char('8');
break;
case 0x09: LCD_Char('9');
break;
case 0x0A: LCD_Char('0');
break;
case 0x0B: LCD_Char('*');
break;
case 0x0C: LCD_Char('#');
break;
}
}
}
}
void External_Interrupt_Init()
{
EA = 1; /* Enable global interrupt */
EX0 = 1; /* Enable Ext. interrupt0 */

IT0 = 1; /* Select Ext. interrupt0 on falling edge */

}
/* ISR is used to check tone is received or not */

void External0_ISR() interrupt 0


{
Key_detect = 1; /* Toggle pin on falling edge on INT0 pin */
}

Vous aimerez peut-être aussi