TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136707 times)
  2. FAT32 Library (69917 times)
  3. Network Ethernet Library (55932 times)
  4. USB Device Library (46256 times)
  5. Network WiFi Library (41883 times)
  6. FT800 Library (41144 times)
  7. GSM click (28978 times)
  8. PID Library (26407 times)
  9. mikroSDK (26355 times)
  10. microSD click (25351 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: 4930 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

Air Velocity click

0

Air Velocity Click is a compact add-on board that measures direct airspeed. This board features the FS3000-1005, a surface-mount type air velocity module utilizing a MEMS thermopile-based sensor from Renesas. This I2C-configurable air velocity module features a digital output with a 12-bit resolution with a wide operational range of 0-7.2meter/second (0-16.2mph). The sensor comprises a “solid” thermal isolation technology and silicon-carbide coating to protect it from abrasive wear and water condensation.

[Learn More]

Angle 5 click

5

Angle 5 Click is a compact add-on board that detects the absolute angular position of a permanent magnet, typically a diametrically magnetized cylinder on a rotating shaft.

[Learn More]

Matrix RGB click

0

Matrix RGB click is a mikroBUS™ add-on board powered by a 32-bit FT900 MCU designed specifically for powering 16x32 RGB LED matrices.

[Learn More]