TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 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 (139266 times)
  2. FAT32 Library (71754 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47432 times)
  5. Network WiFi Library (43092 times)
  6. FT800 Library (42408 times)
  7. GSM click (29835 times)
  8. mikroSDK (28101 times)
  9. PID Library (26886 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

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: 3797 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

Methane click

5

This example demonstrates usage of the Methane click board in mikroBUS form factor. Methane click is suitable for detecting Methane concentration - Methane gas leakage detecting. LCD shows PPM value of Methane concentration.

[Learn More]

Pressure 10 Click

0

Pressure 10 Click features a digital interface barometric pressure sensor, based on piezoresistive bridge, labeled as HSPPAD042A, from ALPS Electric. It can use both SPI and I2C communication protocols, allowing it to be interfaced with a broad range of MCUs. Besides the pressure readings, this Click board™ also offers very accurate temperature reading, which is required for the pressure readings compensation and can be used in a wide range of battery-powered and portable applications thanks to its very low power consumption.

[Learn More]

I2C Isolator 7 Click

0

I2C Isolator 7 Click is a compact add-on board that offers completely isolated bidirectional communication. This board features the ADuM1252, an ultra-low power, bidirectional I2C isolator from Analog Devices. It can isolate I2C bidirectional data transfer of up to 2MHz SCL and bidirectional SCL for advanced bus topologies, and it supports clock stretching and multiple controllers across the isolation barrier. It also features the enhanced hot-swappable side 2 IO.

[Learn More]