DATASHEET SEARCH SITE | WWW.ALLDATASHEET.COM

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 17

Technical content

Gain And Attenuation Volume Controller IC REV 6 1 www.mosanalog.com Gain and Attenuation Volume Controller IC

4 Sets of Stereo Input, Low voltage

Gain and Attenuation 15~-79dB

FEATURES

‧ Operation range: 2.7V~6.5V. ‧ Low power consumption. ‧ Gain/Attenuation: 15dB to –79dB. ‧ +1dB/step, -1dB/step and -10dB/step are controlled independently. ‧ Good PSRR and low pop noise. ‧ I2C interface. ‧ Housed in 16 pin SOP, SSOP package.

APPLICATIONS

‧ Multimedia system. ‧ Hi-Fi audio system. ‧ MP3,PDA.

DESCRIPTION

The MS6258 is a stereo audio volume controller IC with 4 sets of stereo input. It uses CMOS technology specially for the low voltage application with low noise, rail-to-rail output. The MS6258 provide an I2C control interface with gain / attenuation range of 15dB to -79dB. The gain and attenuation, +1dB/step, -1dB/step and -10dB/step are controlled independently. The initial condition is set to be maximum attenuation –79dB (-70dB + -9dB), gain 0dB and mute on mode when the power is up. BLOCK DIAGRAM REF SDA SCL R-OUT L-OUT I2C Interface -10dB/Step-1dB/Step1dB/Step Serial Bus Decoder and Latches Reference Circuit 1dB/Step -1dB/Step -10dB/Step Mute Control Attenuation 0~-79dBGain 0~15dB Gain 0~15dB Attenuation 0~-79dB R-IN2 R-IN3 L-IN1 L-IN2 L-IN3 R-IN1 R-IN4 L-IN4 VREF

Gain And Attenuation Volume Controller IC REV 6 2 www.mosanalog.com PIN CONFIGURATION Symbol Pin Description A.O. 1 Address option * L-IN4 2 4th left channel input L-IN3 3 3rdleft channel input L-IN2 4 2nd left channel input L-IN1 5 1st left channel input L-OUT 6 Left channel output VSS 7 Ground SDA 8 I2C data input SCL 9 I2C clock input VDD 10 Positive supply voltage R-OUT 11 Right channel output R-IN1 12 1st right channel input R-IN2 13 2nd right channel input R-IN3 14 3rd right channel input R-IN4 15 4th right channel input VREF 16 Reference voltage = 1/2VDD MS6258 A.O. 1 L-IN3 L-IN2 L-IN1 L-OUT V SS SDA SCL VREF R-IN3 R-IN2 R-IN1 R-OUT V DD L-IN4 R-IN4 MS6258 Note: 1. Pin 1 is set to Lo or open , the address code is 88H (10001000B). 2. Pin 1 is set to Hi , the address code is 8CH (10001100B). 3 . T h e VREF connects a capacitor to Vss.

ORDERING INFORMATION

Package Part number Packag ing Marking Transport Media 16-Pin SOP (lead free) MS6258GTR MS6258ASG 2.5k Units Tape and Reel 16-Pin SOP (lead free) MS6258GU MS6258ASG 50 Units Tube 16-Pin SSOP (lead free) MS6258SSGTR MS6258G 2.5k Units Tape and Reel 16-Pin SSOP (lead free) MS6258SSGU MS6258G 100 Units Tube RoHS Compliance ABSOLUTE MAXIMUM RATINGS Symbol Parameter Rating Unit VDD Supply Voltage 6.5 V VESD Electrostatic Handling -4500 to 4500 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 SOP16 SSOP16 210 210 ℃/W

