DTMFOUT Pin,{Onms,Offms,}[Tone{,Tone...}] Produce DTMF touch Tone sequence on Pin. Pin is automatically made an output. Pin may be a constant, 0-15, or a variable that contains a number 0-15 (e.g. B0) or a pin name (e.g. PORTA.0).
Onms is the number of milliseconds to sound each tone and Offms is the number of milliseconds to pause between each tone. If they are not specified, Onms defaults to 200ms and Offms defaults to 50ms.
Tones are numbered 0-15. Tones 0-9 are the same as on a telephone keypad. Tone 10 is the * key, Tone 11 is the # key and Tones 12-15 correspond to the extended keys A-D.
DTMFOUT uses FREQOUT to generate the dual tones. FREQOUT generates tones using a form of pulse width modulation. The raw data coming out of the pin looks pretty scary. Some kind of filter is usually necessary to smooth the signal to a sine wave get rid of some of the harmonics that are generated: