TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 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 (137023 times)
  2. FAT32 Library (70145 times)
  3. Network Ethernet Library (56030 times)
  4. USB Device Library (46355 times)
  5. Network WiFi Library (41968 times)
  6. FT800 Library (41297 times)
  7. GSM click (29066 times)
  8. mikroSDK (26502 times)
  9. PID Library (26452 times)
  10. microSD click (25428 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

2x5W Amp click

Rating:

6

Author: MIKROE

Last Updated: 2019-01-11

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Amplifier

Downloaded: 4980 times

Not followed.

License: MIT license  

2x5W AMP click functions as an amplifier and features the TDA7491LP 2x5-watt dual BTL class-D audio amplifier. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target MCU over the following pins on the mikroBUSâ„¢ line: AN, RST, CS, PWM, INT.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "2x5W Amp click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "2x5W Amp click" changes.

Do you want to report abuse regarding "2x5W Amp click".

  • Information
  • 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

2x5W Amp Click

2x5W Amp Click

Native view of the 2x5W Amp click board.

View full image
2x5W AMP click

2x5W AMP click

Front and back view of the 2x5W AMP click board.

View full image

Library Description

The library covers all the necessary functions to control 2x5W Amp Click board. Library have drivers for setting one of three operating mode ( Standby, Mute or Play mode ) and for setting one of four amplifier gain ( 20dB, 26dB, 30dB or 32dB ) selection resistors.

Key functions:

  • uint8_t c2x5wamp_setMode( uint8_t selectMode ) - Set mode selection of the amplifier function.
  • void c2x5wamp_play() - Set Play mode of the amplifier function.
  • void c2x5wamp_gain20dB() - Set amplifier gain to 20dB function..

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes GPIO and LOG structures,
         set INT pin as input and sets AN, RST, CS and PWM pins as output.
  • Application Initialization - Initialization driver enable's - GPIO and start write log.
  • Application Task - (code snippet) This is a example which demonstrates the use of 2x5W Amp Click board. This examples first activates operation mode MUTE for 5 seconds and after that activates operation mode PLAY. When the device is in Play mode then changes the gain selection, first sets the minimum gain ( 20dB ) for 10 seconds and then sets the maximum gain ( 32dB ) for 5 seconds too. Results are being sent to the Usart Terminal where you can track their changes.
void applicationTask()
{   
    c2x5wamp_mute(); 
    mikrobus_logWrite( " MUTE MODE ", _LOG_LINE ); 
    Delay_ms( 5000 ); 
    mikrobus_logWrite( "-----------------------", _LOG_LINE ); 

    if ( c2x5wamp_setMode( _C2X5WAMP_MODE_PLAY ) )
    {
        mikrobus_logWrite( " PLAY MODE ", _LOG_LINE );
    } 
    else
    { 
        mikrobus_logWrite( " ERROR PLAY MODE ", _LOG_LINE );
    } 

    mikrobus_logWrite( "-----------------------", _LOG_LINE ); 
    c2x5wamp_gain20dB(); 
    mikrobus_logWrite( " Gain set to 20dB ", _LOG_LINE ); 
    Delay_ms( 10000 );

    mikrobus_logWrite( "- - - - - - - - - - - -", _LOG_LINE );
    c2x5wamp_gain32dB(); mikrobus_logWrite( " Gain set to 32dB ", _LOG_LINE );
    Delay_ms( 5000 ); 
    mikrobus_logWrite( "-----------------------", _LOG_LINE );
}

Other mikroE Libraries used in the example:

  • GPIO
  • UART

Additional notes and information

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

4x4 Key click

0

4x4 Key click carries a 16 button keypad. The design of the board — inputs are read by a pair of connected 8-bit parallel-in serial-out shift registers — allows for multiple key presses at the same time.

[Learn More]

Thermo 11 click

0

Thermo 11 Click is a Click board™ equipped with the sensor IC, which can digitize temperature measurements between -55°C and +150°C so that the temperature measurement data can be processed by the host MCU.

[Learn More]

Heart Rate click

0

Heart Rate click is a heart rate monitoring and pulse oximetry measuring Click board™. It features an advanced oximeter and heart rate monitoring sensor, which relies on two integrated LEDs, a photosensitive element, and a very accurate and advanced low noise analog front end, to provide clean and accurate readings.

[Learn More]