Gain And Attenuation Volume Controller IC REV 6 3 www.mosanalog.com OPERATING RATINGS Symbol Parameter Min Typ Max Unit VDD Supply Voltage 2.7 - 6.5 V 5V ELECTRICAL CHARACTERISTICS (VDD=5.0V, VSS=0V, Attenuation=0dB, Gain=0dB, f=1kHz, VO=0dBV, VREF Cap=10uF; unless otherwise specified) Symbol Parameter Conditions Min Typ Max Unit DC Characteristics IQ Quiescent current - 3.8 4.2 mA Max gain - 15 - dB AGA Gain/Attenuation Max attenuation - -79 - dB ASTEP Gain/Attenuation step - 1 - dB EGA Gain/Attenuation step error - 0.3 - dB CS Channel separation 95 105 - dB PSRR Power supply rejection ratio Vripple = -20dBV, 100Hz - 53 - dB MUTE Mute Attenuation Vin=0dBV - 85 - dB Rin Input Impedance 18 20 - kΩ Rout Output Impedance - 50 100 Ω AC Characteristics Vo Maximum output voltage swing (THD+N)/S < 0.1% - 4.8 - Vpp THD+N Total harmonic distortion plus noise - -69 -64 dB S/N Signal-to-noise ratio VO=4.5Vpp 95 100 - dB Bus Characteristics VIH Bus high input level - - 0.7VDD V VIL Bus low input level 0.3VDD - - V

Gain And Attenuation Volume Controller IC REV 6 4 www.mosanalog.com 3.3V ELECTRICAL CHARACTERISTICS (VDD=3.3V, VSS=0V, Attenuation=0dB, Gain=0dB, f=1kHz, VO=-3dBV, VREF Cap=10uF; unless otherwise specified) Symbol Parameter Conditions Min Typ Max Unit DC Characteristics IQ Quiescent current - 3.7 4.1 mA CS Channel separation 90 100 - dB PSRR Power supply rejection ratio Vripple = -20dBV, 100Hz - 52 - dB MUTE Mute Attenuation Vin=-3dBV - 80 - dB AC Characteristics Vo Maximum output voltage swing (THD+N)/S < 0.1% - 3 - Vpp THD+N Total harmonic distortion plus noise - -69 -64 dB S/N Signal-to-noise ratio 85 90 - dB 2.7V ELECTRICAL CHARACTERISTICS (VDD=2.7V, VSS=0V, Attenuation=0dB, Gain=0dB, f=1kHz, VO=-3dBV, VREF Cap=10uF; unless otherwise specified) Symbol Parameter Conditions Min Typ Max Unit DC Characteristics IQ Quiescent current - 3.2 3.6 mA CS Channel separation 90 100 - dB PSRR Power supply rejection ratio Vripple = -20dBV, 100Hz - 50 - dB MUTE Mute Attenuation Vin=-3dBV - 80 - dB AC Characteristics Vo Maximum output voltage swing (THD+N)/S < 0.3% - 2 - Vpp THD+N Total harmonic distortion plus noise - -69 -64 dB S/N Signal-to-noise ratio 85 90 - dB

Gain And Attenuation Volume Controller IC REV 6 5 www.mosanalog.com TYPICAL PERFORMANCE CHARACTERISTICS (Ta=25℃, VREF Cap=10uF; unless otherwise specified) THD+N (%) OUTPUT VOLTAGE (dBV) THD+N (%) OUTPUT VOLTAGE (dBV) THD+N (%) OUTPUT VOLTAGE (dBV) THD+N vs. output voltage THD+N vs. output voltage THD+N vs. output voltage f=20Hz f=20Hz f=20Hz f=1kHz f=20kHz f=20kHzf=1kHz f=1kHz f=20kHz VDD=5V VDD=2.7V VDD=3.3V THD+N (%) FREQUENCY (Hz) CHANNEL SEPARATION (dB) FREQUENCY (Hz) QUIESCENT CURRENT (mA) SUPPLY VOLTAGE (V) THD+N vs. frequency Channel separation vs. frequency Quiescent current vs. supply voltage VDD=5V VO=0dBVVDD=3.3V VO=-3dBVVDD=2.7V VO=-3dBV VDD=5V VO=0dBV VDD=2.7V VO=-3dBV VDD=3.3V VO=-3dBV PSRR (dB) FREQUENCY (Hz) PSRR (dB) FREQUENCY (Hz) PSRR (dB) FREQUENCY (Hz) PSRR vs. frequency PSRR vs. frequency PSRR vs. frequency CAP=22uF CAP=22uF CAP=22uF CAP=10uF CAP=10uF CAP=10uF CAP=2.2uF CAP=2.2uF CAP=2.2uF VDD=5V VRR=-20dBV VDD=3.3V VRR=-20dBV VDD=2.7V VRR=-20dBV

