MS6257 MOSA | Alldatasheet

Document overview

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

Technical content

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 1 www.mosanalog.com Gain and Attenuation Volume Controller IC One Set of Stereo Input, Low voltage Gain and Attenuation 15~-79dB

FEATURES

‧Operation range: 2.7V~5.5V ‧Low power consumption ‧Gain/Attenuation: 15dB to –79dB at 1dB/step ‧Housed in 8 pin SOP package ‧I2C interface

APPLICATIONS

‧Multimedia system ‧Hi-Fi audio system ‧MP3, PDA ‧Cross-reference PT2257, PT2259

DESCRIPTION

The MS6257 is the stereo audio volume controller IC. It uses CMOS technology specially for the low voltage application with low noise, rail-to-rail output. The MS6257 provide an I2C control interface with gain / attenuation range of 15dB to –79dB, 1dB/step. The initial condition is set to be maximum attenuation –79dB and mute on mode when the power is up. PIN CONFIGURATION Symbol Pin Description L-IN 1 Left channel input L-OUT 2 Left channel output VSS 3 Ground SDA 4 I2C data input SCL 5 I2C clock input VDD 6 Positive supply voltage R-OUT 7 Right channel output R-IN 8 Right channel input MS6257 R-IN R-OUT VDD SCL L-IN L-OUT VSS SDA BLOCK DIAGRAM R-IN 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/STEPL-IN

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 2 www.mosanalog.com

ORDERING INFORMATION

