Keil Logo

STM32 Verifying DTMF Algorithms

The DTMF project implements a DTMF detection algoritm for the STMicroelectronics STM32F103RB device.

The project contains three targets:

  • Simulator for verification in the uVision simulator
  • AutoTest for autmatic testing in the uVision simulator
  • MCBSTM32 Flash for Flash Downloading and Target test

Generate DTMF Inputs

The Simulator target uses signal functions (defined in the debugger init file Debugger.INI) to generate various DTMF signal patters. The signal function can be invoked with various parameters using the Toolbox buttons.

Review DTMF Input

Use View - Logic Analyzer Window to see the DTMF input that is generated on the ADC1 input of the STM32F103RB device.


Verify Code Execution

Applications require today a high-level of program verification and algorithm testing. With View - Code Coverage Window you may check that all paths of DTMF algorithm are executed. This is useful during program verification and  helps you even to identify redundant code in a program.

You may select the module that you want to verify. When you execute the various test DTMF patterns from the Toolbox, you will see that most of the algorithm is executed. You may open Editor or Disassembly windows to view the Code Coverage recording in detail.

Automated Testing

he AutoTest target can be invoked with the batch file AutoTest.BAT which starts the debug mode of uVision.  The debugger init file AutoTest.INI executes automatically the DTMF signal functions and creates a log file of the program execution.

Thursday, February 12, 2009
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.