Gain And Attenuation Volume Controller IC REV 6 6 www.mosanalog.com I2C BUS DESCRIPTION Start and stop conditions A start condition is activated when the SCL is set to HIGH and SDA shifts from HIGH to LOW state. The stop condition is activated when SCL is set to HIGH and SDA shifts from LOW to HIGH state. Please refer to the timing diagram below. SDA SCL Start Stop SCL : Serial Clock Line, SDA : Serial Data Line Data validity A data on the SDA line is considered valid and stable only when the SCL signal is in HIGH state. The HIGH and LOW states of the SDA line can only change when the SCL signal is LOW. Please refer to the figure below. SDA SCL Data line stable, Data valid Data change allowed Byte format Ev ery byte transmitted to the SDA line consists of 8 bits. Each byte must be followed by an acknowledge bit. The MSB is transmitted first. Acknowledge D uring the Acknowledge clock pulse, the master (up) put a resistive HIGH level on the SDA line. The peripheral (audio processor) that acknowledges has to pull-down (LOW) the SDA line during the Acknowledge clock pulse so that the SDA line is in a stable LOW state during this clock pulse. Please refer to the diagram below. SCL SDA MSB Acknowledge 12 3 789 Start The audio processor that has been addressed has to generate an Acknowledge after receiving each byte, otherwise, the SDA line will remain at the HIGH level during the ninth (9th) clock pulse. In this case, the master transmitter can generate the STOP information in order to abort the transfer.

Gain And Attenuation Volume Controller IC REV 6 7 www.mosanalog.com Timing of SDA and SCL bus lines tf S tLOW tHD;STA tr tHD;DAT tSU;DAT tf tHIGH tHD;STA tSU;STA Sr S P tSP tSU;STO tr tBUF SDA SCL Standard mode Symbol Parameter Min Max Unit fSCL SCL clock frequency 0 100 kHz tHD:STA Hold time (repeated) START condition. After this period, the first clock pulse is generated 4.0 - us tLOW LOW period of the SCL clock 4.7 - us tHIGH HIGH period of the SCL clock 4.0 - us tSU:STA Set-up time for a repeated START condition 4.7 - us tHD:DAT Data hold time: For I2C-bus devices 0 3.45 us tSU:DAT Data-set-up time 250 - ns tr Rise time of both SDA and SCL signals - 1000 ns tf Fall time of both SDA and SCL signals - 300 ns tSU:STO Set-up time for STOP condition 4.0 - us tBUF Bus free time between a STOP and START condition 4.7 - us Cb Capacitive load for each bus line - 400 pF VnL Noise margin at the LOW level for each connected device (including hysteresis) 0.1VDD - V VnH Noise margin at the HIGH level for each connected device (including hysteresis) 0.2VDD - V

Gain And Attenuation Volume Controller IC REV 6 8 www.mosanalog.com BUS INTERFACE Data are transmitted to and from the MCU to the MS6258 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. SDA (Serial Data Line) Rp Rp SCL (Serial Clock Line) Pull up resistors VDD MCU MS6258 Interface protocol The fo rmat consists of the following ‧A START condition ‧A chip address byte including the MS6258 address. (7bits) ‧The 8th bit of the byte must be “0”.(write=0, read=1) ‧MS6258 must always acknowledge the end of each transmitted byte. ‧A data sequence (N-bytes + Acknowledge) ‧A STOP condition SCL SDA 1-7 8 9 1-7 8 9 981-7 S P ADDRESS R/ W-- ACK ACK ACK DATA DATASTART CONDITION STOP CONDITION Protocol Address Pin1(A.O.) = Low or Open 1000 00 10 7 bits address MS6258 address W Pin1(A.O.) = High 1000 00 11 7 bits address MS6258 address W

