M65881AFP REJ03F0004-0100Z Rev.1.00 2003.05.08 Digital Amplifier Processor of S-Master* Technology DESCRIPTION The M65881AFP is a S-Master technique processor for digital amplifier enable to convert from multi liner-PCM digital input signal to high precise switching-pulse digital output without analog processing. The M65881AFP has built-in 24bit sampling rate converter and digital-gain-controller. The M65881AFP enables to realize high precise ( X`tal oscillation accuracy.) full digital amplifier systems combining with power driver IC. FEATURES •Built-in 24bit Sampling Rate Converter. Input Signal Sampling Rate from 32KHz to 192KHz (24bit Maximum). 4 kinds of Digital Input Format. •Built-in L/R Independent Digital Gain Control. •Built-in Soft Mute Function with Exponential Approximate-Curve. •Correspondence to Output for Headphone. OUTLINE : 42P2R 0.8mm pitch 42pin SSOP MAIN SPECIFICATION •Master Clock Primary Clock: 256Fsi/512Fsi Secondary Clock: 1024Fso/512Fso •Input Signal Format: MSB First Right Justified(16/20/24bit),MSB First Left Justified(24bit) LSB First Right Justified(24bit),I2S(24bit) •Input Signal Sampling Rate from 32kHz to 192kHz. •Gain Control Function: +30dB~-∞dB (0.1dB Step until -96dB, -138dB Minimum) •Third Order ∆Σ (16Fso:6bit/5bit,32Fso:5bit) APPLICATION DVD Receiver, AV Amplifier RECOMMENDED OPERATING CONDITIONS Logic Block:1.8V±10%,PWM Buffer Block :3.3V±10% SYSTEM BLOCK DIAGRAM) M65881AFP 24bit CD DVD Audio etc. LRCK BCK DATA 256fsi/512fsi Sampling Rate Converter 32kHz to 192kHz Clock Level Control ∆Σ Clock 1024fso/512fso * "S-Master" is the digital amplifier technology developed by Sony Corporation. "S-Master" is a trademark of Sony Corporation. Rev.1.00 2003.05.08 page 1 of 23 LC Filter Stream Power Driver LC Filter PWM +30dB to -∞ MCU I/F Stream Power Driver Output for Headphone M65881AFP PIN CONFIGURATION 3.3V system 1.8V system 3.3V system VddL 1 42 VddR OUTL1 2 41 OUTR1 VssL 3 40 VssR OUTL2 4 39 OUTR2 XOVdd 5 38 VssLR XfsoOUT 6 37 XVdd XOVss 7 36 XfsoIN DVdd 8 35 XVss DVss 9 34 HPVddL MCKSEL 10 33 HPOUTL1 SCDT 11 32 HPVssL SCSHIFT 12 31 HPOUTL2 30 HPVddR PWM output for Power Stage PWM output for Headphone SCLATCH 13 NSPMUTE 14 29 HPOUTR1 INIT 15 28 HPVssR LRCK 16 27 HPOUTR2 BCK 17 26 TEST1 DATA 18 25 TEST2 BFVdd 19 24 SFLAG BFVss 20 23 FsoI XfsiIN 21 22 FsoCKO Rev.1.00 2003.05.08 page 2 of 23 3.3V system Rev.1.00 2003.05.08 page 3 of 23 18 17 16 DATA BCK LRCK S⇒P Sampling Rate Converter 23 22 F s o F s C o K I O 24 36 6 I N I T S C L A T C H S C D T S C S H I F T 15 N S P M U T E 14 INIT/MUTE ∆Σ S F L A G X f s o I N X f s o O U T 11 12 13 Serial Control Gain Control Clock Generator ( Secondary ) 10 21 Clock Generator ( Primary ) M C K S E L X f s i I N T T E E S S T T 1 2 26 25 PWM OUTL2 4 27 HPOUTR2 29 HPOUTR1 31 HPOUTL2 33 HPOUTL1 39 OUTR2 41 OUTR1 OUTL1 2 M65881AFP BLOCK DIAGRAM M65881AFP ABSOLUTE MAXIMUM RATINGS Parameter Symbol Condition Min. Typ. Max Unit PWMVdd 3.3V system (XVdd, XOVdd, PWM Output for Power Stage & Headphone) -0.3 – 3.8 V BFVdd DVdd Vi Pd Tstg 3.3V system 1.8V system -0.3 -0.3 -0.3 3.8 2.5 Vdd+0.3 -40 – – – 350 – 125 V V V mW ºC Supply Voltage Input Voltage Range Power Dissipation Storage Temperature Ta=75ºC RECOMMENDED OPERATING CONDITIONS Parameter Supply Voltage Symbol Condition Min. Typ. Max Unit PWMVdd 3.3V system (XVdd, XOVdd, PWM Output for Power Stage & Headphone) 3.3V system 3.0 3.3 3.6 V 3.0 3.3 3.6 V 1.6 1.8 2.0 -20 – 75 V ºC 16 – 52.5 8 – 25 BFVdd Operating Temperature Operating Frequency DVdd Ta XfsoIN XfsiIN 1.8V system MHz MHz ELECTRICAL CHARACTERISTICS (Ta=25ºC,PWMVdd=3.3V, DVdd=1.8V : Unless otherwise specified.) Parameter Symbol Conditions Min. Typ. "H" Level Input Voltage VIH3 BFVdd=3.0 to 3.6V 0.75Vdd – – V "L" Level Input Voltage VIH3 BFVdd=3.0 to 3.6V – – 0.25Vdd V Input Leek Current Ileak – – 10 µA Vdd-0.5 – – V IOL3=1.0mA (HPOUTL1,2,HPOUTR1,2) – – 0.5 V 1.8V system (DVdd) 3.3V system (PWMVdd, BFVdd) – 3.5 – mA – 2.5 – mA "H" Level Output XfsoOUT Voltage SFLAG M Unit BFVdd=3.0 to 3.6V IOH3=-4.0mA (SFLAG,FsoCKO) FsoCKO OUTL1,2 IOH3=-2.0mA (XfsoOUT,OUTL1,2,OUTR1,2) VOH3 IOH3=-1.0mA (HPOUTL1,2,HPOUTR1,2) OUTR1,2 HPOUTL1,2 HPOUTR1,2 "L" Level Output XfsoOUT Voltage SFLAG BFVdd=3.0 to 3.6V IOL3=4.0mA (SFLAG, FsoCKO) FsoCKO OUTL1,2 IOL3=2.0mA (XfsoOUT,OUTL1,2,OUTR1,2) VOL3 OUTR1,2 HPOUTL1,2 HPOUTR1,2 Idd2 Power Supply Current Idd3 OUTxx, HPOUTxx="OPEN" Rev.1.00 2003.05.08 page 4 of 23 M65881AFP CHARACTERISTICS EVALUATION CIRCUIT OUTL1 2 + + - + GND OUTL2 4 + - OUTR2 39 + OUTR1 41 + - LRCK 16 BCK 17 + - + - GND DATA 18 M65881AFP HPOUTL1 33 + HPOUTL2 31 Power Supply GND HPOUTR2 27 HPOUTR1 29 Reference characteristic S/N 102dB(typ) Output for Power Stage THD+N 0.002%(typ) S/N 100dB(typ) Output for Headphone THD+N 0.006%(typ) Rev.1.00 2003.05.08 page 5 of 23 + - Conditions • Input :1kHz 0dB Full scale sine wave • FS :Primary clock 44.1kHz, Secondary clock 48kHz • PWM Output format 1 • AC dithering E • DC dithering : 0.1% • Gain data setting : (Index) 10000b/ (Mantissa) 10000000b • THD+N: Filter 20kHz LPF S/N: Filter 22kHz LPF + JIS-A M65881AFP PIN DESCRIPTION Pin No. Name 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 VddL OUTL1 VssL OUTL2 XOVdd XfsoOUT XOVss DVdd DVss MCKSEL SCDT SCSHIFT SCLATCH NSPMUTE INIT LRCK BCK DATA BFVdd BFVss XfsiIN FsoCKO FsoI SFLAG TEST2 TEST1 HPOUTR2 HPVssR HPOUTR1 HPVddR HPOUTL2 HPVssL HPOUTL1 HPVddL XVss XfsoIN XVdd VssLR OUTR2 VssR OUTR1 VddR Rev.1.00 2003.05.08 Description I/O Power Supply for Lch PWM Power Stage (3.3V) Output Current on 3.3V Signal Level – – O Lch PWM1 Output for Power Stage GND for Lch PWM Power Stage 3.3V – O Lch PWM2 Output for Power Stage – 2mA 3.3V GND for Secondary Master Clock Buffer – – Power Supply for Digital Block (1.8V) – – GND for Digital Block – – Secondary Master Clock Selector "L":1024fso, "H":512fso – 3.3V Serial Control • Data Input – 3.3V Serial Control • Shift Clock Input – 3.3V Serial Control • Latch Signal Input – 3.3V PWM Duty 50% Mute ( "L": Active ) – 3.3V Initialize Input ( Power Supply Reset ) ; "L" : Reset, "H" : Release – 3.3V LRCK Input (PCM Signal ) – 3.3V BCK Input ( PCM Signal ) – 3.3V DATA Input ( PCM Signal ) – Power Supply for Input/Output 3.3V Buffer – 3.3V – GND for Input/Output 3.3V Buffer – – Primary Master Clock Input (256fsi/512fsi ) – 3.3V 4mA – 3.3V O Buffered Output of Secondary Master Clock (1024/512fso) I O I O I I O 3.3V – Power Supply for Secondary Master Clock Buffer ( 3.3V ) I I I I I I I I I – Secondary Fso Clock Output Secondary Fso Clock Input Asynchronous Flag ( H: Active ) 3.3V 4mA – 3.3V Test2 must be connected to GND Test1 must be connected to GND – 3.3V – 3.3V – – 3.3V – – 3.3V – Power Supply for Lch Headphone ( 3.3V ) – 3.3V – GND for Secondary Master Clock Input Buffer – – I Secondary Master Clock Input (1024fso/512fso) Rch PWM2 Output for Headphone GND for Rch Headphone O Rch PWM1 Output for Headphone Power Supply for Rch Headphone ( 3.3V ) O Lch PWM2 Output for Headphone GND for Lch Headphone O Lch PWM1 Output for Headphone 3.3V – 3.3V Power Supply for Secondary Master Clock Buffer ( 3.3V ) – – GND for PWM Power Stage – O Rch PWM 2 Output for Power Stage GND for Rch PWM Power Stage – O Rch PWM 1 Output for Power Stage Power Supply for Rch PWM Power Stage ( 3.3V) page 6 of 23 – 3.3V – 3.3V – – M65881AFP EXPLANATION OF OPERATION 1. DATA,BCK,LRCK DATA,BCK, and LRCK are input pins for Digital Audio Signal of CD, MD, DVD etc.. Input formats are supported by 4 ways, and are set by Serial Control, "System1 Mode, bit3 and bit4". Input data length are selectable in a case of "MSB First Right Justified" (Serial Control "System1 Mode,bit5 and bit6"). •Input formats are shown in following figures. 1/fsi, 1/2fsi, 1/4fsi MSB first left justified (24bit) Left LRCK Right BCK MSB LSB MSB DATA (24bit) 24cycle 24cycle 1/fsi, 1/2fsi, 1/4fsi MSB first right justified (16bit, 20bit, 24bit) LSB Right Left LRCK BCK 16 cycle 16 cycle MSB LSB 20 cycle 20 cycle LSB MSB DATA (24bit) LSB MSB 24 cycle 24 cycle 1/fsi, 1/2fsi, 1/4fsi LSB first right justified (24bit) MSB LSB DATA (20bit) LSB MSB LSB MSB DATA (16bit) Left LRCK Right BCK LSB LSB MSB DATA (24bit) MSB 24 cycle 24 cycle 1/fsi, 1/2fsi, 1/4fsi I2S(24bit) Left LRCK Right BCK 1 BCK 1 BCK MSB DATA (24bit) Rev.1.00 2003.05.08 page 7 of 23 LSB 24 cycle MSB LSB 24 cycle M65881AFP 2. SCDT, SCSHIFT, SCLATCH SCDT, SCSHIFT and SCLATCH are input pins for setting M65881AFP's operation. Input format of SCDT, SCSHIFT and SCLATCH is shown below. Input Format of SCDT, SCSHIFT and SCLATCH 24 SCDT 20 15 bit1 10 5 1 SCSHIFT SCLATCH • Mode Setting The operating mode are classified in four and assigned by bit1 and bit2. These four functions are shown below. ( bit1 and bit2 )= ( "L" and "L" ) Gain control mode: Gain control. ( bit1 and bit2 ) = ( "L "and "H" ) System1 Mode: Primary block initialization, etc. ( bit1 and bit2 )= ( H and "L" ) System2 Mode : Secondary block initialization, etc. ( bit1 and bit2 ) = ("H" and "H" ) Test mode ( setting prohibition ) Refer to Page13 about these four setting in detail. 3. MCKSEL, XfsoIN, XfsoOUT XfsoIN pin is secondary master clock input. The setting of MCKSEL pin selects secondary master clock. XfsoOUT pin is buffered-output from XfsoIN pin's input clock. MCKSEL "L" "H" XfsoIN 1024fso 512fso 4. XfsiIN XfsiIN pin is primary master clock input. The frequency of primary master clock must be selected by serial control “System2 mode :bit3 (IMCKSEL)” bit3 (IMCKSEL) XfsiIN "H" 512fsi "L" 256fsi The relations between input signal sampling rate and master clock frequency. Primary clock Secondary clock Input sampling rate 512fsi/256fsi[Hz] 1024fso/512fso[Hz] 1fsi : 32k / 2fsi : 64k / 4fsi : 128k 16.384M/8.192M 32.768M/16.384M 1fsi : 44.1k / 2fsi : 88.2k / 4fsi : 176.4k 22.579M/11.290M | / | 1fsi :48k / 2fsi : 96k / 4fsi : 192k 24.576M/12.288M 49.152M/24.576M Input signal and primary clock are related to synchronization. The primary clock frequency are 512 or 256 times as much as the input signal fsi ( 32k, 44.1k and 48k.) The primary and secondary clock are related to independence. ( asynchronization ) At 1024fso setting, secondary clock= frequency range from 32.768MHz to 49.152MHz. At 512fso setting, secondary clock = frequency range from 16.384MHz to 24.576MHz. *Primary clock This clock means input side clock system of sampling rate converter. *Secondary clock This clock means output side clock system of sampling rate converter. This clock makes to operate after sampling rate converter block. (Gain Control Block and PWM Block, etc.) *“fsi” and “fso” are defined as following stated in this specification. fsi : Primary sampling frequency fso : Secondary sampling frequency Rev.1.00 2003.05.08 page 8 of 23 M65881AFP 5. FsoCKO FsoCKO is clock output pin of 1fso frequency. The output is divided-clock of XfsoIN, and frequency is free-running at power on. FsoCKO pin's clock is utilized for a synchronization in case that have used plural M65881AFP, take a synchronization between M65881AFP and other external devices. Refer to the following Chapter 6. in detail. 6. FsoI, SFLAG M65881AFP synchronizes in clock input from the external source devices. So it makes synchronized operation between source devices or another M65881AFP ( in case of Multi channel Operation ). The primary side operation ( input side of sampling rate converter ) are synchronized in LRCK, and the secondary side operation ( output side of sampling rate converter ) are synchronized in FsoI. M65881AFP detects rise edge of these synchronized clock in normal operation, and the M65881AFP does operation of resynchronization in case that the cycle has changed. In addition, the M65881AFP re-synchronizes for a synchronized clock, in case that M65881AFP detects SYNC flag (Serial Control, System2 Mode,bit6) rise edge, too. While re-synchronizing, SFLAG pin outputs "H" and data is muted inside. In case of using Multiplex ( for multi channel application) and Single ( for 2ch application ), detail explanation is shown below. Multiplex use Primary side: Synchronize with LRCK. All ICs synchronize with an source device by connecting common LRCK. Secondary side: Synchronize with FsoCKO of Master IC. One of M65881AFP becomes a master IC, and the synchronization between ICs is carried out by FsoCKO of Master IC. FsoCKO pin outputted from this master IC is entered each Fsol pins of master and slave ICs. ASYNCEN2=enable Master LRCK (Primary side) FsoCKO(Secondary side) LRCK Fsol Slave LRCK Fsol Slave LRCK Fsol Multiplex use (6ch) Single use Primary side: Synchronize with LRCK. Therefore M65881AFP synchronizes with source devices. Secondary side: There is no need for external devices and other ICs to synchronize, therefore FsoCKO is connected to FsoI, In other way, By setting secondary side asynchronous detection to “disable” with “ASYNCEN2” flag (Serial Control, System2 mode,bit8), FsoI can also be considered as fixation. ASYNCEN2=enable LRCK (Primary) FsoCKO LRCK Fsol Rev.1.00 2003.05.08 page 9 of 23 ASYNCEN2=disable LRCK (Primary) LRCK Fsol M65881AFP 7. OUTL1, OUTL2, OUTR1, OUTR2 OUTL1, OUTL2, OUTR1 and OUTR2 are pulse output modulated ∆Σ output to PWM signal. These pins are connected to external Power Driver ICs.The PWM output can be selected PWM Output Format 1, 2, 3 and 4 by serial control data(System1 mode, bit22,23 ). PWM Output Form1 : General Modulation PWM Output Form2 : Symmetrical Modulation PWM Output Form3 : Modulation returned with time domain. ( The rise and fall edge of Lch and Rch in a term are reverse.) PWM Output Form4: Modulation returned with time domain. ( The rise and fall edge of Lch and Rch in a term are same timing.) In each 4 forms, the rate and bit length of PWM Output can be changed. Moreover, an output mute function and an output pins reverse function can be controlled by the pin setting or serial control. Refer to pin setting of the following page about a phase of the PWM output for Power Stage and Headphone. The PWM output control is shown in the following table. PWM output control Item Operation Output Form Output Form Selection 1,2,3,4 ( Common setting for Power Stage and Headphone) Operating Rate and Data Bit Length ( Common setting for Power Stage and Headphone ) Output Muting ( Common setting for Power Stage and Headphone ) Select to 16fso/6bit ,16fso/5bit ,32fso/5bit from operating rate and data bit length of ∆Σ. PWM operation are synchronized by this setting. Duty 50% Mute ( Selectable common and independent setting for Lch/ Rch.) Absolute Zero Mute Setting Operation Set up by the serial control system 1 mode bit 22,23 (PWM MODE 0 and 1). (Refer to system 1 mode(Page16) for details) Set up by the serial control system 2 mode bit16 and bit17. ( Refer to system 2 mode(Page 18) for details.) < Common setting for Lch / Rch > Set NSPMUTE pin "L" or set up by serial control " System 2 mode bit14 (NSPMUTE) "H". < Independent Setting for Lch / Rch > Set up by serial control Gain Control Mode bit9,10 (NSPMUTEL,NSPMUTER) "H" . ( Refer to Page 11,18 and 13 for details) Set up by serial control system2 mode bit15(PGMUTE) "H". (See system2 mode(Page 18) ) Reverse Output Pins Function Reverse on Lch and Rch of output pins (Common setting for Power Stage and Headphone) Set up by serial control system2 mode bit9 (CHSEL). Reverse for R1 and R2 of output pins. Set up by serial control system2 mode bit12 (CHRSEL). ( Only enable for Power Stage.) Rev.1.00 2003.05.08 page 10 of 23 M65881AFP 8. HPOUTL1, HPOUTL2, HPOUTR1, HPOUTR2 HPOUTL1, HPOUTL2, HPOUTR1 and HPOUTR2 are output pins for Headphone output. PWM output modulated ∆Σ output data to pulse width. The Phase of PWM Output for Power Stage and PWM Output for Headphone. The output for Headphone is reverse phase as output for Power. Moreover, it is possible to set L1 and R1 output same phase by serial control the system 1 mode, bit24= "H"( PWMHP ). In addition, NSPMUTE, PGMUTE and CHSEL are set in common PWM for Power and PWM for Headphone, and as for CHRSEL flag is set as a function of only PWM for Power. ( Refer to previous page "Table of PWM control" for details ). 9. NSPMUTE NSPMUTE pin sets to PWM Output to Duty 50% Mute. L: PWM Output 50% Mute H: Mute release 10. INIT INIT is the pin for reset to all functions of M65881AFP. "L" level: (1) Clear of data memory, (2) Initialization of a serial control setting (3) PWM Output Duty 50% Mute ( " L" period needs more than 5msec.) "H" level : Usual operation. *The rise edge from "L" to "H": Re-synchronization are operated, which is same at serial control SYNC function. (system2 mode bit6) 11. TEST1, TEST2 TEST1 and TEST2 pins are test input for factory shipping test of M65881AFP. TEST1 and TEST2 pins must be tied to "L" level on usual operation. 12. Power supply and GND Power supply and GND routes have a following 6 isolated lines. (1) VddL, VssL,VddR, VssR, VssLR VddL, VssL,VddR, VssR and VssLR pins are Power supply and GND for PWM Output buffer. Lch and Rch have a independent power supply and GND. Power supply must be fixed at 3.3V. (2) HPVddL, HPVssL, HPVddR, HPVssR HPVddL, HPVssL, HPVddR and HPVssR pins are Power supply and GND of PWM Output buffer for Headphone. Lch and Rch have a independent power supply and GND. Power supply must be fixed at 3.3V. (3) XVdd, XVss XVdd and XVss are Power supply and GND for XfsoIN clock input block. Power supply voltage must be fixed at 3.3V. (4) XOVdd, XOVss XOVdd and XOVss are Power supply and GND for XfsoOUT Clock Output. Power supply voltage must be fixed at 3.3V (5) DVdd, DVss DVdd, DVss are Power supply and GND for internal digital block. Power supply voltage must be fixed at 1.8V. (6) BFVdd, BFVss BFVdd and BFVss are Power and GND for input/output buffer (except for PWM block and clock buffer). Power supply voltage must be fixed at 3.3V. Rev.1.00 2003.05.08 page 11 of 23 M65881AFP 13. Power sequences System power-on sequencing * Refer to following figure. Power(Vddxxx, HPVddxxx, XVdd, XOVdd, DVdd, BFVdd) Power OFF Power ON Master clock (XfsoIN,XfsiIN) X INIT X SCDT X SCSHIFT X SCLATCH X Over 5msec(*1) Over 0sec(*2) Over 2/fso(*3) *1 After a power supply and Master clock become to stable, INIT pin must be "L" over 5msec. *2 Data transfer is possible right after INIT release. *3 Until SCLATCH is operated, a period over 2/fso ( fso=48kHz, over 42µsec ) is necessary after INIT release. Rev.1.00 2003.05.08 page 12 of 23 M65881AFP SERIAL CONTROL 1. Gain Control Mode bit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Flag name MODE1 MODE2 TEST1 TEST2 NSLMT1 NSLMT2 GCONT1 GCONT2 NSPMUTEL NSPMUTER GAIN0 GAIN1 GAIN2 GAIN3 GAIN4 GAIN5 GAIN6 GAIN7 GAIN8 GAIN9 GAIN10 GAIN11 GAIN12 Functional Explanation Mode setting1 Mode setting2 Test Mode 1 Test Mode 2 Output Limit 1 Output Limit 2 Channel selection for Gain Control Block 1 Channel selection for Gain Control Block 2 Lch Duty 50% Mute for PWM Output Rch Duty 50% Mute for PWM Output No setting bits means " Don't care". H L "L" fixed "L" fixed "L" fixed "L" fixed Refer to Table 1-1. L/R Independence Lch active active L/R Common Rch non-active non-active Gain Data Index (MSB) Gain Data Index Gain Data Index Gain Data Index Gain Data Index (LSB) Gain Data Mantissa (MSB) Gain Data Mantissa Gain Data Mantissa Gain Data Mantissa Gain Data Mantissa Gain Data Mantissa Gain Data Mantissa Gain Data Mantissa (LSB) INIT – – L L L L L L L L – H L L L L H L L L L L L L •Output Limit (bit5,6: NSLMT1,2) The M65881AFP has Over Flow Limit function which detects by input signal level and limit gain control. The limit Value is set by Gain control Mode ( bit5,6 "NSLMT1, 2") and System2 Mode( bit17 "NSOBIT"). •Limit value setting of output for gain control and ∆Σ (bit5, 6 : NSLMT1, 2) Table 1-1a Limit Value [ In case of 6bit mode, system2 mode bit 17( NSOBIT )="L".] NSLMT1,2 Output Limit Value of gain PWM Output (Limit Value from ∆Σ Block) 63 values (±31) ±0.9375 (L, L) ±0.90625 61 values (±30) (H, L) 59 values (±29) ±0.875 (L, H) 57 values (±28) ±0.84375 (H, H) Table 1-1b Limit Value [ In case of 5bit mode, system2 mode bit 17( NSOBIT )="H".] NSLMT1,2 Output Limit Value of gain PWM Output ( Limit Value from ∆Σ Block) 31 value (±15) ±0.90625 (L, L) ±0.875 31 value (±15) (H, L) 29 value (±14) ±0.84375 (L, H) 29 value (±14) ±0.8125 (H, H) •Channel selection for Gain Control Block (bit7,bit8: GCONT1, GCONT2) These bit selection enable to control gain data "L/R common" or "L/R independence". GCONT1:"L"… L/R common "H"...L/Rch independence. GCONT2:"L"… Rch only "H"…Lch only Bit8 is enable only the case of " Bit7="H". *Enable both output for Power and Headphone. •PWM Duty 50% Mute (bit9,10:NSPMUTEL,R) These bit set "Duty 50% fixed Mute" with Lch/Rch independence. NSPMUTEL : "L"….Mute release, "H"…Lch Mute NSPMUTER : "L"….Mute release, "H"…Rch Mute * Duty 50 % Mute Operation are operated by one of the following setting. • Gain control bit9,10 ( NSPMUTEL,R) • NSPMUTE pin • Serial control system2 mode ,bit 14 (NSPMUTE) Rev.1.00 2003.05.08 page 13 of 23 M65881AFP The index and Mantissa part of Gain Data (bit12-bit24 :GAIN0-GAIN12) The gain value is set from bit12-bit24. Index part: bit12(MSB) to bit16(LSB) Mantissa part: bit17(MSB) to bit24(LSB) The gain data is assigned 13bits, composed of Index part 5bits and of Mantissa part 8bits. The range of Index parts is following statements. Index part: 10100b(16.0) to 10000b(1.0) to 00000b(2-16) The range of Mantissa parts is following statements. Mantissa part:Index part; 10100b to 00001b: Mantissa part; 11111111b to 10000000b (128 step/ Index). Index part; 00000b: Mantissa part; 11111111b to 00000000b (256 step). Initial value: Index part: 10000b Mantissa part: 10000000b Infinity zero: Index part: 00000b Mantissa part: 00000000b # Notice of GAIN value setting continuously In case of Gain value setting continuously, for example of setting L/Rch independently, please take the interval time (pulse interval time of SCLATCH signal) more than 1/fso. For example, in the case of fso=48kHz, please take the interval time more than 21µsec. • The Gain Data and Audio Output Level. Gain data consists of 13bits (Index part: 5bit, Mantissa part: 8bit ). e.g. 10000b(1.0)/10000000b(0.5) means 0.5(0dB). Table 1-2 Gain data and output level maximum value 15.9375 +30.069dB (b) 1.0 +6.021dB (b) (b) 0.5 0.498046875 + (b) 0.5 ∗ 2-16 00000/00000001 (b) 0.00390625 ∗ 2-16 00000/00000000 (b) ~ -96.330dB ~ ~ ~ 00000/10000000 0dB -0.0340dB ~ ~ 10000/10000000 01111/11111111 ~ ~ ~ 10001/10000000 Output Level (b) ~ 10100/11111111 Output absolute ~ Polarity ~ Gain Data -138.474dB infinity zero • Calculation method of Gain Value The way to calculation of Gain value from Gain Data is following equation. Gain value = 20log Rev.1.00 2003.05.08 [ 2 <Index data (decimal value)-16> page 14 of 23 × Mantissa Data (decimal value) 128 ] dB M65881AFP • Soft Mute The Soft Mute function is executed by setting of Gain Data as 00000/00000000b (" / " means dividing point between index part and mantissa part). The release from Soft Mute Function must be executed by setting the gain data before soft mute. The Soft mute Function and release from there don't have linear curve but have characteristics of approximate exponential curve. Output amplitude 16.0 0.5 T = xxxx/Fs (sec) 0 // t T T 00000/00000000b setting 10000/10000000b setting Characteristics of Soft Mute function • Operating time of Soft Mute Total steps from Maximum value(10100b/11111111b) to Minimum value(00000b/00000000b) (128steps/1 index) × (20index (10100b-10000b)) +256steps = 2816steps. The transition term of up and down depend on 2fso clock. Therefore, in case of fso=48kHz, T=1/2fso=10.416µsec/step, transition term are following. From Maximum value (10100b/11111111b) to Minimum value (00000b/00000000b) : 2816T=29.333msec. From 0dB value (10000b/10000000b) to Minimum value (00000b/0000000b) : 2304T=24msec 6dB transition term (when over 00000b/10000000b (=-96dB) value ) : 128T=1.333msec. • Soft Attenuate Transition from older Gain Attenuation to newer Gain Attenuation always operates with Soft Mute function. For example, in case of Gain1 > Gain3 > Gain2, transition process is shown below. At first, GAIN1 is operated, then second, GAIN2 is operated. In case that GAIN2 is operated faster than GAIN1 of transition completion (refer to "A" situation in figure) GAIN1 is ignored and data approaches at GAIN2. Further, GAIN3 is operated faster than GAIN2 of transition completion( Refer to "B" or "C" situation in figure), GAIN2 is ignored and data approaches at GAIN3 . Gain 1.0 A (GAIN1) B (GAIN3) 0 C (GAIN2) -1.0 t Soft Attenuate Rev.1.00 2003.05.08 page 15 of 23 M65881AFP 2. System1 Mode bit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Flag name MODE1 MODE2 IFMT0 IFMT1 IBIT0 IBIT1 ISF0 ISF1 EMPFS1 EMPFS2 DF1IMUTE DF2IMUTE Function Explanation Mode Setting 1 Mode Setting 2 No setting bits means "Don't care". INIT L – "L" fixed H "H" fixed Input Format Selection Refer to the Table2-1 below Setting for Input Word Length Refer to the Table2-2 below Input sampling rate selection Refer to the Table2-3 below Fsi selection for De-emphasis Filter Refer to the Table2-4 below Zero Mute at DATA input active active non-active non-active Zero Mute PWM:duty50% Zero Mute at sampling rate converter input ASYNC1MODE Asynchronous Detection Flag for Primary Side PWMMODE0 Selection for PWM Output type PWMMODE1 Phase of HPOUTL1/R1 based on PWM output for power PWMHP Table 2-1 Selection of input format MSB First Left bit Flag Name Justified 3 IFMT0 L 4 IFMT1 L Refer to the Table2-5 below Same Phase MSB First Right Justified H L Table 2-2 Setting for Input Data Word Length bit Flag Name 16bit 20bit 24bit 5 IBIT0 L L H 6 IBIT1 L H L – L L L L L L L L L L – – – – – – – L – L L L Reverse Phase LSB First Right Justified L H I 2S H H Don't use H H Table 2-3 Selection of Input Sampling Rate (fsi:32k to 48kHz, 2fsi:64k to 96kHz, and 4fsi:128k to 192kHz) bit Flag Name fsi 2fsi 4fsi Don`t use 7 ISF0 L H L H 8 ISF1 L L H H Table 2-4 Fs selection for De-emphasis filter (De-emphasis is "ON" except for bit9=L and bit10=L) bit Flag Name 32.0k 44.1k 48.0k OFF 9 EMPFS1 H L H L 10 EMPFS2 H H L L Table 2-5 Selection PWM Output bit Flag name PWM Output Form1 22 PWMMODE0 L 23 PWMMODE1 L PWM Output Form2 PWM Output Form3 H L L H •PWM Output Form2 enables to operate following conditions. MCKSEL=L ( Secondary master clock 1024fso ) Serial Control System2 Mode; bit16 ( NSOBIT ) = "H" ( 5bit ) bit 17 ( NSSPEED )="L" (16fso ) In case of the setting and release for PWM Output Form 2, Refer to "The NOTE1 at setting PWM output Form 2" on next page. Selection of Input format ( bit3,4: IFMT0,1) Refer to Table 2-1. Input word length (bit5,6: IBIT0,1) Refer to Table 2-2. This setting is enable the case of MSB First Right justified. Selection of Input Sampling Rate (bit7,8 : ISF0,1) Refer to Table 2-3 Rev.1.00 2003.05.08 page 16 of 23 PWM Output Form4 H H M65881AFP Fs Selection for De-emphasis filter (De-emphasis is "ON" except for bit9="L" and bit10="L". (bit9, bit10) : ("L", "L") …De-emphasis Filter off except ("L", "L") … De-emphasis Filter on (Setting fsi) Zero Mute at DATA input ( bit11: DF1IMUTE ) "L" … Mute release "H" … Mute The input data from DATA pin is muted in this setting. Zero Mute at Sampling Rate Converter Input (bit12: DF2IMUTE) "L" … Mute release "H" … Mute DF2IMUTE is muting control of sampling rate converter input data. Selection of Muting operation at primary Side Asynchronous Detection ( bit20: ASYNC1MODE) "L" -- Duty 50% Mute of PWM output at primary side asynchronous detection. "H"… Input Zero Mute of the gain control at primary side asynchronous detection. ( PWM Output 50% Mute doesn't be operated in this setting. ) Selection of PWM output form (bit22, 23:PWMMODE 0 and 1) Refer to Table 2-5. * Enable to PWM for Power and for Headphone. • The Selection of PWM output form 1, 2, 3, and 4 Refer to Page10 for the details. NOTE1 ; At the setting of PWM Output Form2 PWM Output Form2 enable to operate the following conditions. bit17(NSOBIT)="H“(5bit), bit16(NSSPEED)="L“(16fso) Only in terminal MCKSEL="L" (secondary side master clock 1024 fso) In case of setting and release for PWM Output Form2,set both flags as follows. •Serial Control System Mode1 bit 22,23 (PWMMODE0,1) Mode2 bit 16 ( NSSPEED), bit17 (NSOBIT ) < In case of the setting for PWM output form2 > (1) Set to Serial Control system2 mode ; bit17(NSOBIT)="H" bit16(NSSPEED)="L". (To be set as MCKSEL="L" in advance is required.) (2) Serial control system1 mode bit22, 23(PWMMODE0,1)="H","L" (When a setup of both (1) and (2) is completed, it changes to Form2. When (2) is set up before (1), The term until a setup of (1) holds the last PWM Output Form.) < In case of release for PWM output form2 > (1) Serial control System 1 mode bit22, bit 23 (PWMMODE 0 , 1) is set as the Form to be used. (2) Serial Control System2 mode bit17(NSOBIT),bit16(NSSPEED) is set the condition to be used. When a setup of (1) is completed, PWM Output Form changes. When (2) is set up before (1), a term until a setup of (1) is worked keeps the Form 2 in the state of serial control system 2 mode bit17(NSOBIT) =H, bit16(NSSPEED) =L. NOTE2; Selection of PWM output form Pay attention in selection and setting above-mentioned that a noise may occur by internal clock changes when Setting of MCKSEL pin is changed and the serial control system 2 modes bit17 (NSOBIT) and bit16 (NSSPEED). Since especially MCKSEL pin sets up an internal master clock, use with a fixed value recommended. In changing MCKSEL, initialization with INIT pin and a re-setup of all the bits by serial control are needed after changing MCKCEL. Phase of PWM Output pins for Headphone(bit24:PWMHP) *Enable only for PWM output for Headphone. "L" -- The Output for Headphone L1 and R1 are reverse phase as the PWM output L1 and R1 for Power Stage. (In this setting, the outputs for Headphone L1, L2, R1and R2 are reverse phase as output for Power Stage.) "H" -- The Output for Headphone L1 and R1 are same phase as the PWM output L1 and R1 for Power Stage. (In this setting, L2 and R2 Output for Headphone are reverse phase as L2 and R2 Output for Power Stage. ) Refer to Page11. Rev.1.00 2003.05.08 page 17 of 23 M65881AFP 3. System2 Mode bit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 No setting bits means "Don't care". Flag name Functional Explanation MODE1 Mode settiing1 MODE2 Mode setting2 IMCKSEL Input master clock Selection SYNC XFsoOEN ASYNCEN2 CHSEL DRPOL SRCRST CHRSEL GIMUTE NSPMUTE PGMUTE NSSPEED NSOBIT DCDRPOL DCDSEL0 DCDSEL1 ACDRPOL ACDSEL0 ACDSEL1 ACDSEL2 H "H" fixed Asynchronous Detection Flag for secondary Side L/R inversion of PWM output pin ∆Σ Block : Rch Input Phase Sampling Rate Converter Reset L/R inversion of PWM output pin Zero Mute at Gain Control Input Clock Duty 50% Mute for PWM Output G_MUTE of PWM Output Data ∆Σ Block : Operating Speed ∆Σ Block : Setting of Output bit number ∆Σ Block : Rch Phase of AC dithering L ->H : Resynchronization disable enable enable disable active non-active Negative phase Positive phase active non-active active non-active active non-active active non-active active non-active 32fso 16fso 5bit (31value) 6bit (63 value) Negative phase Positive phase ∆Σ Block : DC dithering selection ∆Σ Block : Rch Phase of AC dithering Table 3-2 AC dithering selection at ∆Σ block Flag name Non dithering bit AC dithering A 22 ACDSEL0 don't care L 23 ACDSEL1 L H 24 ACDSEL2 L L Pin MCKSEL Refer to Table 3-1 Negative phase ∆Σ Block : AC dithering selection Table 3-1 DC dithering selection at ∆Σ block Flag name Non dithering DC dithering 0.1% bit 19 DCDSEL0 L H L 20 DCDSEL1 L 16fso,5bit L H INIT "L" fixed 256fsi 512fsi Re-synchronization XfsoOUT pin output "enable". Table 3-3 Setting of ∆Σ block operating bit Flag / Pin code name 16fso,6bit 16 NSSPEED L 17 NSOBIT L L Positive phase Refer to Table 3-2 DC dithering 0.2% DC dithering 0.4% L H H H AC dithering C L L H AC dithering E L H H 16fso, 5bit X X 32fso, 5bit H H L L H L ( Secondary master clock 1024fso) ( Secondary master clock 1024fso) ( Secondary master clock 512fso) ( Secondary master clock 1024fso) The selection of primary master clock ( bit3: IMCKSEL ) L … 256fsi H … 512fsi ( "512fsi" are divided into half "256fsi" and operate as primary master clock. ) Re-synchronization (bit6: SYNC) Refer to Page9 in details on re-synchronous operation. Resynchronization process starts by SYNC rise edge, therefore SYNC level must be fixed to "L" just before SYNC operation. "Enable" of a XfsoOUT output (bit7:XfsoOEN) "L" ... "H"… Clock Output (enable) "L" fixed (disable) Rev.1.00 2003.05.08 page 18 of 23 L L L L L L L L L L L L L L L L L L L L M65881AFP Flag to " Enable " of Asynchronous Detection for secondary block ( bit8: ASYNCEN2) ASYNCEN2 (bit8 ) controls " Enable" and " Disable" for secondary asynchronous detector. "L“ … "disable" "H" … "enable“ Under condition of ASYNCEN2="L", secondary side asynchronous detection is in-effective under asynchronous position, whether Fsol Clock is not inputted, there by M65881AFP does not operate function for instance mute operation. Reverse Lch/Rch for PWM Output pins (bit9: CHSEL) * Enable to control for both PWM for Power and Headphone. "L" … As it is aligned "H" … Reverse to pin alignment of Lch/Rch ∆Σ Rch Input Phase (bit10: DRPOL) "L"…. Same phase ( "Through") "H"….This setting makes ∆Σ Rch Input in reverse, further makes PWM block input phase reverse, ultimately phase becomes positive phase ( Input pin and Output pin's phase is same ). Sampling rate converter block reset ( Initialize function ) (bit11: SRCRST) "L" …..normal operation "H" to "L" edge…..Reset ( Initialize function ) Reverse for R1 and R2 of Output pins. (bit12:CHRSEL). “L”… As it is aligned "H"..…Reverse to pin alignment of R1/R2. Zero Mute of a gain control input (bit13:GIMUTE) "L" …Mute release H… Mute Duty 50% Mute of PWM Output (bit14: NSPMUTE) Fixed PWM duty 50% Mute "L"…..Mute release "H"….. Mute This function exists also in a pin by the same name. (This Mute function can be set either NSPMUTE flag or NSPMUTE pin.) Refer to Page13 about a relation with the gain control mode of serial control bit9 and bit 10 (LR independent control). G-Mute for PWM Output Data (bit15: PGMUTE ) *Enable to PWM both PWM for Power and Headphone. At G-MUTE flag = H , PGMUTE pin fixes each PWM Output as followings. "L"….. Mute release "H"….. Fixed Mute for PWM Output ( Fixed value as follows ) <PWM Output for Power > L1,L2,R1 and R2 : "L" fixed < PWM Output for Headphone, Serial control (system1 mode; bit24) PWMHP="L"> L1,L2,R1 and R2 : "H“ fixed < PWM Output for Headphone, Serial control (system1 mode; bit24) PWMHP="H"> L1, R1 : "L" fixed L2, R2 : "H" fixed ∆Σ : operating rate (bit16 : NSSPEED) Refer to the Table 3-3 "L" … 16fso "H" … 32fso *Enable only MCKSEL="L"(1024fso), NSOBIT="H“ (Except for this condition, Operating rate automatically becomes 16fso ). ∆Σ : The setting of bit length (bit17 : NSOBIT) Refer to the Table 3-3. NSOBIT selects bit length for ∆Σ operation. This is set by force as 5bit at MCKSEL="H". "L" … 6bit (63 value) "H" … 5bit (31value) ∆Σ : DC dithering Rch Phase (bit18:DCDRPOL) "L"…Same phase “H"…Reverse phase ∆Σ : DC dithering selection (bit19, 20 : DCDSEL0,1 ) Refer to the Table 3-1. ∆Σ :AC dithering Rch Phase (bit21 : ACDRPOL) "L"…Same phase “H"…Reverse phase ∆Σ : AC dithering selection (bit22, 23, 24 : ACDSEL0, 1, 2) Refer to the Table 3-2. Rev.1.00 2003.05.08 page 19 of 23 M65881AFP AC CHARACTERISTICS (Ta=25ºC, PWMVdd=3.3V, DVdd=1.8V) Item XfsoIN Duty Ratio Symbol duty(XfsoIN) XfsiIN Duty Ratio duty(XfsiIN) SCSHIFT Pulse time SCDT Setup time SCDT Hold time SCLATCH Pulse Width SCLATCH Setup Time SCLATCH Hold time BCK Pulse Width DATA Setup Time DATA Hold time LRCK Setup time LRCK Hold time Condition 512fsi 256fsi tw (SCSHIFT) tsu (SCDT) th (SCDT) tw (SCLATCH) tsu (SCLATCH) th (SCLATCH) tw (BCK) tsu (DATA) th (DATA) tsu (LRCK) th (LRCK) Min. 40 30 40 160 80 80 160 160 160 35 20 20 20 20 Typ. 50 50 50 Max. 60 70 60 Unit % % % nsec nsec nsec nsec nsec nsec nsec nsec nsec nsec nsec AC CHARACTERISTICS TIMING CHART (1)XfsoIN, XfsiIN Duty Ratio twhl twl twh duty (XfsoIN, XfiIN) = twh twhl (2)SCSHIFT, SCDT, SCLATCH Input Timing tw (SCSHIFT) SCSHIFT tsu (SCDT) tw (SCSHIFT) th (SCDT) SCDT tw (SCLATCH) SCLATCH tsu (SCLATCH) th (SCLATCH) (3)BCK, DATA, LRCK Input Timing tw (BCK) tw (BCK) BCK tsu (DATA) DATA th (LRCK) LRCK Rev.1.00 2003.05.08 th (DATA) page 20 of 23 tsu (LRCK) M65881AFP APPLICATION EXAMPLE DSP LRCK BCK DATA XfsiIN (Primary Clock) MCKSEL XFSOIN (Secondary Clock) XFSOOUT FsoCKO FsoI MCU Secondary Clock Select L:1024Fso H:512Fso SCDT SCSHIFT SCLATCH OUTL1 OUTL2 Oscillator Secondary Clock output Secondary synchronized clock (For Multi channel ) Power Driver M65881AFP Initialize Control INIT Mute Control NSPMUTE OUTR1 OUTR2 Input Mode Select1 Input Mode Select2 HPOUTL1 MODE1 MODE2 T E S T 1 T E S T 2 S F L A G HPOUTL2 HPOUTR1 HPOUTR2 Flag Output Rev.1.00 2003.05.08 page 21 of 23 Power Driver Low Pass Filter /Headphone Amplifier HE page 22 of 23 G 1 42 Z1 e EIAJ Package Code SSOP42-P-450-0.80 E z y Detail G D JEDEC Code – MMP b 21 22 Weight(g) – Detail F A2 Lead Material Cu Alloy+42 Alloy L1 Rev.1.00 2003.05.08 A c A1 F L A A1 A2 b c D E e HE L L1 z Z1 y Symbol e1 b2 e1 I2 b2 Dimension in Millimeters Min Nom Max 2.4 – – – 0.05 – – 2.0 – 0.4 0.3 0.25 0.2 0.15 0.13 17.7 17.5 17.3 8.6 8.4 8.2 – 0.8 – 12.23 11.93 11.63 0.7 0.5 0.3 – 1.765 – – 0.75 – – – 0.9 0.15 – – 0° – 10° – 0.5 – – 11.43 – – 1.27 – Recommended Mount Pad e Plastic 42pin 450mil SSOP I2 42P2R-E M65881AFP DETAILED DIAGRAM OF PACKAGE OUTLINE M65881AFP Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan Keep safety first in your circuit designs! 1. Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any malfunction or mishap. Notes regarding these materials 1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer’s application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corporation or a third party. 2. Renesas Technology Corporation assumes no responsibility for any damage, or infringement of any third-party’s rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials. 3. All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on products at the time of publication of these materials, and are subject to change by Renesas Technology Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor for the latest product information before purchasing a product listed herein. The information described here may contain technical inaccuracies or typographical errors. Renesas Technology Corporation assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors. Please also pay attention to information published by Renesas Technology Corporation by various means, including the Renesas Technology Corporation Semiconductor home page (http://www.renesas.com). 4. When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. Renesas Technology Corporation assumes no responsibility for any damage, liability or other loss resulting from the information contained herein. 5. Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. 6. The prior written approval of Renesas Technology Corporation is necessary to reprint or reproduce in whole or in part these materials. 7. If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited. 8. Please contact Renesas Technology Corporation for further details on these materials or the products contained therein. http://www.renesas.com Copyright © 2003. Renesas Technology Corporation, All rights reserved. Printed in Japan. Rev.1.00 2003.05.08 page 23 of 23