Pages: [1]   Go Down
Author Topic: interfacing dtmf with atmega644p  (Read 634 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

how do i interface a dtmf decoder with an atmega644p...???wat does the PIND command do???
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Also i need to use the dtmf signal as interrupt..can it be done???
 
Logged

Red Sea, Saudi Arabia
Offline Offline
God Member
*****
Karma: 11
Posts: 579
..On The Red Sea
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Which DTMF decoder chip are you using???

Usually they present 4 bits of data and a "Data Valid" bit...
Logged

Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which DTMF decoder chip are you using???

Usually they present 4 bits of data and a "Data Valid" bit...
ht9170b
Logged

Red Sea, Saudi Arabia
Offline Offline
God Member
*****
Karma: 11
Posts: 579
..On The Red Sea
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, use the application Circuit on Page 11. http://www.futurlec.com/Others/HT9170B.shtml

D0..D3 are 4 pins to digital inputs.

DV (Data Valid) can be polled or you could use it as an interrupt...

The table of 4-bit values and DTMF codes are on page 10..

Logged

Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com

Denver
Offline Offline
God Member
*****
Karma: 19
Posts: 778
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have code for DTMF receive (with interrupt) and transmit on my blog . . .
http://brohogan.blogspot.com/search/label/Telephone%20Interface
Logged

"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24361
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Someone here:
http://arduino.cc/forum/index.php/topic,56605.0.html
with a similar problem.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 25
Posts: 4111
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
w(h)at does the PIND command do???
PIND is the microprocessor register that is used to read the data that some external device (your DTMF decoder) has put on the microcessor pins corresponding to Port D.  

PIND must therefore be an Arduino command to read that information and one would expect to find an explanation/example in the 'Port Manipulation' information at http://www.arduino.cc/en/Reference/PortManipulation.  I couldn't find either one.


Using the 'Data Valid' signal to trigger an interrupt and using Port Manipulation to read the DTMF information is about as straightforward as you can get when it comes to your interfacing project.

Don
« Last Edit: March 27, 2011, 10:11:34 pm by floresta » Logged

Pages: [1]   Go Up
Jump to: