Generating DTMF from a PIC
Hi ultramegaok
I have done a lot of development accessing the PSTN using Pics and PBP Pro
First of all, the DTMF tones out of a PIC are dreadful as produced on the pin - you need to clean them up with an active low pass filter. This will remove all t he nasty higher order stuff that clogs it and will produce a pretty good DTMF waveform. Using a single opamp 2nd order filter, I was able to shape and send tones without problems, and have them accepted at destination. And yes, clock at 20Mhz minimum to make the waveforms acceptable
Eish! (as we say in South Africa before the World Cup). You need an audio transformer and what is called an "active Gyrator" with a single transistor to match to a PSTN line. Will gladly send design tips
You want to receive DTMF with a PIC? Good luck. It's vastly more complicated, so rather use an industry standard IC like the MT8870 decoder IC. The Microchip website has an application note that decodes DTMF, but it looks like complicated software
Will gladly send u the details on the low pass filter if that interests you.
regards
Angus Anderson
KwaZulu Natal, South Africa