MOSA MS6821G 4 stereo inputs, 2w btl stereo output 16-bit stereo dac and volume control Datasheet

MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
4 Stereo Inputs, 2W BTL Stereo Output
16-bit Stereo DAC and Volume Control
FEATURES
•Operation range: 2.4V~5.5V
•Volume control range
Gain: 0 to 21dB, 3dB/step
Attenuation: 0 to –77.5dB, 1.25dB/step
•4 stereo inputs (mixed with an audio DAC)
•Output mode : Speaker( BTL)/Headphone(SE)
•BTL Output power, THD+N=1%, Stereo Input
RL=4Ω, 2W at 5V, 0.8W at 3.3V, 360mW at 2.4V
RL=8Ω, 1.3W at 5V, 0.53W at 3.3V, 250mW at 2.4V
•BTL Output power, DAC Input
RL=4Ω, 1.6W at 5V, 0.70W at 3.3V, 340mW at 2.4V
RL=8Ω, 0.83W at 5V, 0.35W at 3.3V, 170mW at 2.4V
•Built-in 16-bit Audio DAC
•Audio format : I2S, Right justified, Left justified
•Control interface : I2C
•Excellent Power Supply Rejection Ratio(PSRR)
•Flexibility power management
•Component less
•Reduce pop noise circuit
•Housed in TSSOP28 package, enhanced thermal
PAD
APPLICATIONS
Multimedia system, Portable Digital Audio.
DESCRIPTION
The MS6821 is a 16-bits voltage-output Digital-to-Analog Converter (DAC) integrated class AB stereo headphone
driver and stereo speaker power amplifier. It can drive 2W of continuous average power into a dual 4Ω bridged-tied
(BTL) speaker or 2 * 90mW into stereo 32Ω single ended (SE) headphone. The 16-bit DAC supports general and
popular formats as I2S, Right justified. The volume control offers wide range of gain and attenuation for 4-set stereo
input. All of the functions are set by I2C interface.
The MS6821 has good feature for portable equipment, including wide voltage operation 2.4V~5.5V, low power
consumption, flexible power management, component less and small package TSSOP28, make the MS6821 ideally
suitable for use in the portable digital audio equipments.
BLOCK DIAGRAM
LIN1
LIN2
LIN3
LIN4
L-ch selector
& Gain
Attenuation
&
Mute
Mixer
-1
OUTR-
-1
R-ch selector
& Gain
RIN4
RIN3
RIN2
RIN1
Attenuation
&
Mute
Mixer
-1
OUTR+
OUTL-
-1
BCK
OUTL+
16-bit DAC
WS
DATA
I2C
Interface
Supply
VDD
REV 1.0
Vss
CAP
DACL /
DACR /
LINE_INL LINE_INR
SCL SDA
1
Power Amplifier
Supply
PVDDL PVSSL
PVDDR PVSSR
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
PIN CONFIGURATION
Symbol
Pin
Description
WS
1
Audio word select input
BCK
2
Audio bit clock input
CAP
3
Capacitor connected
RIN1
4
Right channel input 1
RIN2
5
Right channel input 2
RIN3
6
Right channel input 3
RIN4
7
Right channel input 4
VSS
8
PVDDR
9
OUTR-
10
OUTR+
11
Negative supply voltage
Positive supply voltage for right
channel of power amplifier
SE right channel output or negative
output of BTL right channel
Positive output of BTL right channel
GND
12
PVSSR
13
DACR
LINE_INR
DACL
LINE_INL
14
15
WS 1
Connected to ground
Negative supply voltage for right
channel of power amplifier
DAC right channel output
LINE_IN right channel input
DAC Left channel output
LINE_IN left channel input
Negative supply voltage for left channel
of power amplifier
Connected to ground
PVSSL
16
GND
17
OUTL+
18
OUTL-
19
PVDDL
20
VDD
21
Positive output of BTL left channel
SE left channel output or negative
output of BTL left channel
Positive supply voltage for left channel
of power amplifier
Positive supply voltage
LIN4
22
Left channel input 4
LIN3
23
Left channel input 3
LIN2
24
Left channel input 2
LIN1
25
Left channel input 1
SDA
26
I2C data input
SCL
27
I2C clock input
DATA
28
Audio data input
Note: 1. SE: Single Ended.
REV 1.0
28 DATA
BCK 2
27 SCL
CAP 3
26 SDA
RIN1 4
25 LIN1
RIN2 5
24 LIN2
RIN3 6
23 LIN3
RIN4 7
VSS 8
22 LIN4
Thermal
Pad
21 VDD
PVDDR 9
20 PVDDL
OUTR- 10
19 OUTL-
OUTR+ 11
18 OUTL+
GND 12
17 GND
PVSSR 13
16 PVSSL
DACR 14
15 DACL
MS6821, TSSOP28
BTL: Bridged-Tied Load
2
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
ORDERING INFORMATION
Package
Part number
Packaging Marking
Transport Media
28Pin TSSOP (lead free)
MS6821TGTR
MS6821G
3k Units Tape and Reel
28Pin TSSOP (lead free)
RoHS Compliance
MS6821TGU
MS6821G
50 Units Tube
ABSOLUTE MAXIMUM RATINGS
Symbol
Parameter
VDD
Supply voltage
VESD
Electrostatic handling
Rating
Unit
6
V
2000
V
TSTG
Storage temperature range
-65 to 150
℃
TA
Operating ambient temperature range
-40 to 85
℃
TJ
Maximum junction temperature
150
℃
TS
Soldering temperature, 10 seconds
260
℃
RTHJA
Thermal resistance from junction to ambient in free air
TSSOP28 (enhance thermal pad)
51
℃/W
OPERATING RATINGS
Symbol
VDD
REV 1.0
Parameter
Supply voltage
3
Min
Typ
Max
Unit
2.4
5
5.5
V
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
5V ELECTRICAL CHARACTERISTICS
(Ta=25℃, VDD=5V, VSS=0V, f=1kHz; unless otherwise specified)
Parameter
Symbol
Conditions
Min
All devices are active, BTL
0.5VDD
-0.05
0.5VDD
-0.05
-
Typ
Max
Unit
DC Characteristics
VCAP
Voltage at CAP
VDC
Output DC level
IQ
Quiescent current
13.0
0.5VDD
+0.05
0.5VDD
+0.05
-
0.5VDD
0.5VDD
All devices are active, SE
-
9.8
-
DAC PD, BTL
-
9.9
-
DAC PD, SE
L-ch (R-ch) PD, BTL
DAC active
L-ch (R-ch) PD, SE
DAC active
Only DAC is active
-
6.7
-
-
8.2
-
-
6.6
-
-
3.2
-
All devices power down
All devices power down,
except CAP=1/2 VDD
-
-
0.3
IPD
Power down current
ATT
Mute attenuation
GARAN
Gain/Attenuation range
GSTEP
Gain step
-
ASTEP
Attenuation step
EGA
V
V
mA
uA
12
-90
dB
21
dB
0
dB
3
-
dB
-
1.25
-
dB
Gain/Attenuation step error
-
0.3
-
dB
VI2CH
Serial interface high input level
2
VI2CL
Serial interface low input level
Gain
0
Attenuation
-
-77.5
V
0.8
V
AC Characteristics (Stereo input)
PSRR
CS
THD+N
S/N
Po
Power supply rejection ratio
Channel separation
Total harmonic distortion plus
Noise
Signal-to-noise ratio
Maximum output power
BTL Mode , RL=8Ω
CAP=1uF, f=200Hz
SE Mode , RL=32Ω
CAP=1uF, f=200Hz
BTL Mode, RL=8Ω
Po=1W
SE Mode, RL=32Ω
Po=60mW
SE mode, RL=32Ω, 60mW
SE mode, A-weighting,
75mW
BTL Mode, RL = 4Ω
THD+N = 1%
BTL Mode, RL = 8Ω
THD+N = 1%
SE Mode, RL = 32Ω
THD+N = 0.1%
-
61
-
dB
-
65
-
dB
-
78
-
dB
-
81
-
dB
-
-65
-
dB
-
0.0562
-
%
-
93
-
dB
-
2
-
W
-
1.3
-
W
-
93m
-
W
PD: Power Down
REV 1.0
4
www.mosanalog.com
MS6821
MOSA
Symbol
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
Parameter
Audio DAC Characteristics
Min
Typ
Max
Unit
-
-
16
bits
VFS-1.5%
VFS
VFS+1.5%
V
CAP=1uF (200Hz)
66
-
CAP=10uF (200Hz)
67
-
(sampling rate=4fs, fs= 44.1kHz, f=1kHz)
Res
Resolution
VFSDAC
Full scale output voltage of DAC
PSRR
Power supply rejection ratio
CS
Channel separation
THD+N
Total harmonic distortion plus
noise
S/N
Signal-to-noise ratio
DACPo
Conditions
Maximum output power
using DAC
VFS=0.72 * VDD
88
dB
dB
-
-67
-62
dB
-
0.0447
0.079
%
86
90
-
dB
1.44
1.6
-
W
0.75
0.83
-
W
41.4m
46m
-
W
Conditions
Min
Typ
Max
Unit
All devices are active, BTL
-
11.5
-
All devices are active, SE
-
8.5
-
DAC output, RL=1kΩ, VFS
DAC output, RL=1kΩ, VFS
A-weighting
BTL Mode, RL = 4Ω
THD+N = 0.33%
BTL Mode, RL = 8Ω
THD+N = 0.15 %
SE Mode, RL = 32Ω
THD+N = 0.042%
3.3V ELECTRICAL CHARACTERISTICS
(Ta=25℃, VDD=3.3V, VSS=0V, f=1kHz; unless otherwise specified)
Symbol
Parameter
DC Characteristics
IQ
Quiescent current
DAC PD, BTL
-
9
-
DAC PD, SE
L-ch (R-ch) PD, BTL
DAC active
L-ch (R-ch) PD, SE
DAC active
Only DAC is active
-
6
-
-
7.1
-
-
5.6
-
-
2.6
-
mA
AC Characteristics (Stereo input)
THD+N
Total harmonic distortion plus
Noise
SE mode, RL=32Ω, 35mW
BTL Mode, RL = 4Ω
THD+N = 1%
BTL Mode, RL = 8Ω
Po
Maximum output power
THD+N = 1%
SE Mode, RL = 32Ω
THD+N = 0.1%
Audio DAC Characteristics (sampling rate=4fs, fs= 44.1kHz, f=1kHz)
THD+N
DACPo
REV 1.0
Total harmonic distortion plus
noise
DAC output, RL=1kΩ, VFS
Maximum output power
using DAC
BTL Mode, RL = 4Ω
THD+N = 0.25%
BTL Mode, RL = 8Ω
THD+N = 0.14 %
SE Mode, RL = 32Ω
THD+N = 0.052%
5
-
-67
60
dB
-
0.0447
0.1
%
-
0.8
-
W
-
0.53
-
W
-
35m
-
W
-
-66
60
dB
-
0.05
0.1
%
0.63
0.70
-
W
0.32
0.35
-
W
18m
20m
-
W
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
2.4V ELECTRICAL CHARACTERISTICS
(Ta=25℃, VDD=2.4V, VSS=0V, f=1kHz; unless otherwise specified)
Parameter
Symbol
Conditions
Min
Typ
Max
Unit
All devices are active, BTL
-
9.9
-
All devices are active, SE
-
7.1
-
DAC PD, BTL
-
7.8
-
DAC PD, SE
L-ch (R-ch) PD, BTL
DAC active
L-ch (R-ch) PD, SE
DAC active
Only DAC is active
-
5.1
-
-
6
-
-
4.7
-
-
2.2
-
-
-65
-60
dB
-
0.0562
0.1
%
-
0.36
-
W
-
0.25
-
W
-
15m
-
W
-
-63
-58
dB
-
0.071
0.126
%
0.31
0.34
-
W
0.15
0.17
-
W
9m
10m
-
W
DC Characteristics
IQ
Quiescent current
mA
AC Characteristics (Stereo input)
THD+N
Total harmonic distortion plus
Noise
SE mode, RL=32Ω, 15mW
BTL Mode, RL = 4Ω
THD+N = 1%
BTL Mode, RL = 8Ω
Po
Maximum output power
THD+N = 1%
SE Mode, RL = 32Ω
THD+N = 0.1%
Audio DAC Characteristics (sampling rate=4fs, fs= 44.1kHz, f=1kHz)
THD+N
DACPo
REV 1.0
Total harmonic distortion plus
noise
DAC output, RL=1kΩ, VFS
Maximum output power
using DAC
BTL Mode, RL = 4Ω
THD+N = 0.85%
BTL Mode, RL = 8Ω
THD+N = 0.17 %
SE Mode, RL = 32Ω
THD+N = 0.07%
6
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
TYPICAL PERFORMANCE CHARACTERISTICS
(Ta=25℃; unless otherwise specified)
All Devices activate.
BTL
SE
All Devices activate except DAC
QUIESCENT CURRENT (mA)
SE
QUIESCENT CURRENT (mA)
QUIESCENT CURRENT (mA)
BTL
BTL
SE
LPD or RPD
DAC activates.
SUPPLY VOLTAGE (V)
SUPPLY VOLTAGE (V)
Quiescent current vs. supply voltage
Quiescent current vs. supply voltage
QUIESCENT CURRENT (mA)
SUPPLY VOLTAGE (V)
Quiescent current vs. supply voltage
DAC activates only
SUPPLY VOLTAGE (V)
Quiescent current vs. supply voltage
REV 1.0
7
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
VDD=5V, Po=2W
BTL mode, RL=4Ω
VDD=3.3V, Po=0.8W
BTL mode, RL=4Ω
VDD=2.4V, Po=330mW
BTL mode, RL=4Ω
THD+N (%)
FREQUENCY (Hz)
THD+N vs. frequency
THD+N (%)
FREQUENCY (Hz)
THD+N vs. frequency
THD+N (%)
FREQUENCY (Hz)
THD+N vs. frequency
VDD=5V, Po=1.2W
BTL mode, RL=8Ω
VDD=3.3V, Po=0.53W
BTL mode, RL=8Ω
VDD=2.4V, Po=250mW
BTL mode, RL=8Ω
THD+N (%)
FREQUENCY (Hz)
THD+N vs. frequency
THD+N (%)
FREQUENCY (Hz)
THD+N vs. frequency
THD+N (%)
FREQUENCY (Hz)
THD+N vs. frequency
VDD=5V, Po=90mW
SE mode, RL=32Ω
REV 1.0
THD+N (%)
THD+N (%)
THD+N (%)
Stereo inputs signal
(Ta=25℃, stereo inputs signal, f=1kHz, DAC is Power Down mode; unless otherwise specified)
VDD=3.3V, Po=35mW
SE mode, RL=32Ω
VDD=2.4, Po=15mW
SE mode, RL=32Ω
FREQUENCY (Hz)
FREQUENCY (Hz)
FREQUENCY (Hz)
THD+N vs. frequency
THD+N vs. frequency
THD+N vs. frequency
8
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
f=20kHz
f=20kHz
f=1kHz
f=1kHz
THD+N (%)
THD+N (%)
THD+N (%)
f=20kHz
f=1kHz
f=20Hz
f=20Hz
f=20Hz
VDD=3.3V
BTL mode
RL=4Ω
VDD=5V
BTL mode
RL=4Ω
VDD=2.4V
BTL mode
RL=4Ω
OUTPUT POWER (W)
OUTPUT POWER (W)
OUTPUT POWER (W)
THD+N vs. output power
THD+N vs. output power
THD+N vs. output power
f=20kHz
f=20kHz
f=1kHz
f=1kHz
f=1kHz
f=20Hz
THD+N (%)
THD+N (%)
THD+N (%)
f=20kHz
f=20Hz
f=20Hz
VDD=5V
BTL mode
RL=8Ω
VDD=3.3V
BTL mode
RL=8Ω
VDD=2.4V
BTL mode
RL=8Ω
OUTPUT POWER (W)
OUTPUT POWER (W)
OUTPUT POWER (W)
THD+N vs. output power
THD+N vs. output power
THD+N vs. output power
f=20kHz
f=20kHz
f=1kHz
VDD=5V
SE mode
RL=32Ω
REV 1.0
f=20Hz
f=1kHz
VDD=3.3V
SE mode
RL=32Ω
THD+N (%)
f=20Hz
THD+N (%)
THD+N (%)
f=20kHz
f=20Hz
f=1kHz
VDD=2.4V
SE mode
RL=32Ω
OUTPUT POWER (W)
OUTPUT POWER (W)
OUTPUT POWER (W)
THD+N vs. output power
THD+N vs. output power
THD+N vs. output power
9
www.mosanalog.com
MS6821
VDD=5V, Po=1W
BTL, RL=8Ω
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
CHANNEL SEPARATION (dB)
CHANNEL SEPARATION (dB)
MOSA
VDD=5V, Po=60mW
SE, RL=32Ω
FREQUENCY (Hz)
FREQUENCY (Hz)
Channel separation vs. frequency
Channel separation vs. frequency
CAP=10uF
CAP=10uF
CAP=1uF
PSRR (dB)
PSRR (dB)
CAP=1uF
VDD=5V,
VRR=200mVrms,
BTL RL=8Ω
REV 1.0
VDD=5V,
VRR=200mVrms,
SE RL=32Ω
FREQUENCY (Hz)
FREQUENCY (Hz)
PSRR vs. frequency
PSRR vs. frequency
10
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
VDD=5V
DAC VFS
THD+N (%)
THD+N (%)
THD+N (%)
DAC inputs signal
(Ta=25℃, sampling rate=4fs, fs= 44.1kHz, f=1kHz, PA is Power Down mode; unless otherwise specified)
VDD=3.3V, VFS
DAC VFS
VDD=2.4V, VFS
DAC VFS
FREQUENCY (Hz)
FREQUENCY (Hz)
FREQUENCY (Hz)
THD+N vs. frequency
THD+N vs. frequency
THD+N vs. frequency
CHANNEL SEPARATION (dB)
CAP=10uF
PSRR (dB)
CAP=1uF
VDD=5V
DAC VFS
VDD=5V
VRR=0.2Vrms
.22dBV
SUPPLY VOLTAGE (V)
FREQUENCY (Hz)
Channel separation vs. supply voltage
PSRR vs. frequency
REV 1.0
11
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
AUDIO TIMING AND FORMAT
The MS6821 accepts input serial data formats of 16-bit word length. Left and right data words are time multiplexed.
The MSB must always be first.
LEFT
WS
RIGHT
tr
tHB
tf
tLB
tHW
tSW
BCK
tcr
DATA
tSD
LSB
Audio data format (BCK, WS, DATA)
Parameter
Symbol
tHD
MSB
Conditions
Min
Typ
Max
Unit
VIL
Input LOW level
2
-
-
V
VIH
Input HIGH level
-
-
0.8
V
f BCK
Input Clock Frequency
-
-
18.4
MHz
BR
Bit Rate Data Input
-
-
18.4
Mbits/s
fWS
Word Select Input
-
-
384
kHz
tr
tf
t Cr
t HB
t LB
t SD
t HD
t HW
t SW
Rise Time
-
-
12
ns
Fall Time
-
-
12
ns
Bit Clock Cycle Time
54
-
-
ns
Bit Clock High Time
15
-
-
ns
Bit Clock Low Time
15
-
-
ns
Data Set-up Time
12
-
-
ns
Data Hold Time to Bit Clock
2
-
-
ns
Word Select Hold Time
2
-
-
ns
Word Select Set-up Time
12
-
-
ns
REV 1.0
12
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
Right justified format
LEFT
WS
RIGHT
BCK
DATA 2
1
0
15
14
13
2
MSB
1
0
15
LSB
MSB
14
13
2
1
0
LSB
Left justified format
LEFT
WS
RIGHT
BCK
DATA
15
14
13
2
MSB
1
0
15
LSB
MSB
14
13
2
1
0
15
LSB
MSB
I2S format
WS
LEFT
RIGHT
BCK
1 BCK
DATA
15
MSB
REV 1.0
14
1 BCK
13
2
1
0
15
LSB
MSB
13
14
13
2
1
0
LSB
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
I2C CONTROL INTERFACE
Data are transmitted to and from the MCU to the MS6821 via the SDA and SCL. The SDA and SCL make up the
BUS interface. It should be noted that pull-up resistors must be connected to the positive supply voltage.
VDD
Rp
Rp
Pull up resistors
SDA (Serial Data Line)
SCL (Serial Clock Line)
MCU
MS6821
I2C interface protocol
The format consists of the following:
•A START condition
•A chip address byte including the chip address. (7bits)
•The 8th bit of the byte must be “0”.(write=0, read=1)
•The chip must always acknowledge the end of each transmitted byte.
•A data sequence (N-bytes + Acknowledge)
•A STOP condition
SDA
SCL
1-7
8
9
R/W
ACK
1-7
8
9
1-7
8
9
S
P
ADDRESS
START
CONDITION
DATA
ACK
DATA
ACK
STOP
CONDITION
I2C chip address
88H
1
0
0
0
1
7 bits address
REV 1.0
0
0
0
W
14
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
I2C data bytes description
MSB
LSB
Function
0
0
B2
B1
B0
A2
A1
A0
L-ch, Attenuation and Mute
0
1
B2
B1
B0
A2
A1
A0
R-ch, Attenuation and Mute
1
0
0
G2
G1
G0
S1
S0
L-ch, Input Gain and line Selection
1
0
1
G1
G0
S1
1
0
RPD
LPD
PDPR
S0
CAP
PD
R-ch, Input Gain and line Selection
1
G2
DAC
PD
1
1
1
MixL
MixR
AF1
S/B
AF0
Power Down Mode
Output mode (SE/BTL), Mixer control
and Audio format
Where Ax = 1.25dB/step; Bx = 10dB/step; Gx = 3dB/step
Attenuation and Mute
MSB
LSB
0
0
0
1
B2
B1
B0
L-ch, Attenuation and Mute
A2
A1
A0
0
0
0
0 dB
0
0
1
-1.25 dB
0
1
0
-2.5 dB
0
1
1
-3.75 dB
1
0
0
-5 dB
1
0
1
-6.25 dB
1
1
0
-7.5 dB
1
1
1
-8.75 dB
R-ch, Attenuation and Mute
0
0
0
0 dB
0
0
1
-10 dB
0
1
0
-20 dB
0
1
1
-30 dB
1
0
0
-40 dB
1
0
1
-50 dB
1
1
0
-60 dB
1
1
1
-70 dB
1
1
1
1
Initial state: Both L-ch and R-ch are mute-on.
REV 1.0
Function
1
1
Mute
15
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
Input Selector and Input Gain
LSB
MSB
1
0
0
1
0
1
G2
G1
G0
Function
L-ch, Input Gain and line Selection
S1
S0
0
0
Line 1 (L-ch or R-ch)
0
1
Line 2 (L-ch or R-ch)
1
0
Line 3 (L-ch or R-ch)
1
1
Line 4 (L-ch or R-ch)
R-ch, Input Gain and line Selection
0
0
0
0 dB
0
0
1
3 dB
0
1
0
6 dB
0
1
1
9 dB
1
0
0
12 dB
1
0
1
15 dB
1
1
0
18 dB
1
1
1
Initial state: L-ch1, R-ch1, Input gain is 0dB.
21 dB
Power Down Mode
MSB
1
1
0
DAC
PD
0
RPD
LSB
CAP
LPD PDPR
PD
Function
Power mode selection and power management
DAC is active mode
1
DAC is power down mode
0
R-ch PA output is active mode
1
R-ch PA output is power down mode
0
L-ch PA output is active mode
1
L-ch PA output is power down mode
0
Disable preparation for power off
1
Enable preparation for power off
0
Set the voltage of CAP to middle of supply voltage
1
Pull down CAP pin to ground
Initial state: All are the power down modes.
Enable the power down preparation before the chip will be shut down.
L-ch selector
& Gain
R-ch selector
& Gain
Attenuation
&
Mute
Mixer
LPD
-1
-1
Attenuation
&
Mute
Mixer
RPD
-1
-1
16-bit DAC
DACPD
REV 1.0
16
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
Output mode (SE/BTL), Mixer control and Audio format
LSB
MSB
1
1
1
S/B
MixL
MixR
AF1
Function
Output mode, mixer control and audio format
AF0
0
Output mode is BTL
1
Output mode is SE
0
L-ch of input selector is the only signal
1
Mix L-ch of input selector and L-ch of DAC
0
R-ch of input selector is the only signal
1
Mix R-ch of input selector and R-ch of DAC
0
0
Right justified format
1
0
Left justified format
0
1
I2S format
1
1
Initial state: Output mode is BTL mode, unmixed mode and Right justified format
I2C Initial code and status
LSB
MSB
Function
Initial status
0
0
1
1
1
1
1
1
L-ch, Attenuation and Mute
Mute On
0
1
1
1
1
1
1
1
R-ch, Attenuation and Mute
Mute On
1
0
0
0
0
0
0
0
L-ch, Input Gain and line Selection
Line1, 0dB
1
0
1
0
0
0
0
0
R-ch, Input Gain and line Selection
1
1
0
1
1
1
1
1
Power Down Mode
1
1
1
0
0
0
0
0
Output mode (SE/BTL), Mixer control
and Audio format
Line1, 0dB
All devices
power down
BTL, Unmixed,
Right justified
REV 1.0
17
www.mosanalog.com
MS6821
MOSA
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
Start
MS6821 Address
ACK
1
0
0
0
0
Line
1
1
1
ACK
1
L-ch = Line4, G = 3dB
0
1
0
0
1
1
1
ACK
Stop
ACK
Stop
R-ch = Line4, G = 3dB
The left and right input channel are independent.
Volume control
Set left channel to be -15dB and right channel to be 30dB.
Gain
Start
MS6821 Address
ACK
1
0
0
0
0
Line
1
1
1
ACK
L-ch = Line4, G = 3dB
1
0
1
0
0
1
1
1
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
Start
MS6821 Address
ACK
1
1
1
Mixer
1
1
1
Audio format
0
1
ACK
Stop
SE mode, All mix, I2S
x
REV 1.0
18
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
OPERATION PROCEDURE
The sequence of operation: power on→ activating → power down → activating → power off. The basic flowcharts are
as follows:
For HP mode and HP/BTL mode
Power On
Activating
Power Down
(Shut Down)
Power Off
All the Digital Interface Signals
Pull Low
Setting Input Gain IsFixed
Volume Down To Mute
Input Channels Mute On
Volume Down To Mute
Input Channels Mute On
I2C pull low
Audio inputs pull low
(BCK, WS, DATA)
V DD = GND
[ Enable Input & Input Gain ]
Code: Lch 100xxx00
Rch 101xxx00
[ Attenuation and Mute ]
Code: Lch 00111111 (3Fh)
Rch 01111111 (7Fh)
Disable Power Down
Power Down Preparation
Power On
V DD = Supply voltage
Default Status
[Attenuation & Mute]
Mute on (max attenuation)
[ Input Selector & Input Gain ]
L-ch1, R-ch1
0dB
[ Power Down Mode ]
Code: 11000010 (C2h)
Wait 0.5 sec
[ Power Down Mode ]
Code: 11000010 (C2h)
[ Input4 & Gain = 0dB]
Code: Lch 10000011 (83h)
Rch 10100011 (a3h)
wait 7 sec
[ Attenuation and Mute ]
Code: Lch 00111111 (3Fh)
Rch 01111111 (7Fh)
Power Down Preparation
[ Power Down Mode ]
Code: 11000010 (C2h)
[ Input4 & Gain = 0dB]
Code: Lch 10000011 (83h)
Rch 10100011 (a3h)
wait 7 sec
PDPR = 0
[ Power Down Mode ]
Code: 11000000 (C0h)
Wait 0.5 sec
Power Down All The Devices
Only CAPPD Keep Activating
[ Power Down Mode ]
Code: 11011110 (DEh)
[ Power Down Mode ]
All power down status
Mute Off And Volume Up/Down
Step By Step
[ Output Mode & Mixer & Format ]
BTL mode
Inputs not mixed with DAC signal
RJF format
[ Attenuation and Mute ]
Code: Lch 00xxxxxx
Rch 01xxxxxx
Keep All The Digital Interface
Signals Unchanged
Power Down All The Devices
Pull Down CAP Pin To Ground
[ Power Down Mode ]
Code: 11011111 (DFh)
All the Digital Interface Signals
Pull Low
I2C pull low
Audio inputs pull low
(BCK, WS, DATA)
Power Off
Disconnect V DD
VDD will be fell down to 0V
REV 1.0
19
www.mosanalog.com
MOSA
MS6821
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
For BTL mode only
Power On
Activating
Power Down
(Shut Down)
Power Off
All the Digital Interface Signals
Pull Low
Setting Input Gain IsFixed
Volume Down To Mute
Input Channels Mute On
Volume Down To Mute
Input Channels Mute On
I2C pull low
Audio inputs pull low
(BCK, WS, DATA)
V DD = GND
[ Input Gain ]
Code: Lch 100xxx00
Rch 101xxx00
[ Attenuation and Mute ]
Code: Lch 00111111 (3Fh)
Rch 01111111 (7Fh)
Disable Power Down
Power On
V DD = Supply voltage
Pull Down CAP Pin To Ground
[ Power Down Mode ]
Code: 11000000 (C0h)
Wait 0.5 sec
[ Power Down Mode ]
Code: 11000001 (C1h)
Wait 0.1 sec
[ Attenuation and Mute ]
Code: Lch 00111111 (3Fh)
Rch 01111111 (7Fh)
Pull Down CAP Pin To Ground
[ Power Down Mode ]
Code: 11000001 (C1h)
Wait 0.1 sec
Default Status
[Attenuation & Mute]
Mute on (max attenuation)
[ Input Selector & Input Gain ]
L-ch1, R-ch1
0dB
Mute Off And Volume Up/Down
Step By Step
Power Down All The Devices
[ Attenuation and Mute ]
Code: Lch 00xxxxxx
Rch 01xxxxxx
[ Power Down Mode ]
Code: 11011111 (DFh)
Power Down All The Devices
[ Power Down Mode ]
Code: 11011111 (DFh)
[ Power Down Mode ]
All power down status
Keep All The Digital Interface
Signals Unchanged
[ Output Mode & Mixer & Format ]
BTL mode
Inputs not mixed with DAC signal
RJF format
All the Digital Interface Signals
Pull Low
I2C pull low
Audio inputs pull low
(BCK, WS, DATA)
Power Off
Disconnect V DD
VDD will be fell down to 0V
REV 1.0
20
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
APPLICATION INFORMATION
A base application circuit
MS6821
2.4~5.5V
Supply
21
1uF
0.1uF
4.7uF
MCU
8
VDD
19
PVDDL
VSS
PVSSL
PVSSR
10
PVDDR
13
2.4~5.5V
Power Amplifier Supply
1uF
16
3
CAP
27
SCL
28
SDA
2
BCK
DACL
15
100k
1
WS
DACR
14
HP_sense
1uF
VDD
10uF
Audio
Decoder
28
DATA
25
LIN1
24
LIN2
23
LIN3
100k
10uF
L channel
R channel
22
LIN4
4
RIN1
5
RIN2
6
RIN3
7
RIN4
MCU
1uF
10uF
100uF
OUTL-
20
OUTL+
18
OUTR-
9
OUTR+
11
RL
8Ω
1k
Headphone Jack
100uF
RL
8Ω
1k
10uF
Using LINE_IN function -- Built-in DAC power down
There are two functions at pin14 and pin15, one is built-in DAC output channel, and the other is LINE_IN.
The DAC must be power down if the two pins are operated in LINE_IN function.
LIN1
LIN2
LIN3
LIN4
RIN4
RIN3
RIN2
RIN1
L-ch selector
& Gain
R-ch selector
& Gain
Attenuation
&
Mute
Mixer
Attenuation
&
Mute
Mixer
n
ow
D
16-bit
erDAC
Po
w
15
14
LINE_INR
LINE_INL
Audio signal
REV 1.0
21
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
Output mode operation -- SE mode and BTL mode
The output mode has two modes, SE mode and BTL mode. The mode is selected by I2C code via a MCU.
In BTL mode, the outputs of A1(B1) and A2(B2) are then used to drive the bridged-tied load
A1
OUTR-
-1
RL
4Ω / 8Ω
A2
OUTR+
-1
B1
OUTL-
-1
RL
4Ω / 8Ω
B2
OUTL+
-1
I2C
Interface
SCL SDA
In the SE mode, the amplifiers A2 and B2 are shutdown, and then the amplifiers will be a high output impedance state.
Headphone
Jack
A1
OUTR-
-1
100uF
RL
16Ω / 32Ω
1k
A2
Shutdown
-1
B1
100uF
OUTL-
-1
1k
B2
Shutdown
-1
I2C
Interface
SCL SDA
Headphone sense
The output mode is SE or BTL that is decided by a headphone. It has to be set SE mode when a headphone is plug-in
status. The output mode is selected by I2C command code by a MCU. Please note that the MS6821 don’t detect a
headphone automatically. Thus a detect function is executed via a MCU. An operation diagram is as follows:
VDD
MS6821
SCL
27
SDA
28
100k
100k
MCU
1uF
HP_sense
100uF
OUTL-
20
OUTL+
18
OUTR-
9
OUTR+
11
RL
8Ω
1k
Headphone Jack
100uF
RL
8Ω
1k
The HP_sense pin is high when a headphone is plug-in.
The HP_sense pin is low when a headphone is not plug-in.
REV 1.0
22
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
EXTERNAL DIMENSIONS
TSSOP28 (Thermal Pad)
D
D2
Detail A
E2
E1 E
C
A2
A
θ
A1
B
e
L
y
Dimension in mm
L1
Dimension in inches
Symbol
Min
REV 1.0
Nom
Max
Min
Nom
Max
A
-
-
1.15
-
-
0.045
A1
0.00
-
0.10
0.000
-
0.004
A2
0.80
1.00
1.05
0.031
0.039
0.041
b
0.19
-
0.30
0.007
-
0.012
C
0.09
-
0.20
0.004
-
0.008
D
9.60
9.70
9.80
0.378
0.382
0.386
D2
3.70
3.80
3.90
0.146
0.150
0.154
E
6.20
6.40
6.60
0.244
0.252
0.260
E1
4.30
4.40
4.50
0.169
0.173
0.177
E2
2.70
2.80
2.90
0.106
0.110
0.114
e
-
0.65
-
-
0.026
-
L
0.45
0.60
0.75
0.018
0.024
0.030
L1
0.90
1.00
1.10
0.035
0.039
0.043
θ
0
-
8
0
-
8
y
-
-
0.10
-
-
0.004
o
o
o
23
o
www.mosanalog.com
MOSA
MS6821
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
DEMO BOARD
1
2
3
8
4
7
5
6
Function description
Label 1: Supply Input
Supply voltage range is 2.4V to 5.5V.
Label 2: Headphone Jack
Used 3.5mm diameter of headphone with 32ohm
Label 3: DAC output
Connected to a post-power-amplifier, as active speaker.
In addition, using volume control for DAC, this output can connected to input section (label 6) as feedback.
Label 4: Speaker Output
Connected to speaker with 8ohm or 4 ohm
Label 5: Digital Signal Input
Connected to digital audio formats as I2S, Right Justified and Left Justified.
Label 6: Signal Input
There are four stereo inputs in the section. Please input stereo audio signal, as music or sine wave.
Label 7: Reset
All I/O pins are reset to default values.
Label 8: LED Indicator
The LEDs indicate the chip status and IR received status. It keeps on a light state when the MS6821 is active. The other
hand, keeps on a dark state when the MS6821 is power-off. It is red-dark blink once when the MCU has received the
function code correctly.
REV 1.0
24
www.mosanalog.com
MOSA
MS6821
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
SE mode and BTL mode operation
The headphone controls operational mode. System enters SE mode when headphone jack is empty.
When a set of headphone plugged into the jack, the system switched to BTL mode.
IR Controller
Power ON/OFF : The power key.
Press the key once to set power-on or power-off for MS6821.
IN1~IN4 : Analog input channel.
Press the key once to select input channel.
The default state is IN1.
VOL+, VOL- : The volume control keys.
The volume control in 1.25dB/step as the switch is pressed once, the range is –77.5dB to 0dB.
The default value is -20dB.
Gain+, Gain- : The gain control keys.
The gain control in 3dB/step as the switch is pressed once, the range is 0dB to 21dB.
The initial value is 0dB.
Mute : The mute key
Press the key once to set mute-on or mute-off.
The default state is mute-off.
PD/Active : The power down key.
Press the key once to set power-down or activation for MS6821.
Mix_LR ON/OFF : The mixing DAC signal keys.
Mix_L ON, mixed the left channel of DAC with the left channel of input signal.
Mix_R OFF, unmixed the right channel of DAC with the right channel of input signal.
I2S, LJF, RJF: The digital input format keys.
There are three formats can be selected that is I2S, Left justified and Right justified.
REV 1.0
25
www.mosanalog.com
MS6821
MOSA
4 Stereo inputs / 2W PA output integrated Audio DAC and Volume Control
Circuit
J1
AVDD
R1
1
2
DVDD
+
+
C3
0.1u
C4
1u
S1
J13
R3
RX
TX
RST
C6
20P
C7
20P
U1
2
LCD
Y1
24M
1
+
W2
JUMP
R18 R19 R20 R21
1K 1K 1K 1K
1
RX
2
3
TX
4
5
IR_IN 6
SCL
7
8
SDA
HP_IN 9
10
10K
+
1
2
3
+ C2
10u
DGND
RST
P3.0
P3.1
XTAL2
XTAL1
P3.2
P3.3
P3.4
P3.5
GND
R2
10K
IN1
D1
IN2
D2
IN3
D3
IN4
D4
Q1
VS
W1
Jumper
GND
IR
IR
AGND
DGND
+ C5
470P
DGND
R4
AVCC
100K
C12 +
+
C8
0.1u
2
R22 100K
AT89C4051
+
1
47u
3
J2
1
2
AVCC
C1 +
IR_IN
20
19
18
17
16
15
14
13
12
11
Vcc
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
P3.7
220
1u
C9
1u
J3
R5
R6
R7
1
2
3
4
1K
1K
1K
C10 0.47u
IN4
R
L
G
1
2
3
10u
C14
10u
C15
10u
C16
10u
C20
10u
C22
10u
C23
10u
+
+
C13
+
1K
1K
R14
R15
1K
1K
R16
R17
1K
1K
SPK_R
C19 100u
WS
BCK
REF
R1
R2
R3
R4
Vss
PVDDR
-OUTR
+OUTR
GND
PVSSR
DAC_R
+
+
1K
1K
+
SP1
R12
R13
+
1
2
3
R10
R11
10u
+
IN3
J8
R
L
G
1
2
3
C11
DATA
SCL
SDA
L1
L2
L3
L4
VDD
PVDDL
-OUTL
+OUTL
GND
PVSSL
DAC_L
28
27
26
25
24
23
22
21
20
19
18
17
16
15
MS6821
C21
1u
SCL
SDA
SP2
+
C17
1u
SPK_L
+
+
R8
1K
C24
100u
J10
1
2
3
C25
100u
C18
100u
L
HP
R
G
HEADPHONE
J9
+
IN2
J6
R
L
G
1
2
3
+
IN1
J5
R
L
G
U2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
+
DAC_IN
J4
+
R9
1K
1
2
3
OUT
DAC_OUT
J12
R
L
G
DAC_OUT
1
2
3
AGND
REV 1.0
26
www.mosanalog.com
Similar pages