Gain And Attenuation Volume Controller IC REV 6 9 www.mosanalog.com Data bytes description Functi on bits MSB LSB Function 1 1 1 1 1 1 1 1 Function off (-79dB) 1 1 0 1 A3 A2 A1 A0 2-channel, -1dB/step 1 1 1 0 0 B2 B1 B0 2-channel, -10dB/step 1 0 1 0 A3 A2 A1 A0 Left channel, -1dB/step 1 0 1 1 0 B2 B1 B0 Left channel, -10dB/step 0 0 1 0 A3 A2 A1 A0 Right channel, -1dB/step 0 0 1 1 0 B2 B1 B0 Right channel, -10dB/step 1 1 0 0 C3 C2 C1 C0 2-channel, +1dB/step 0 1 1 0 C3 C2 C1 C0 Left channel, +1dB/step 0 1 0 1 C3 C2 C1 C0 Right channel, +1dB/step 0 0 0 0 Stereo1 0 0 0 1 Stereo2 0 0 1 0 Stereo3 0 1 0 0 0 0 1 1 Stereo4 0 0 0 1 Power off preparation (pop noise free) 1 0 0 1 2-channel, mute On 0 1 1 1 1 0 0 0 2-channel, mute Off Gain / Attenuation bits A3 A2 A1 A0 Attenuation (dB) Gain (dB) - B2 B1 B0 C3 C2 C1 C0 A B C 0 0 0 0 0 0 0 0 0 0 1 -1 -10 +1 0 0 1 0 -2 -20 +2 0 0 1 1 -3 -30 +3 0 1 0 0 -4 -40 +4 0 1 0 1 -5 -50 +5 0 1 1 0 -6 -60 +6 0 1 1 1 -7 -70 +7 1 0 0 0 -8 - +8 1 0 0 1 -9 - +9 1 0 1 0 - - +10 1 0 1 1 - - +11 1 1 0 0 - - +12 1 1 0 1 - - +13 1 1 1 0 - - +14 1 1 1 1 - - +15 1. Attenuation bit, Ax = -1dB/step, Bx = -10dB/step 2. Gain bit, Cx = +1dB/step 3. Total gain / attenuation equal Ax + Bx + Cx. 4. The function of power off preparation is to prevent pop noise when power off.

Gain And Attenuation Volume Controller IC REV 6 10 www.mosanalog.com Example Mute off The initial condition is –79dB and mute on when power on. The first command must disable the mute function. Data byte 1000 00 MSB

10 ACKS t a r t 0111 00 10

MS6258 address 2-ch, Mute off LSB StopACK Set gain of 2 channel at 0dB, and selected stereo 1 input. ACK Stop1100 00 00 2-ch, +1dB/step, 0dB ACKStart MS6258 Address ACK 1110 00 00 2-ch, -10dB/step, 0dB 1101 00 00 ACK 2-ch, -1dB/step, 0dB 0100 0 00 ACK Stereo 1 input Set gain of 2 channel at 6dB, and selected stereo 2 input. The value of attenuation must be set zero when the volume from attenuation to gain. ACK Stop1100 10 01 2-ch, +1dB/step, 6dB ACKStart MS6258 Address ACK 1110 00 00 2-ch, -10dB/step, 0dB 1101 00 00 ACK 2-ch, -1dB/step, 0dB ACK 0100 0 00 1 Stereo 2 input Set gain of 2 channel at -3dB, and selected stereo 3 input. The value of gain must be set zero when the volume from gain to attenuation. ACKStart MS6258 Address ACK 1100 00 00 2-ch, +1dB/step, 0dB 1110 00 00 ACK 2-ch, -10dB/step, 0dB ACK1101 11 00 2-ch, -1dB/step, -3dB ACK Stop0100 1 00 0 Stereo 3 input Set attenuation of left channel at –33dB, and selected stereo 4 input. ACKStart MS6258 Address ACK 1011 11 00 L-ch, -10dB/step, -30dB 1010 11 00 ACK L-ch, -1dB/step, -3dB ACK0100 11 00 Stereo 4 input Stop

