Categories

Dual-tone multi-frequency signal generator and detector

Posted on Wednesday, July 4th, 2012 in code by DP

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 on Wednesday, July 4th, 2012 at 7:00 pm and is filed under code. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

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

Recent Comments

  • Daniel: Do I comment here or on FB?
  • Craig B: Shouldn't the default be 00xxx010? Note that bit 0 appears out of order in the documentation. In that case I think the initial value is...
  • JJM: From the datasheet extract you are showing, the power up status should be 00xxx010, not 000xxx01. Bit numbering is misleading since 'measurement resolution' is apparently...
  • Jan Ciger (@janoc200): Hmm, that could actually explain why the three sensor IMU breakout I have bought a few years ago had all sorts of issues - I...
  • Travis: Is it preset to the windows 3 fingered salute?