Go Down

Topic: interfacing dtmf with atmega644p (Read 805 times) previous topic - next topic

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

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

Terry King

Which DTMF decoder chip are you using???

Usually they present 4 bits of data and a "Data Valid" bit...
Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com


Which DTMF decoder chip are you using???

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

ht9170b

Terry King

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..

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

bHogan

I have code for DTMF receive (with interrupt) and transmit on my blog . . .
http://brohogan.blogspot.com/search/label/Telephone%20Interface
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll

AWOL

Someone here:
http://arduino.cc/forum/index.php/topic,56605.0.html
with a similar problem.
"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.

floresta

#7
Mar 28, 2011, 05:07 am Last Edit: Mar 28, 2011, 05:11 am by floresta Reason: 1
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

Go Up