TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 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 (139560 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57254 times)
  4. USB Device Library (47607 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42551 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26930 times)
  10. microSD click (26309 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: 5352 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

Mikromedia 4 for PIC Capacitive

0

This project contains demo example for Mikromedia 4 for PIC Capacitive.

[Learn More]

Diff Press Click

0

Diff Press Click is an accurate pressure sensor Click board™ capable of measuring differential pressure.

[Learn More]

HEXIWEAR Workstation - MP3 Player

0

Hexiwear Workstation MP3 demo application - play songs, change tracks with one simple click, turn up or bring down the volume. EnOcean 2 click was used as a controller. See the example below for a full list of used MikroElektronika products.

[Learn More]