Gain And Attenuation Volume Controller IC REV 6 11 www.mosanalog.com An example of the volume control. (Volume = Ax + Bx + Cx) Set two channels at 0dB. (Ax + Bx + Cx = 0dB + 0dB + 0dB) next, the volume changes from 0dB to -9dB. (Ax + Bx + Cx = -9dB + 0dB + 0dB) next, the volume changes from -9dB to -19dB. (Ax + Bx + Cx = -9dB + -10dB + 0dB) next, the volume changes from -19dB to -20dB. (Ax + Bx + Cx = 0dB + -20dB + 0dB) next, the volume changes from -20dB to -14dB. (Ax + Bx + Cx = 0dB + -20dB + 6dB) next, the volume changes from -14dB to +6dB. (Ax + Bx + Cx = 0dB + 0dB + 6dB) Note: We suggest the gain is set as the power is up. For example, set and fix the gain +10dB, the volume range will be controlled from +10dB to –69dB. ACKStart MS6258 Address Stop1110 10 00ACK 2-ch, -10dB/step, -20dB 1101 00 00 ACK 2-ch, -1dB/step, 0dB

Gain And Attenuation Volume Controller IC REV 6 12 www.mosanalog.com

APPLICATION INFORMATION

9 SCL

47uF0.1uF Stereo Signal 1 MS6258 L-IN1 R-IN1 10uF 10uF L-IN2 R-IN2 10uF 10uF L-IN3 R-IN3 10uF 10uF L-IN4 R-IN4 10uF 10uF Stereo Signal 2 Stereo Signal 3 Stereo Signal 4 10k L-OUT 6 10uF R-OUT 11 Power Amplifier10uF 10k A.O VREF 10uF Lo : Addr 10001000B Hi : Addr 10001100B Basic application flowchart Volume Control for Attenuation volume down to -79 dB step by step Enable Mute Function mute on Power down VDD = 0V Pop Noise Free power off preparation wait 0.5 sec Procedure Of Power DownProcedure Of Power Up Setting Gain Set the max signal Initial Conditions function off (-79dB) mute on Pop Noise Free wait 1 sec Disable Mute Function mute off Power up VDD = 5V Volume Control for Attenuation volume up/down step by step 1. The initial condition is –79dB, gain 0dB and mute on when power on. 2. In order to prevent pop noise when power on, please wait 1 sec to transmit I2C command.

Gain And Attenuation Volume Controller IC REV 6 13 www.mosanalog.com EXTERNAL DIMENSIONS SOP16 F H D A A1Be h x 45 C Detail A 0.25mm Detail A L θ SSOP16 AA2 D E1 E Detail A be ZD H x 45 c Detail A L R θ Dimension in mm Dimension in inchSymbol Min Max Min Max A 1.35 1.75 0.053 0.069 A1 0.10 0.25 0.004 0.010 A2 1.50 0.059 b 0.20 0.30 0.008 0.012 c 0.18 0.25 0.007 0.010 e 0.635 BASIC 0.025 BASIC D 4.80 5.00 0.189 0.197 E 5.79 6.20 0.228 0.244 E1 3.81 3.99 0.150 0.157 L 0.41 1.27 0.016 0.050 h 0.25 0.50 0.010 0.020 L1 0.254 BASIC 0.010 BASIC ZD 0.229 REF 0.009 REF R1 0.20 0.33 0.008 0.013 R 0.20 0.008 θ 0o 8 o 0 o 8 o θ1 0o 0o θ2 5o 15 o 5 o 15 o Dimension in mm Dimension in inchSymbol Min Max Min Max A 1.35 1.75 0.0532 0.0688 A1 0.10 0.25 0.0040 0.0098 B 0.33 0.51 0.013 0.020 C 0.19 0.25 0.0075 0.0098 e 1.27 BSC 0.050 BSC D 9.80 10.00 0.3859 0.3937 H 5.80 6.20 0.2284 0.2440 E 3.80 4.00 0.1497 0.1574 L 0.40 1.27 0.016 0.050 h 0.25 0.50 0.0099 0.0196 θ 0o 8 o 0 o 8 o

