MS6257_1 MOSA | Alldatasheet

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 One Set of Stereo Input, Low voltage Gain and Attenuation 15~-79dB

FEATURES

  • Operation range: 2.7V~6.5V
  • Low power consumption
  • Gain / Attenuation: 15 to –79dB
  • +1dB/step, -1dB/step and -10dB/step are controlled independently
  • I2C interface
  • Housed in 8 pin SOP package

APPLICATIONS

  • Multimedia system
  • Hi-Fi audio system
  • MP3, PDA

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 I 2C 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 R-IN REF SDA SCL R-OUT L-OUT I2 C Interface -10dB/Step -1dB/Step 1dB/Step Serial Bus Decoder and Latches Reference Circuit 1dB/Step -1dB/Step -10dB/Step Mute Control Attenuation 0~-79dB Gain 0~15dB Gain 0~15dB Attenuation 0~-79dB L-IN

Gain and Attenuation Volume Controller IC REV 6 2 www.mosanalog.com PIN CONFIGURATION Symbol Pin Description L-IN 1 Left channel input L-OUT 2 Left channel output VSS 3 Ground SDA 4 I 2C data input SCL 5 I 2C clock input VDD 6 Positive supply voltage R-OUT 7 Right channel output R-IN 8 Right channel input MS6257 R-IN R-OUT V DD SCL L-IN L-OUT VSS SDA

ORDERING INFORMATION

Package Part number Packaging Marking Transport Media 8-Pin SOP (lead free) MS6257GTR MS6257G 2.5k Units Tape and Reel 8-Pin SOP (lead free) MS6257GU MS6257G 100 Units Tu be 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 SOP8 210 ℃/W OPERATING RATINGS Symbol Parameter Min Typ Max Unit VDD Supply Voltage 2.7 - 6.5 V

