Dual-tone multi-frequency signal generator and detector

in code by DP | 0 comments

Robots wrote a open source Dual-Tone Multi-Frequency signal generator and detector for his STM32 based development board. The code is available via github.

DTMF generator is based on AVR314 appnote, and the detector is my practice in signal processing using “Goertzel algorithm”. Everything is written for integer/fixedpoint arithmetics. (no floats at all)…

Generator generates signal using PWM, by changing the duty cycle each period. Two sine signals (low and high) are generated using LUT and mixed before feeding into the PWM.

Detection is done by using 8 simultaneous signal detectors. One for each frequency in dtmf. After 205samples energie of each frequency is calculated and peak detected.

This entry was posted in code and tagged , , .

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.