AudioMUX Click Board
AudioMUX Click Board
The AudioMUX Click Board™ Board™ is a sound processing Click Board™ with digital controls, based on the TDA7468D IC. It can be used to select one of four audio input channels, adjust its frequency response and volume, and send it to the output. There is also a BASS ALC section implemented on this IC, keeping the base in control even on higher volume settings. Independent LEFT and RIGHT channel volume control, complete control over the I2C interface, a full set of 3.5mm vertical jack connectors on-board All these features make this Click Board™ a very good solution for the development of all kinds of audio applications.
The AudioMUX Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS socket.
Software Support
We provide a library for the AudioMUX Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library offers a choice to perform a control of the AudioMUX Click Board™. The control consists of input control, output control, gain control, volume control, treble and bass control... The device also can work in Bass ALC Mode by using this library. For more details check the documentation.
Key Functions
T_AUDIOMUX_RETVAL audiomux_writeSingleByte( uint8_t regAddr, uint8_t dataIn )
- The function writes one-byte data to the register.T_AUDIOMUX_RETVAL audiomux_selectInput( uint8_t inputSel, uint8_t muteIn, uint8_t micGain, uint8_t micState )
- The function performs an input selection and control.T_AUDIOMUX_RETVAL audiomux_setVolume( uint8_t volume1, uint8_t volume2, uint8_t sideSel )
- The function performs a left or right volume control.T_AUDIOMUX_RETVAL audiomux_setTrebleBass( uint8_t treble, uint8_t bass )
- The function performs a control of the treble and bass for EQ section.
Example Description
The application is composed of the three sections :
- System Initialization - Initializes peripherals and pins.
- Application Initialization - Initializes I2C interface.
- Application Task - (code snippet) - Initializes AudioMUX device to work with the desired configurations and shows a message on UART when playing is started. Device initialization will be performed only once and after that AudioMUX will work with the same desired configurations.
void applicationTask() { if (initCheck == 0) { audiomux_selectInput( _AUDIOMUX_IN1_EN, _AUDIOMUX_MUTE_INPUT_OFF, _AUDIOMUX_MIC_GAIN_14DB, _AUDIOMUX_MIC_OFF ); audiomux_setInputGain( _AUDIOMUX_IN_GAIN_2DB ); audiomux_writeSingleByte( _AUDIOMUX_SURROUND_ADDR, _AUDIOMUX_MIX_0 ); audiomux_setVolume( _AUDIOMUX_VOL1_6DB_NEG, _AUDIOMUX_VOL2_0DB, _AUDIOMUX_VOLUME_LEFT_ADDR ); audiomux_setVolume( _AUDIOMUX_VOL1_6DB_NEG, _AUDIOMUX_VOL2_0DB, _AUDIOMUX_VOLUME_RIGHT_ADDR ); audiomux_setTrebleBass( _AUDIOMUX_TRE_BASS_4DB_NEG, _AUDIOMUX_TRE_BASS_14DB ); audiomux_writeSingleByte( _AUDIOMUX_BASS_ALC_ADDR, _AUDIOMUX_MODE2_ADAPTIVE ); audiomux_muteOuput( _AUDIOMUX_MUTE_OUTPUT_OFF ); initCheck = 1; mikrobus_logWrite( "Playing", _LOG_TEXT ); Delay_ms( 1000 ); } if (messCnt < 5) { mikrobus_logWrite( ". ", _LOG_TEXT ); Delay_ms( 4000 ); messCnt++; } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
I2C
UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
AudioMUX Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.