Gain and Attenuation Volume Controller IC REV 6 3 www.mosanalog.com 5V ELECTRICAL CHARACTERISTICS (V DD =5.0V, V SS =0V, Attenuation=0dB, Gain=0dB, f=1KHz, V O =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 E GA Gain/Attenuation step 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 V O =4.5Vpp 95 100 - dB Bus Characteristics VIH Bus high input level - - 0.7V DD V VIL Bus low input level 0.3V DD - - V 3.3V ELECTRICAL CHARACTERISTICS (V DD =3.3V, V SS =0V, Attenuation=0dB, Gain=0dB, f=1KHz, V O =-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 Volume Controller IC REV 6 4 www.mosanalog.com 2.7V ELECTRICAL CHARACTERISTICS (V DD =2.7V, V SS =0V, Attenuation=0dB, Gain=0dB, f=1KHz, V O =-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 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 f=1kHz f=20Hz f=20kHz VDD =3.3V f=1kHz f=20Hz f=20kHz VDD =2.7V f=1kHz f=20Hz f=20kHz VDD =5V VO=0dBV VDD =3.3V VO=-3dBV VDD =2.7V VO=-3dBV VDD =5V VO=0dBV VDD =3.3V VO=-3dBV VDD =2.7V VO=-3dBV

Gain and Attenuation Volume Controller IC REV 6 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 1 2 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 (9 th ) 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 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 I 2C-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.1V DD - V VnH Noise margin at the HIGH level for each connected device (including hysteresis) 0.2V DD - V

Gain and Attenuation Volume Controller IC REV 6 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 8 th 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 ACK DATA DATA START CONDITION STOP CONDITION Protocol Address 1 0 0 0 0 0 1 0 7 bits address MS6257 address W

Gain and Attenuation Volume Controller IC REV 6 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 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.

Gain and Attenuation Volume Controller IC REV 6 9 www.mosanalog.com Example Mute off Data byte 1 0 0 0 0 0 MSB 1 0 ACK Start 0 1 1 1 0 0 1 0 MS6257 address 2-ch, Mute off LSB Stop ACK The initial condition is attenuation –79dB, gain 0dB and mute on when power up. The first command must disable the mute function. Set gain of two channels at 0dB ACK Stop 1 1 0 0 0 0 0 0 2-ch, +1dB/step, 0dB ACK Start MS6257 Address ACK 1 1 1 0 0 0 0 0 2-ch, -10dB/step, 0dB 1 1 0 1 0 0 0 0 ACK 2-ch, -1dB/step, 0dB Set gain of two channels at 6dB The value of attenuation must be set zero when the volume from attenuation to gain. ACK Stop 1 1 0 0 1 0 0 1 2-ch, +1dB/step, 6dB ACK Start MS6257 Address ACK 1 1 1 0 0 0 0 0 2-ch, -10dB/step, 0dB 1 1 0 1 0 0 0 0 ACK 2-ch, -1dB/step, 0dB Set gain of two channels at -3dB The value of gain must be set zero when the volume from gain to attenuation. ACK Start MS6257 Address ACK 1 1 0 0 0 0 0 0 2-ch, +1dB/step, 0dB 1 1 1 0 0 0 0 0 ACK 2-ch, -10dB/step, 0dB ACK Stop 1 1 0 1 1 1 0 0 2-ch, -1dB/step, -3dB

Gain and Attenuation Volume Controller IC REV 6 10 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.

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

APPLICATION INFORMATION

5 SCL

47uF 0.1uF Signal MS6257 Basic application flow chart Volume Control for Attenuation volume down to -79 dB step by step Enable Mute Function mute on Power Turn Off VDD = 0V Procedure Of Power Turn Off Procedure Of Power Up Setting Gain Set the max signal Initial Conditions function off (-79dB) mute on Disable Mute Function mute off Power up VDD = 5V Volume Control for Attenuation volume up/down step by step 1. The initial condition is attenuation –79dB, gain 0dB and mute on when power is up.

Gain and Attenuation Volume Controller IC REV 6 12 www.mosanalog.com EXTERNAL DIMENSIONS SOP8 package H E D A A1 e B C L 1 4 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 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

Gain and Attenuation Volume Controller IC REV 6 13 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~6.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 -79dB. 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 Volume Controller IC REV 6 14 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 C16 20pF C17 20pF C18 10uF RESET +C15 10u C13 104 12M P3.7 11 RST 1 P1.0 12 P3.0 2 P1.1 13 P3.1 3 P1.2 14 XTAL2 4 P1.3 15 XTAL1 5 P1.4 16 P3.2 6 P1.5 17 P3.3 7 P1.6 18 P3.4 8 P1.7 19 P3.5 9 Vcc 20 GND 10 AT89C2051 DVCC AVDD R4 R5 R6 R7 RCA6 ROUT RCA7 RIN1 RCA4 LIN1 RCA5 LOUT 2CH+ LCH+ RCH+ 2CH- LCH- RCH- MUTE CH-SEL R12 103 OPEN : 88H SHORT: 8CH L-IN 1 L-Out 2 Vss 3 SDA 4 SCL 5Vdd 6R-Out 7R-IN 8 MS6257

Gain and Attenuation Volume Controller IC REV 6 15 www.mosanalog.com Demo board(IR Controller) Function description Label 1: Supply Input Supply voltage range is 2.7V to 6.5V. Label 2: LED Indicator The LEDs indicate the chip status and IR received status. 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. Label 4: Signal Input There are four stereo inputs in the section. Please input stereo audio signal, as music or sine wave. Label 5: DAC output Connected to a post-power-amplifier, as active speaker. 1 1 3 4

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.

Gain and Attenuation Volume Controller IC REV 6 17 www.mosanalog.com Circuit 12M RST 1 P3.0 2 P3.1 3 XTAL2 4 XTAL1 5 P3.2 6 P3.3 7 P3.4 8 P3.5 9 GND 10 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 VS 3 IR 1 GND 2 IR 10K +C3 470p +C1 47u IR_IN 220 SDA SCL J4 AVDD C9 10u C11 10u C8 10u C10 10u +C7 0.1u AVDD Jum per OUTPUT INPUT LED LCD RX TX RX T X + C6 10u SCL SDA 10K 10K 10K 10K J7 INPUT J8 OUTPUT +C13 0.1u + C14 10u L -IN 1 L -Out 2 Vss 3 SDA 4 SCL 5Vdd 6R-Out 7R-IN 8 MS6257