OFF
MIKROE-4298
23 g
Status:
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.. The HT9200A tone generators can be instructed by an MCU to generate 16 dual tones and 8 single tones from its DTMF pin. It provides a Serial Mode interface, has a low total harmonic distortion and features a low current in the Stand-By mode. This Click board™ is suitable for various applications such as security systems, home automation, remote control through telephone lines, communication systems, and more.
DTMF Generator Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
DTMF Generator Click is based on the HT9200A, a dual-tone multi-frequency decoder designed for mobile communication systems from Holtek Semiconductor Inc.. The HT9200A is an SMD tone generator IC designed for MCU interfaces. It can be instructed by an MCU to generate 16 dual tones and 8 single tones from the DTMF pin, and it provides a Serial Mode. The system oscillator of HT9200A consists of an inverter, a bias resistor, and the required load capacitor on a chip. The oscillator function is implemented with a standard 3.579545MHz crystal connected to the X1 and X2 pins of the HT9200A.
The operation of the HT9200A is based on GPIO signals fed from the mikroBUS™ to the decoder, DAT and CLK. There is a connection between the digital codes and the tone output frequency based on which the desired output frequency is selected. The HT9200A employs a data input, a 5-bit code, and a synchronous clock to transmit a DTMF signal. Every digit of a transferred number is selected by a series of combinations that consist of 5-bit data. The HT9200A will latch data on the falling edge of the CLK pin and display the output data on its output DTMF pin. Then such a signal, via a volume adjustment potentiometer, is sent to an audio amplifier, the LM386 from Texas Instruments that represents a mono low-voltage amplifier that can be used in a variety of applications. After the audio amplifier, the desired sound can be detected on the on-board speaker.
DTMF Generator Click communicates with MCU using three GPIO pins routed on the CS, RST, and PWM pins of the mikroBUS™ socket labeled as CE, DAT, and CLK. CE pin represents Chip Enable function used to Wake-Up the HT9200A, while DAT and CLK pins stand for data input and data synchronous clock input. It also possesses the adjustable potentiometer labeled as VOLUME that serves to adjust the volume of that signal. It also has a 3.5mm jack output connector that allows the user to use the output DTMF signal in their projects in their own way, whiles the signal volume still can be adjusted on the VOLUME potentiometer located on the DTMF Generator Click.
This Click board™ is designed to be operated with both 3.3V and 5V logic voltage levels that can be selected via VCC SEL jumper. This allows for both 3.3V and 5V capable MCUs to use the GPIO communication lines properly. However, the Click board™ comes equipped with a library that contains easy to use functions and an example code that can be used as a reference for further development.
Type
Signal Processing
Applications
Can be used for various applications such as security systems, home automation, remote control through telephone lines, communication systems, and more.
On-board modules
DTMF Generator Click is based on the HT9200A, a dual-tone multi-frequency decoder designed for mobile communication systems from Holtek Semiconductor Inc..
Key Features
Dual-tone multi-frequency decoder, serial mode, low stand-by current, low total harmonic distortion, and more.
Interface
GPIO
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V
This table shows how the pinout on DTMF Generator Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Power Supply Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
VR1 | VOLUME | - | Volume Adjustment Potentiometer |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | -0.3 | - | 6 | V |
DTMF Output DC Level | 0.45*VCC | - | 0.75*VCC | V |
Clock Input Rate (Serial Mode) | - | 100 | 500 | kHz |
Operating Temperature Range | -20 | - | +75 | °C |
We provide a library for the DTMF Generator Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
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 :
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 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB 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.
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.