TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139250 times)
  2. FAT32 Library (71746 times)
  3. Network Ethernet Library (57120 times)
  4. USB Device Library (47429 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28074 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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: 5295 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

3D Hall 8 Click

0

3D Hall 8 Click is a compact add-on board containing an ultra-small 3D-magnetic sensor for industrial and consumer applications.

[Learn More]

Fingerprint click

0

Fingerprint click is the simplest way to integrate biometric security to your design. The smallest optical touch fingerprint sensor in the world is featured on the click — GTS-511E2. The sensor takes a digital imprint of the fingerprint pattern using visible light. The board is designed to use a 3.3V power supply.

[Learn More]

Magnetic Rotary 2 Click

0

Magnetic Rotary 2 Click is a compact add-on board used for accurate magnet-position sensing. This board features the AEAT-9922, an angular magnetic rotary sensor providing accurate angular measurement over a full 360 degrees of rotation from Broadcom Limited. The AEAT-9922 uses integrated Hall sensor elements with complex analog and digital signal processing within a single device. The absolute angle measurement provides an instant indication of the magnet's angular position with a selectable and one-time programmable resolution from 10 to 18 bits.

[Learn More]