StereoAmp Click Board
StereoAmp Click Board
The StereoAmp Click Board™ functions as a stereo amplifier and is ideal for battery operated devices or as a lab amplifier.
It features two LM48100Q-Q1 Boomer single supply, mono, bridge-tied load amplifier ICs by Texas Instruments. The LM48100Q-Q1 has output fault detection and I2C volume control.
Software Support
The demo shows how to initialize amplifiers and set volume control registers on the fly. It uses joystick or potentiometer (depending on the development board) to control volume and TFT or LCD display to show gain level. Before initializing I2C module, the demo toggles SDA and SCL lines for proper initialization of amplifiers.
The following code enables amplifiers and selects input 1, sets volume to predefined value, and restores diagnostic register. Function Write_Amp_Reg writes to selected amplifier's register using I2C bus.
1 void StereoAmp_Init() { 2 // Power On and Input 1 enabled. 3 Write_Amp_Reg(LEFT_SPEAKER, MODE_CONTROL_REG, POWER_ON | INPUT1); 4 Write_Amp_Reg(RIGHT_SPEAKER, MODE_CONTROL_REG, POWER_ON | INPUT1); 5 // Set volume. 6 Write_Amp_Reg(LEFT_SPEAKER, VOLUME_CONTROL1_REG, volume_control_L); 7 Write_Amp_Reg(RIGHT_SPEAKER, VOLUME_CONTROL1_REG, volume_control_R); 8 // Restore diagnostic. 9 Write_Amp_Reg(LEFT_SPEAKER, DIAGNOSTIC_CONTROL_REG, DG_RESET ); 10 Write_Amp_Reg(RIGHT_SPEAKER, DIAGNOSTIC_CONTROL_REG, DG_RESET ); 11 }
StereoAmp Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.