Gain And Attenuation Volume Controller IC REV 6 14 www.mosanalog.com TAPE AND REEL (Unit : mm) SOP16 4.00 1.50 MIN SECTION A - A 2.00 1.0 8.00 2.10 R 0.3 MAX 0.30 0.5 1.5 +0.1/-0.0 6.50 10.30 R 0.5 TYP A A 7.5 0.1 16.0 0.3 1.75 1.0 SSOP16 3.0 3.6 12.0 6.9 8.0 5.5 1.75 5.4 2.0 4.0 1.5+0.1/-0.0 DIA 0.5 Radius Typical1.5 MIN 0.30 0.3R MAX 1.72.0 0.05 0.05 0.05 0.3

Gain And Attenuation Volume Controller IC REV 6 15 www.mosanalog.com DEMO BOARD 6 1 5 Function description Label 1: Supply Voltage The AVDD and DVDD should be the same supply voltage, the supply range is 2.7~6.5 VDC. Label 2: LED Indicator The LEDs indicate the chip status and IR received status. It keeps on a light state when the MS6257 is active. The other hand, keeps on a dark state when the MS6257 is power-off. It is red-dark blink once when the MCU has received the function code correctly. Label 3: Reset All I/O pins are reset to default values. Volume 0dB and Mute on. Label 4: Input section Please input stereo audio signal, as music or sine wave. Label 5: I2C Address option As the jump is closed, the address code is 88H. As the jump is open, the address code is 8CH. Label 6: Output section Please connected to a post-power-amplifier, as stereo speaker.

Gain And Attenuation Volume Controller IC REV 6 16 www.mosanalog.com IR Controller 2-CH+ : The volume-up switch for stereo channel The volume increase by +1dB as the switch is pressed once, the maximum value is up to +15dB. The default value is 0dB on initial status. L-channel and R-channel are active synchronic. 2-CH- : The volume-down switch for stereo channel The volume decrease by -1dB as the switch is pressed once, the minimum value is up to -79dB. L-channel and R-channel are active synchronic. LCH+ : The volume-up switch for left channel The volume increase by +1dB as the switch is pressed once, the maximum value is up to +15dB. LCH- : The volume-down switch for left channel The volume decrease by -1dB as the switch is pressed once, the minimum value is up to -79dB. RCH+ : The volume-up switch for right channel The volume increase by +1dB as the switch is pressed once, the maximum value is up to +15dB. RCH- : The volume-down switch for right channel The volume decrease by -1dB as the switch is pressed once, the minimum value is up to -79dB. MUTE : Press the switch once to enter mute-on or mute-off. The default status is mute-off on initial status. IN1~IN4 : Stereo channel selection There are four sets, stereo 1 to 4. The default channel is stereo 1 on initial status.

Gain And Attenuation Volume Controller IC REV 6 17 www.mosanalog.com Circuit 12M RST1 P3.02 P3.13 XTAL24 XTAL15 P3.26 P3.37 P3.48 P3.59 GND10 Vcc 20 P1.7 19 P1.6 18 P1.5 17 P1.4 16 P1.3 15 P1.2 14 P1.1 13 P1.0 12 P3.7 11 AT89CX51 DVCC 10K RST IR_IN + C2 10u 20P 20P DVCC VS3 IR1 GND2 IR 10K 220 + C3 70p +C1 47u IR_IN SDA SCL J4 AVDD +C9 10u +C11 10u C12 10u C810u C1010u + C7 0.1u AVDD Jum per OUTPUT IN1 LED LCD RX TX RX TX A.O.1 L-IN42 L-IN33 L-IN24 L-IN15 L-OUT6 VSS7 SDA8 SCL 9VDD 10R-OUT 11R-IN1 12R-IN2 13R-IN3 14R-IN4 15CAP 16 U3 M S6258 + C6 10u SCLSDA 10K 10K 10K 10K 1 2 3 4 5 6 7 8 9 10 INPUT J8 OUTPUT + C1 3 0.1u + C14 10u J9 A.O. AVDD C19 10u +C20 10u J12 IN2 C17 10u +C18 10u J11 IN3 C15 10uJ10 IN4 ++C16 10u R14 10K R13 10K R12 10K R11 K R10 K 10K