TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (382 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 (139714 times)
  2. FAT32 Library (72102 times)
  3. Network Ethernet Library (57320 times)
  4. USB Device Library (47664 times)
  5. Network WiFi Library (43287 times)
  6. FT800 Library (42620 times)
  7. GSM click (29958 times)
  8. mikroSDK (28376 times)
  9. PID Library (26977 times)
  10. microSD click (26378 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: 3864 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

PWR Meter 2 click

5

PWR Meter 2 click is a compact and accurate power monitoring Click board, capable of measuring and monitoring voltage up to 24V and current up to 5A.

[Learn More]

Color 7 click demo example

0

This example is made to demonstrate the operation of the Color 7 click.

[Learn More]

Thermo 15 Click

0

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

[Learn More]