TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (385 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139845 times)
  2. FAT32 Library (72209 times)
  3. Network Ethernet Library (57392 times)
  4. USB Device Library (47740 times)
  5. Network WiFi Library (43364 times)
  6. FT800 Library (42700 times)
  7. GSM click (29980 times)
  8. mikroSDK (28440 times)
  9. PID Library (26989 times)
  10. microSD click (26398 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

DTMF Generator click

Rating:

5

Author: MIKROE

Last Updated: 2020-10-28

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Signal processing

Downloaded: 2263 times

Not followed.

License: MIT license  

DTMF Generator Click is a compact add-on board that generates DTMF (Dual-Tone Multi-Frequency) signals designed for MCU interfaces. This board features the HT9200A, a dual-tone multi-frequency decoder mostly used in mobile communications systems from Holtek Semiconductor Inc.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "DTMF Generator click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "DTMF Generator click" changes.

Do you want to report abuse regarding "DTMF Generator click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

DTMF Generator Click

DTMF Generator Click

Native view of the DTMF Generator Click board.

View full image
DTMF Generator Click

DTMF Generator Click

Front and back view of the DTMF Generator Click board.

View full image

Library Description

The library covers all the necessary functions to control DTMF Generator board.

Key functions:

  • void dtmfgenerator_power_on ( void ) - Power ON function.
  • void dtmfgenerator_transmit_signal ( uint8_t *digits, uint16_t delay_m_s ) - Transmit a DTMF signal function.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes GPIO and start to write log.
  • Application Initialization - Initialization driver enables - GPIO, run the power-on sequence, also write log.
  • Application Task - (code snippet) This is an example which demonstrates the use of DTMF Generator Click board. DTMF Generator click board DTMF generator transmits the signal for generating tone for digits : "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "*" and "#". All data logs write on USB uart changes.
void application_task ( )
{
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '0'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_0, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '1'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_1, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '2'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_2, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '3'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_3, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '4'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_4, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '5'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_5, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '6'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_6, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '7     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_7, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '8'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_8, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '9'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_9, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      'A'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_A, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      'B'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_B, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      'C'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_C, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      'D'     ", _LOG_LINE );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_D, signal_duration );
    dtmfgenerator_transmit_signal( DTMFGENERATOR_TONE_STOP, signal_duration );

    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '*'     ", _LOG_LINE );
    dtmfgenerator_transmit_out_tone( DTMFGENERATOR_OUT_TONE_ASTERISK, 
                                     signal_duration );
    dtmfgenerator_transmit_out_tone( DTMFGENERATOR_OUT_TONE_STOP, 
                                     signal_duration );

    mikrobus_logWrite( "-------------------", _LOG_LINE );
    mikrobus_logWrite( " TONE      '#'     ", _LOG_LINE );
    dtmfgenerator_transmit_out_tone( DTMFGENERATOR_OUT_TONE_HASH, 
                                     signal_duration );
    dtmfgenerator_transmit_out_tone( DTMFGENERATOR_OUT_TONE_STOP, 
                                     signal_duration );
    Delay_ms( 2000 );
}

Other mikroE Libraries used in the example:

  • GPIO
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

Multi Stepper TB67S261 Click

0

Multi Stepper Click is a compact add-on board that contains a bipolar stepper motor driver. This board features the TB67S261FTG, a PHASE-in controlled bipolar stepping motor driver from Toshiba Semiconductor. It supports a PWM constant-current control drive and full-, half-, and quarter-step operation for less motor noise and smoother control. It has a wide operating voltage range of 10V to 47V with an output current capacity of 1.4A in addition to several built-in error detection circuits.

[Learn More]

BarGraph 5 Click

0

BarGraph 5 Click is a compact add-on board designed for visual data representation through LED bargraph displays. This board features three HLMP-2685 red LED bargraph displays from Broadcom Limited, controlled by the TLC5947, a 12-bit PWM LED driver from Texas Instruments. These rectangular red light bars are housed in single-in-line packages, delivering a luminous intensity of 83.4mcd with a peak wavelength of 626nm.

[Learn More]

Vibro Motor Click

0

Vibro Motor Click features a compact size Eccentric Rotating Mass (ERM) motor, labeled as C1026B002F. This type of motor is often used for haptic feedback on many small handheld devices, such as the cellphones, pagers, RFID scanners and similar devices. This motor contains a small eccentric weight on its rotor, so while rotating it also produces vibration effect. This kind of motors is sometimes referred to as coin motors, due to its shape.

[Learn More]