Package Part number Packaging Marking Transport Media 8-Pin SOP MS6257TR MS6257 2.5k Units Tape and Reel 8-Pin SOP MS6257U MS6257 100 Units Tube 8-Pin SOP (lead free) MS6257GTR MS6257G 2.5k Units Tape and Reel 8-Pin SOP (lead free) MS6257GU MS6257G 100 Units Tube ABSOLUTE MAXIMUM RATINGS Symbol Parameter Rating Unit VDD Supply Voltage 6 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 SOP8 210 Ċ/W OPERATING RATINGS Symbol Parameter Min Typ Max Unit VDD Supply Voltage 2.7 - 5.5 V

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 3 www.mosanalog.com 5V ELECTRICAL CHARACTERISTICS (VDD=5.0V, VSS=0V, Attenuation=0dB, Gain=0dB, f=1KHz, VO=0dBV; unless otherwise specified) Symbol Parameter Conditions Min Typ Max Unit DC Characteristics IQ Quiescent current - 3.1 3.5 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 EIGA Interchannel gin/attenuation error - 0.3 - dB CS Channel separation 120 130 - 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 - -68 -63 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 3.3V ELECTRICAL CHARACTERISTICS (VDD=3.3V, VSS=0V, Attenuation=0dB, Gain=0dB, f=1KHz, VO=-3dBV; unless otherwise specified) Symbol Parameter Conditions Min Typ Max Unit DC Characteristics IQ Quiescent current - 2.8 3.3 mA CS Channel separation 90 110 - 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 - -63 -58 dB S/N Signal-to-noise ratio 85 90 - dB

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 4 www.mosanalog.com 2.7V ELECTRICAL CHARACTERISTICS (VDD=2.7V, VSS=0V, Attenuation=0dB, Gain=0dB, f=1KHz, VO=-3dBV; unless otherwise specified) Symbol Parameter Conditions Min Typ Max Unit DC Characteristics IQ Quiescent current - 2.5 2.9 mA CS Channel separation 95 105 - 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 - -60 -55 dB S/N Signal-to-noise ratio 85 90 - dB TYPICAL PERFORMANCE CHARACTERISTICS (Ta=25Ċ; 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=20Hzf=20Hz f=1kHzf=20kHz f=20kHzf=1kHz f=1kHz f=20kHz VDD=5V VDD=2.7VVDD=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=-3dBV VDD=2.7V VO=-3dBV VDD=3.3V VO=-3dBVVDD=2.7V VO=-3dBV VDD=5V VO=0dBV

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 5 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 Every 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 During 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 7 8 9 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 VOLUM E CONTROLLER IC REV 1 6 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 SP 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 m argin at t he LOW l evel f or eac h c onnected device (i ncluding hysteresis) 0.1VDD - V VnH Noise m argin at the HIGH level for eac h c onnected device (incl uding hysteresis) 0.2VDD - V

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 7 www.mosanalog.com BUS INTERFACE Data are transmitted to and from the MCU to the MS6257 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 MS6257 Interface protocol The format consists of the following ‧A START condition ‧A chip address byte including the MS6257 address. (7bits) ‧The 8th bit of the byte must be “0”.(write=0, read=1) ‧MS6257 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 ACKDATA DATASTART CONDITION STOP CONDITION Protocol Address 1000 0010 7 bits address MS6257 address W

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 8 www.mosanalog.com Data bytes description Function bits MSB LSB Function description 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 1 1 1 1 0 0 M 2-channel, MUTE When M=1, MUTE=ON When M=0, MUTE=OFF Gain / Attenuation bits A3 A2 A1 A0 Gain / Attenuation value (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. Where Ax=-1dB/step, Bx=-10dB/step, Cx=+1dB/step

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 9 www.mosanalog.com Example Mute off Data byte 1 000 00 MSB

10 ACKStart 0 111 0010

MS6257 address 2-ch, Mute off LSB StopACK The initial condition is –79dB and mute on when power up. The first command must disable the mute function. Set gain of 2 channel at 0dB ACK Stop11 00 0000 2-ch, +1dB/step, 0dB ACKStart MS6257 Address ACK 1110 0000 2-ch, -10dB/step, 0dB 110 1 0 000 ACK 2-ch, -1dB/step, 0dB Set gain of 2 channel at 6dB The value of attenuation must be set zero when the volume from attenuation to gain. ACK Stop11 00 1001 2-ch, +1dB/step, 6dB ACKStart MS6257 Address ACK 1110 0000 2-ch, -10dB/step, 0dB 110 1 0 000 ACK 2-ch, -1dB/step, 0dB Set gain of 2 channel at -3dB The value of gain must be set zero when the volume from gain to attenuation. ACKStart MS6257 Address ACK 1100 0000 2-ch, +1dB/step, 0dB 111 0 0 000 ACK 2-ch, -10dB/step, 0dB ACK Stop11 01 1100 2-ch, -1dB/step, -3dB Set attenuation of left channel at –33dB ACKStart MS6257 Address ACK Stop1011 1 100 L-ch, -10dB/step, -30dB 1010 1100 ACK L-ch, -1dB/step, -3dB

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 1 0 www.mosanalog.com

APPLICATION INFORMATION

5 SCL

2.7~5V 47uF0.1uF Signal MS6257 Basic application flow chart Volume Control volume down to -79 dB step by step Enable Mute Function mute on Power down VDD = 0V Procedure Of Power Shut DownProcedure Of Power Up Volume Control volume up/down step by step Initial Conditions function off (-79dB) mute on Disable Mute Function mute off Power up VDD = 5V 1. The initial condition is –79dB and mute on when power up.

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 1 1 www.mosanalog.com EXTERNAL DIMENSIONS SOP8 package H E D A A1 e B C L Dimension in mm Dimension in inch Symbol 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 D 4.80 5.00 0.1890 0.1968 H 5.80 6.20 0.2284 0.2440 E 3.80 4.00 0.1497 0.1574 e 1.27 BSC 0.050 BSC L 0.40 1.27 0.016 0.050 TAPE AND REEL (Unit : mm) 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 VOLUM E CONTROLLER IC REV 1 1 2 www.mosanalog.com DEMO BOARD Label 1: Supply Voltage The AVDD and DVDD should be the same supply voltage, the supply range is 2.7~5.5 VDC. Label 2: Control Switch 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. MUTE : Press the switch once to enter mute on or mute off. The default status is mute off on initial status. RESET : Reset MCU controller, the system will be loaded default value. Label 3: Input section Please input stereo audio signal, as music or sine wave. Label 4: Output section Please connected to a post-power-amplifier, as stereo speaker.

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 1 3 www.mosanalog.com Circuit + C5 10K RCA2 L-IN1 20p C18 104 + C15 10u 10K + C16 10u 10u 10K + C4 10u RCA1 L-OUT RCA10 R-OUT DVCC 20p RESET RCA9 R-IN1 100K MS6257 4 5 8L-IN1 L-OUT VSS SDA SCL VDD R-OUT R-IN1 AT89C2051 RST/VPP VCC XTAL1 XTAL2 P1.0/AIN0 P1.1/AIN1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 P3.0/RXD P3.1/TXD P3.2/INT0 P3.3/INT1 P3.4/T0 P3.5/T1 P3.7 C17 104 AVDD 10K 0807 + C12 R13 01 02 + C13 R14

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 1 4 www.mosanalog.com DEMO BOARD Label 1: Supply Voltage The AVDD and DVDD should be the same supply voltage, the supply range is 2.7~5.5 VDC. Label 2: Control Switch 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 -E# MUTE : Press the switch once to enter mute on or mute off. The default status is mute off on initial status. RESET : Reset MCU controller, the system will be loaded default value.

GAIN AND ATTENUATION VOLUM E CONTROLLER IC REV 1 1 5 www.mosanalog.com Label 3: Input section Please input stereo audio signal, as music or sine wave. Label 4: Output section Please connected to a post-power-amplifier, as stereo speaker. Circuit C14 10u C12 104 R11 10k C110u C11 10u C10 C16 20pF C17 20pF C18 10uF RESET +C15 10u C13 104 12M P3.7 11 RST1 P1.0 12 P3.02 P1.1 13 P3.13 P1.2 14 XTAL24 P1.3 15XTAL15 P1.4 16 P3.26 P1.5 17 P3.37 P1.6 18 P3.48 P1.7 19 P3.59 Vcc 20 GND10 AT89C2051 DVCC AVDD 100K R2 R3 R4 R5 R6 R7 R8 R9 R10 RCA1 LIN4 RCA6 ROUT RCA7 RIN1 RCA8 RIN2 RCA9 RIN3 RCA10 RIN4 RCA2 LIN3 RCA3 LIN2 RCA4 LIN1 RCA5 LOUT 2CH+ LCH+ RCH+ 2CH- LCH- RCH- MUTE CH-SEL 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 MS6258 R12 103 AO OPEN : 88H SHORT: 8CH