audioamp8 2.0.0.0
Main Page

AudioAmp 8 click

‍AudioAmp 8 Click is a compact add-on board that reproduces input audio signal at sound-producing output elements, with desired volume and power levels. This board features the MA12070, a super-efficient audio power amplifier from Infineon Technologies. This I2C configurable audio amplifier is based on proprietary multi-level switching technology, enabling low power loss during operation. It supports a supply voltage range from 4 to 26V, allowing it to be used in many applications. Besides, it is equipped with protection features, allowing a reliable operation.

click Product page


Click library

  • Author : Nenad Filipovic
  • Date : Aug 2021.
  • Type : I2C type

Software Support

We provide a library for the AudioAmp8 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Library Description

‍This library contains API for AudioAmp8 Click driver.

Standard key functions :

Example key functions :

Example Description

‍This library contains API for AudioAmp 8 Click driver. The library initializes and defines the I2C bus drivers to write and read data from registers.

The demo application is composed of two sections :

Application Init

‍The initialization of I2C module, log UART, and additional pins. After the driver init and then executes a default configuration, the app performs a BTL signal configuration, configure power mode and configure power mode profile.

void application_init ( void )
{
log_cfg_t log_cfg;
audioamp8_cfg_t audioamp8_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
// Click initialization.
audioamp8_cfg_setup( &audioamp8_cfg );
AUDIOAMP8_MAP_MIKROBUS( audioamp8_cfg, MIKROBUS_1 );
err_t init_flag = audioamp8_init( &audioamp8, &audioamp8_cfg );
if ( I2C_MASTER_ERROR == init_flag )
{
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
if ( AUDIOAMP8_ERROR == audioamp8_default_cfg ( &audioamp8 ) )
{
log_error( &logger, " Default configuration." );
for ( ; ; );
}
log_info( &logger, " Application Task " );
log_printf( &logger, "-------------------------\r\n" );
Delay_ms ( 1000 );
}
@ AUDIOAMP8_ERROR
Definition audioamp8.h:271
#define AUDIOAMP8_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition audioamp8.h:151
void application_init(void)
Definition main.c:111

Application Task

‍This is an example that shows the use of a AudioAmp 8 Click boardâ„¢. Display status monitoring for the channel 0 or channel 1. This task repeats every 2 seconds.

void application_task ( void )
{
channel_status_monitoring( AUDIOAMP8_SET_MON_CH_0 );
Delay_ms ( 1000 );
}
#define AUDIOAMP8_SET_MON_CH_0
AudioAmp 8 description setting.
Definition audioamp8.h:113
void application_task(void)
Definition main.c:150

Additional Function

  • channel_status_monitoring The function displays the status monitoring channel.
    static void channel_status_monitoring ( uint8_t ch_sel );

The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Other Mikroe Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.AudioAmp8

Additional notes and informations

Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.