TOP Contributors

  1. MIKROE (2752 codes)
  2. Alcides Ramos (372 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 (139062 times)
  2. FAT32 Library (71593 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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

AudioAmp 3 click

Rating:

5

Author: MIKROE

Last Updated: 2020-01-03

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Amplifier

Downloaded: 3063 times

Not followed.

License: MIT license  

AudioAmp 3 Click is a stereo audio amplifier, capable of delivering up to 79W per channel with the 4Ω load. It is based on the TAS5414, 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 "AudioAmp 3 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "AudioAmp 3 click" changes.

Do you want to report abuse regarding "AudioAmp 3 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 3 Click

AudioAmp 3 Click

Native view of the AudioAmp 3 Click board.

View full image
AudioAmp 3 Click

AudioAmp 3 Click

Front and back view of the AudioAmp 3 Click board.

View full image

Library Description

The library covers all the necessary functions to control AudioAmp 3 click board. A library performs a standard I2C interface communication.

Key functions:

  • AUDIOAMP3_STATUS_T audioamp3_setGainLvl( uint8_t gainLvl ) - Set the gain lvl function.
  • AUDIOAMP3_STATUS_T audioamp3_setChannelMuteMode( uint8_t sChannel ) - Set the mute mode of channel function.
  • AUDIOAMP3_STATUS_T audioamp3_setPlayMode() - Set the play mode for all channels function.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C, GPIO and LOG structures, set INT pins as input and RST and PWM pins as output and start to write log.
  • Application Initialization - Initialization driver enables - I2C, sets: power up, channel 1 & 2 to low-low state, mute all channels, run diagnostics, hardware reset, read diagnostics and play, also write log.
  • Application Task - (code snippet) This is an example which demonstrates the use of AudioAmp 3 click board. Waits for valid user input and executes functions based on set of valid commands. Results are being sent to the Usart Terminal where you can track their changes.
  • Commands : '+' - volume up '-' - volume down 'P' - play 'M' - mute
void applicationTask()
{
    char receivedData;

    if ( UART_Rdy_Ptr() )
    {
        receivedData = UART_Rd_Ptr();

        switch ( receivedData )
        {
            case '+' :
            {
                for( cnt = _AUDIOAMP3_MIN_GAIN; cnt < _AUDIOAMP3_GAIN_5; cnt++ )
                {
                    statusFlag = audioamp3_setGainLvl( cnt );

                    mikrobus_logWrite( "   -  Volume Up  -", _LOG_LINE );
                    Delay_1sec();
                }
                mikrobus_logWrite( "---------------------", _LOG_LINE );
                break;
            }
            case '-' :
            {
                for( cnt = _AUDIOAMP3_MAX_GAIN; cnt > _AUDIOAMP3_GAIN_0; cnt-- )
                {
                    statusFlag = audioamp3_setGainLvl( cnt );

                    mikrobus_logWrite( "   - Volume Down -", _LOG_LINE );
                    Delay_1sec();
                }
                mikrobus_logWrite( "---------------------", _LOG_LINE );
                break;
            }
            case '=' :
            {
                audioamp3_setGainLvl( _AUDIOAMP3_MEDIUM_GAIN );
                mikrobus_logWrite( "   - Medium Vol. -", _LOG_LINE );
                mikrobus_logWrite( "---------------------", _LOG_LINE );
                break;
            }
            case 'M' :
            {
                audioamp3_setChannelMuteMode( _AUDIOAMP3_SELECT_ALL_CHANNELS );
                mikrobus_logWrite( "  Mute All Channel  ", _LOG_LINE );
                mikrobus_logWrite( "--------------------", _LOG_LINE );
                break;
            }
            case 'P' :
            {
                audioamp3_setPlayMode();
                mikrobus_logWrite( "        Play        ", _LOG_LINE );
                mikrobus_logWrite( "--------------------", _LOG_LINE );
                break;
            }
        }
    }
}

Other mikroE Libraries used in the example:

  • I2C
  • 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

Buck-Boost Click

0

Buck-Boost Click™ features LTC3129-1, a buck-boost DC/DC conversion integrated circuit. The Click supports a wide input voltage range and can output eight discrete regulated output voltage levels, selectable by the digital output voltage selection pins, ranging from 2.5V to 15V.

[Learn More]

H-Bridge 7 Click

0

H-Bridge 7 Click features flexible motor driver IC for a wide variety of applications, labeled as the DRV8876N. This Click board™ integrates an N-channel H-bridge, charge pump regulator, and protection circuitry. The charge pump improves efficiency by allowing for both high-side and low-side N-channels MOSFETs and 100% duty cycle support. This IC allows the H-Bridge 7 Click to achieve ultra-low quiescent current draw by shutting down most of the internal circuitry with his low-power sleep mode.

[Learn More]

ISO ADC 3 click

5

ISO ADC 3 Click is a compact add-on board that contains a single-channel precision isolation amplifier.

[Learn More]