English
Language : 

MS6821_1 Datasheet, PDF (20/29 Pages) MOSA ELECTRONICS – 4 Stereo Inputs, 2W BTL Stereo Output 16-bit Stereo DAC and Volume Control
MOSA
MS6821
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
I2C CODE EXAMPLE
Input selector and input gain
Set left channel to be line-4 and input gain to be 3dB. Set right channel to be line-4 and input gain to be 3dB.
Gain
Line
Start MS6821 Address ACK 1 0 0 0 0 1 1 1 ACK 1 0 1 0 0 1 1 1 ACK Stop
L-ch = Line4, G = 3dB
The left and right input channel are independent.
R-ch = Line4, G = 3dB
Volume control
Set left channel to be -15dB and right channel to be 30dB.
Gain
Line
Start MS6821 Address ACK 1 0 0 0 0 1 1 1 ACK 1 0 1 0 0 1 1 1 ACK Stop
L-ch = Line4, G = 3dB
R-ch = Line4, G = 3dB
Power down mode
Set built-in DAC to be power down mode.
DACPD
Start MS6821 Address ACK 1 1 0 1 0 0 0 0 ACK Stop
DAC power down
Output mode, mixer control and audio format
Set output mode to be SE mode, audio format is I2S, and both input channel to be mixed.
Output mode
Mixer
Audio format
Start MS6821 Address ACK 1 1 1 1 1 1 0 1 ACK Stop
SE mode, All mix, I2S
REV 3
20/29
www.mosanalog.com