TOP Contributors

  1. MIKROE (2766 codes)
  2. Alcides Ramos (374 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 (139306 times)
  2. FAT32 Library (71787 times)
  3. Network Ethernet Library (57140 times)
  4. USB Device Library (47443 times)
  5. Network WiFi Library (43102 times)
  6. FT800 Library (42428 times)
  7. GSM click (29836 times)
  8. mikroSDK (28136 times)
  9. PID Library (26889 times)
  10. microSD click (26203 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

Audio Amp 5 click

Rating:

5

Author: MIKROE

Last Updated: 2019-10-14

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Amplifier

Downloaded: 3799 times

Not followed.

License: MIT license  

Audio Amp 5 Click is a stereo audio amplifier, capable of delivering up to 10W per channel with the 8Ω load. It is based on the TPA3138D2, a class-D integrated amplifier, which utilizes a highly efficient switching scheme.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Audio Amp 5 click" changes.

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

Do you want to report abuse regarding "Audio Amp 5 click".

  • mikroSDK Library 2.0.0.0
  • 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

AudioAmp 5 click

AudioAmp 5 click

Native view of the AudioAmp 5 click board.

View full image
AudioAmp 5 click

AudioAmp 5 click

Front and back view of the AudioAmp 5 click board.

View full image

Library Description

The library performs the audio control of the Audio Amp 5 Click board. This library consists of the special commands for audio output control, for example to mute/turn on the outputs, to select the desired output gain or mode. For more details check documentation.

Key functions:

  • void audioamp5_enable( uint8_t state ) - Function performs a shutdown or power up action, and on that way selects outputs to be muted or activated.
  • void audioamp5_modeSelect( uint8_t state ) - Function puts a device to the desired mode.
  • void audioamp5_gainSelect( uint8_t state ) - Function performs a desired gain selection.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes GPIO interface on the desired mikrobus selection and performs a device init configuration.
  • Application Task - (code snippet) - Checks the entered command and, if the command is valid, performs a device configuration which the entered command determines. Note : After each command for device configuration, the command for configuration updating will be executed. When BD Mode (0) is selected, the VIN supply voltage threshold is 7.5V. When Low-Idle-Current 1SPW Mode is selected, the VIN supply voltage threshold is 3.4V.
void applicationTask()
{
    rxDat = UART_Rdy_Ptr();

    if (rxDat != UART_RX_NOT_READY)
    {
        rxDat = UART_Rd_Ptr();
        
        switch (rxDat)
        {
            case 'm' :
            {
                audioamp5_enable( _AUDIOAMP5_SHDWN_MUTE_OUTPUTS );
                mikrobus_logWrite( "** Outputs are muted **", _LOG_LINE );
            break;
            }
            case 'e' :
            {
                audioamp5_enable( _AUDIOAMP5_PWRUP_UNMUTE_OUTPUTS );
                mikrobus_logWrite( "** Outputs are enabled **", _LOG_LINE );
            break;
            }
            case '0' :
            {
                audioamp5_modeSelect( _AUDIOAMP5_BD_MODE );
                audioamp5_configUpdate();
                mikrobus_logWrite( "** BD Mode is selected **", _LOG_LINE );
            break;
            }
            case '1' :
            {
                audioamp5_modeSelect( _AUDIOAMP5_1SPW_MODE );
                audioamp5_configUpdate();
                mikrobus_logWrite( "** Low-Idle-Current 1SPW Mode is selected **", _LOG_LINE );
            break;
            }
            case '-' :
            {
                audioamp5_gainSelect( _AUDIOAMP5_GAIN_20DB );
                audioamp5_configUpdate();
                mikrobus_logWrite( "** Gain value is 20dB **", _LOG_LINE );
            break;
            }
            case '+' :
            {
                audioamp5_gainSelect( _AUDIOAMP5_GAIN_26DB );
                audioamp5_configUpdate();
                mikrobus_logWrite( "** Gain value is 26dB **", _LOG_LINE );
            break;
            }
            default :
            {
                writeLegend();
            break;
            }
        }
    }
}

Additional Functions :

All additional functions such as timer initialization and default handler.

Other mikroE Libraries used in the example:

  • UART

Additional notes and informations

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

3G SARA Click

0

3G SARA Click is a versatile cellular network communication solution, featuring the compact 3.75G UMTS/HSPA SARA U-201 modem from u-blox.

[Learn More]

2x2 RGB Click

0

2x2 RGB Click is a compact add-on board that contains a matrix of 4 “intelligent” RGB elements, forming a 2x2 display screen. This board features the KTD2052A, a 12-channel RGB LED driver from Kinetic Technologies. It is a fully programmable current regulator for up to four RGB LEDs (12 LEDs in total). The LED matrix consists of four LRTB GFTG, a 6-lead in-line MULTILEDs, from ams OSRAM. The LEDs have a 120-degree viewing angle.

[Learn More]

Keylock 2 click

5

Keylock 2 Click carries antistatic process sealed keylock mechanism that has three positions. This board is intended to be used for implementation into applications which require mechanical lock mechanism, as well as for testing the same concepts in early development stage.

[Learn More]