Académique Documents
Professionnel Documents
Culture Documents
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
Power-down mode
Inhibit mode
Applications of MT8870
Receiver system for British Telecom (BT) or CEPT Spec (MT8870D-1)
Paging systems
Remote control
Personal computers
DTMF Decoder Application Circuit and
Working Procedure
DTMF Decoder
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.
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.
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
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
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
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.
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,
Where,
A – Amplitude
N – Number of samples
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.
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
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.
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.
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.
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.
2. Press any dial tone key. (Check keypad tone setting for whether it is muted and set it on 100%
volume)
E.g. When key ‘1’ is pressed then LED on Q1 pin will glow and other LEDs will remain OFF.
Introduction
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.
#include<stdio.h>
#include<reg52.h>
#include<LCD_16x2_8-bit_Header_File.h>
#define DTMF_Input_Read P2
void External_Interrupt_Init();
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);
}
/* ISR is used to check tone is received or not */