STw5093 2.7V SUPPLY 14-BIT LINEAR CODEC WITH HIGH-PERFORMANCE AUDIO FRONT-END FEATURES: Complete CODEC and FILTER system including: 14 BIT LINEAR ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERS. 8 BIT COMPANDED ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERS ALAW OR -LAW. TRANSMIT AND RECEIVE BAND-PASS FILTERS ACTIVE ANTIALIAS NOISE FILTER. Phone Features: ONE MICROPHONE BIASING OUTPUT REMOTE CONTROL (REMOCON) FUNCTION THREE SWITCHABLE MICROPHONE AMPLIFIER INPUTS. GAIN PROGRAMMABLE:0 . . 42.5 dB AMPLIFIER, 1.5 dB STEPS (+ MUTE). EARPIECE AUDIO OUTPUT. ATTENUATION PROGRAMMABLE: 0 . . 30 dB, 2 dB STEPS. EXTERNAL AUDIO OUTPUT. ATTENUATION PROGRAMMABLE: 0 . . 30 dB, 2 dB STEPS. DRIVING CAPABILITY: 140mW OVER 8 TRANSIENT SUPRESSION SIGNAL DURING POWER ON AND DURING AMPLIFIER SWITCHING. INTERNAL PROGRAMMABLE SIDETONE CIRCUIT. ATTENUATION PROGRAMMABLE: 16 dB RANGE, 1 dB STEP. INTERNAL RING, TONE AND DTMF GENERATOR, SINEWAVE OR SQUAREWAVE WAVEFORMS. ATTENUATION PROGRAMMABLE: 27dB RANGE, 3dB STEP. THREE FREQUENCY RANGES: a) 3.9Hz . . . . 996Hz, 3.9Hz STEP b) 7.8Hz . . . . 1992Hz, 7.8Hz STEP c) 15.6Hz . . . . 3984Hz, 15.6Hz STEP PROGRAMMABLE PULSE WIDTH MODULATED BUZZER DRIVER OUTPUT. General Features: SINGLE 2.7V to 3.3V SUPPLY EXTENDED TEMPERATURE RANGE OPERATION (*) -40C to 85C. 1.0W STANDBY POWER (TYP. AT 2.7V). 13mW OPERATING POWER (TYP. AT 2.7V). March 2004 TSSOP30 ORDERING NUMBER: STw5093 1.8V TO 3.3V CMOS COMPATIBLE DIGITAL INTERFACES. PROGRAMMABLE PCM AND CONTROL INTERFACE MICROWIRE COMPATIBLE. APPLICATIONS: GSM/DCS1800/PCS1900/JDC DIGITAL CELLULAR TELEPHONES. CDMA CELLULAR TELEPHONES. DECT/CT2/PHS DIGITAL CORDLESS TELEPHONES. BATTERY OPERATED AUDIO FRONT-ENDS FOR DSPs. (*) Functionality guaranteed in the range - 40C to +85C; Timing and Electrical Specifications are guaranteed in the range - 30C to +85C. GENERAL DESCRIPTION STw5093 is a high performance low power combined PCM CODEC/FILTER device tailored to implement the audio front-end functions required by low voltage/low power consumption digital cellular terminals. STw5093 offers a number of programmable functions accessed through a serial control channel that easily interfaces to any classical microcontroller. The PCM interface supports both non-delayed (normal and reverse) and delayed frame synchronization modes. STw5093 can be configurated either as a 14-bit linear or as an 8-bit companded PCM coder. Additionally to the CODEC/FILTER function, STw5093 includes a Tone/Ring/DTMF generator, a sidetone generation, and a buzzer driver output.STw5093 fulfills and exceeds D3/D4 and CCITT recommendations and ETSI requirements for digital handset terminals. Main applications include digital mobile phones, as cellular and cordless phones, or any battery powered equipment that requires audio codecs operating at low single supply voltages. 1/34 STw5093 PIN CONNECTIONS (Top view) VCC 1 30 MCLK REMOUT 2 29 FS REMIN 3 28 DR MIC3+ 4 27 DX MIC3MBIAS 5 26 GND 6 25 CO VCCA MIC1+ 7 24 VCCIO 8 23 AUXCLK MIC1- 9 22 CI GNDA 10 21 CS- MIC2+ 11 20 CCLK MIC2- 12 19 BZ VCCP 13 18 LO VLr- 14 17 VFr VLr+ 15 16 GNDP D98TL399 BLOCK DIAGRAM REMIN MIC PREAMP 0/20dB + MUTE MIC3MIC2- REN,RLM,ROI,RDL MIC AMP 0 -> 22.5 1.5dB STEP REMOCON REMOUT PG MIC1- DE TX FILTER TRANSMIT REGISTER PCM ADC (A) MIC2+ HPB DX EN MIC1+ MIC3+ EARA OUTPUT VS & TE (B) RX FILTER RECEIVE REGISTER PCM DAC DR 0 -> -30dB, 2dB STEP VFr RTE OE SE VLr- -1 12dB VLr+ MBIAS TONE, RING & DTMF GENER. & FILTER 6dB SI CO TONE AMP 0 -> -27dB 3dB STEP CSSLC EXTA OUTPUT SIDETONE AMP -12.5 -> -27.5dB 1dB STEP MB CLOCK GENERATOR & SYNCHRONIZER FS INTERFACE LATCH LO BUZZER DRIVER BE 2/34 GNDP GNDA GND VCCA VCC VCCP VCCIO AUX CLK BZ LEVEL ADJUST (PWM) D98TL408 CCLK MCLK 1 MICROPHONE BIAS CI CONTROL INTERFACE -WIRE STW5093 PIN FUNCTION N Pin 1 VCC 2 Description Power supply input for the digital section. REMOUT Remocon function digital output. 3 REMIN Remocon function input. An high level at this pin is detected as a non pressed key, while a low level is detected as a pressed key. 4 MIC3+ Third positive high impedance input to transmit preamplifier for microphone connection. 5 MIC3- Third negative high impedance input to transmit preamplifier for microphone connection. 6 MBIAS Microphone Biasing Switch. 7 VCCA 8 MIC1+ Positive high impedance input to transmit pre-amplifier for microphone connection. 9 MIC1- Negative high impedance input to transmit pre-amplifier for microphone connection. 10 GNDA Analog Ground: All analog signals are referenced to this pin. GND and GNDA can be connected together for low cost applications (see STw5093 Power Supply Notes). 11 MIC2+ Second Positive high impedance input to transmit pre-amplifier for microphone connection. 12 MIC2- Second negative high impedance input to transmit pre-amplifier for microphone connection. 13 VCCP Power supply input for the VFr and VLr drivers. VCCP and VCCA must be connected together. 14,15 VLr-, VLr+ Receive analog extra amplifier complementary outputs. These outputs can drive directly earpiece transductor of 8 or 50nF. The signal at these outputs can be the sum of: - Receive Speech signal from DR, - Internal Tone generator, - Sidetone signal. 16 GNDP Power ground. VFr and VLr drivers are referenced to this pin. GNDP and GNDA must be connected together. 17 VFr Receive analog earpiece amplifier output. This output can drive directly earpiece transductor of 30 or 50nF. The signal at this output can be the sum of: - Receive Speech signal from DR, - Internal Tone Generator, - Sidetone signal. 18 LO A logic 1 written into DO (CR1) appears at LO pin as a logic 0 A logic 0 written into DO (CR1) appears at LO pin as a logic 1. 19 BZ Pulse width modulated buzzer driver output. 20 CCLK 21 CS- 22 CI 23 Power supply input for the analog section. VCC and VCCA can be directly connected together for low cost applications (see STw5093 Power Supply Notes). Control Clock input: This clock shifts serial control information into CI and out from CO when the CS- input is low, depending on the current instruction. CCLK may be asynchronous with the other system clocks. Chip Select input: When this pin is low, control information is written into and out from the STw5093 via CI and CO pins. Control data Input: Serial Control information is shifted into the STw5093 on this pin when CS- is low on the rising edges of CCLK. AUXCLK Auxiliary Clock Input. Values must be 512 kHz, 1.536 MHz, 2.048 MHz or 2.56 MHz selected by means of Control Register CR0. AUXCLK is not used to shift in and out data 3/34 STw5093 PIN FUNCTION (continued) N Pin 24 VCCIO 25 CO 26 GND 27 DX Transmit Data ouput: Data is shifted out on this pin during the assigned transmit time slots. Elsewhere DX output is in the high impedance state. In delayed and non-delayed normal frame synchr. modes, voice data byte is shifted out from TRISTATE output DX at the MCLK on the rising edge of MCLK, while in non-delayed reverse frame synchr mode voice data byte is shifted out on the falling edge of MCLK. 28 DR Receive data input: Data is shifted in during the assigned Received time slots In delayed and non-delayed normal frame synchr. modes voice data byte is shifted in at the MCLK frequency on the falling edges of MCLK, while in non-delayed reverse frame synchr. mode voice data byte is shifted in at the MCLK frequency on the rising edges of MCLK. 29 FS Frame Sync input: This signal is a 8kHz clock which defines the start of the transmit and receive frames. Any of three formats may be used for this signal: non delayed normal mode, delayed mode, and non delayed reverse mode. 30 MCLK Master Clock Input: This signal is used by the switched capacitor filters and the encoder/decoder sequencing logic. Values must be 512 kHz, 1.536 MHz, 2.048 MHz or 2.56 MHz selected by means of Control Register CR0. MCLK is used also to shift-in and out data. 4/34 Description Power supply Input for the Digital I/O's. Control data Output: Serial control/status information is shifted out from the STw5093 on this pin when CS- is low on the falling edges of CCLK. Ground: All digital signals are referenced to this pin. STW5093 1.0 FUNCTIONAL DESCRIPTION 1.1 DEVICE OPERATION 1.1.1 Power on initialization: When power is first applied, power on reset circuitry initializes STw5093 and puts it into the power down state. Gain Control Registers for the various programmable gain amplifiers and programmable switches are initialized as indicated in the Control Register description section. All CODEC functions are disabled. The desired selection for all programmable functions may be intialized prior to a power up command using the MICROWIRE control channel. Note: after register programming, a subsequent activation of the internal Power on Reset can be detected by programming to 1 the DO bit in the CR1 register; this sets to the logic level 0 the LO output. If an internal Power on Reset occurs, LO automatically switches to logic level 1. 1.1.2 Power up/down control: Following power-on initialization, power up and power down control may be accomplished by writing any of the control instructions listed in Table 1 into STw5093 with "P" bit set to 0 for power up or 1 for power down. Normally, it is recommended that all programmable functions be initially programmed while the device is powered down. Power state control can then be included with the last programming instruction or in a separate single byte instruction. Any of the programmable registers may also be modified while STw5093 is powered up or down by setting "P" bit as indicated. When power up or down control is entered as a single byte instruction, bit 1 must be set to a 0. When a power up command is given, all de-activated circuits are activated, but output DX will remain in the high impedance state until the second Fs pulse after power up. 1.1.3 Power down state: Following a period of activity, power down state may be reentered by writing a power down instruction. Control Registers remain in their current state and can be changed by MICROWIRE control interface. In addition to the power down instruction, detection of loss MCLK (no transition detected) automatically enters the device in "reset" power down state with DX output in the high impedance state. 1.1.4 Transmit section: Transmit analog interface is designed in two stages to enable gains up to 42.5 dB to be realized. Stage 1 is a low noise differential amplifier providing a selectable 0 or 20 dB gain via bit 1 (PG) of register CR4. A microphone may be capacitevely connected to MIC1+, MIC1- inputs, while the MIC2+ MIC2A and MIC3+ MIC3- inputs may be used to capacitively connect a second microphone or a third microphone respectively or an auxiliary audio circuit. MIC1 or MIC2 or MC3 or transmit mute is selected with bits 6 and 7 of register CR4. In the mute case, the analog transmit signal is grounded and the sidetone path is also disabled. Following the first stage is a programmable gain amplifier which provides from 0 to 22.5 dB of additional gain in 1.5dB step. The total transmit gain should be adjusted so that, at reference point A, see Block Diagram description, the internal 0 dBm0 voltage is 0.49 Vrms (overload level is 0.7 Vrms). Second stage amplifier gain can be programmed with bits 4 to 7 of CR5. An active RC prefilter then precedes the 8th order band pass switched capacitor filter. A/D converter can be either a 14-bit linear (bit CM = 0 in register CR0) or can have a compressing characteristics (bit CM = 1 in register CR0) according to CCITT A or MU255 coding laws. A precision on chip voltage reference ensures accurate and highly stable transmission levels. Any offset voltage arising in the gain-set amplifier, the filters or the comparator is cancelled by an internal autozero circuit. Each encode cycle begins immediatly at the beginning of the selected Transmit time slot. The total signal delay referenced to the start of the time slot is approximatively 195 s (due to the transmit filter) plus 125 s (due to encoding delay), which totals 320 s. Voice data is shifted out on DX during the selected time slot on the trans- 5/34 STw5093 mit rising edges of MCLK in delayed or non-delayed normal mode or on the falling edges of MCLK in non-delayed reverse mode.A separate MBIAS output can be used to bias a microphone (bit MB = 1 in register CR10) 1.1.5 Receive section: Voice Data is shifted into the decoder's Receive voice data Register via the DR pin during the selected time slot on the falling edges of MCLK in delayed or non-delayed normal mode or on the rising edges of MCLK in nondelayed reverse mode. The decoder consists of either a 14-bit linear or an expanding DAC with A or MU255 law decoding characteristic. Following the Decoder is a 3400 Hz 8th order band-pass switched capacitor filter with integral Sin X/X correction for the 8 kHz sample and hold. 0 dBmO voltage at this (B) reference point (see Block Diagram description) is 0.49 Vrms. A transcient suppressing circuitry ensure interference noise suppression at power up. The analog speech signal output can be routedeither to earpiece (VFR output) or to an extra analog output (VLr+, VLr- outputs) by setting bits OE1, OE2, and SE (4, 3, and 0 of CR4). Total signal delay is approximatively 190s (filter plus decoding delay) plus 62.5s (1/2 frame) which gives approximatively 252s. Output VFR is intended to directly drive an earpiece. Preceding the outputs is a programmable attenuation amplifier, which must be set by writing to bits 4 to 7 in register CR6. Attenuations in the range 0 to -30 dB relative to the maximum level in 2 dB step can be programmed. The input of this programmable amplifier is the sum of several signals which can be selected by writing to register CR4.: - Receive speech signal which has been decoded and filtered, - Internally generated tone signal, (Tone amplitude is programmed with bits 4 to 7 of register CR7), - Sidetone signal, the amplitude of which is programmed with bits 0 to 3 of register CR5 VFr is capable of driving output power levels up to 16.5mW into a 30 load impedance capacitively connected between VFr+ and GND. Piezoceramic receivers up to 50nF can also be driven. Differential outputs VLr+,VLr- are intended to directly drive an extra output. Preceding the outputs is a programmable attenuation amplifier, which must be set by writing to bits 0 to 3 in register CR6. Attenuations in the range 0 to -30 dB relative to the maximum level in 2.0 dB step can be programmed. The input of this programmable amplifier can be the sum of signals which can be selected by writing to register CR4: - Receive speech signal which has been decoded and filtered, - Internally generated tone signal, (Tone amplitude is programmed with bits 4 to 7 of register CR7), - Sidetone signal, the amplitude of which is programmed with bits 0 to 3 of register CR5. VLr+ and VLr- outputs are capable of driving output power level up to140mW into differentially connected load impedance of 8 . Piezoceramic receivers up to 50nF can also be driven. BUZZER OUTPUT: Single ended output BZ is intended to drive a buzzer, via an external BJT, with a squarewave pulse width modulated (PWM) signal the frequency of which is stored into register CR8. For some applications it is also possible to amplitude modulate this PWM signal with a squarewave signal having a frequency stored in register CR9. Maximum load for BZ is 5k and 50pF. 1.1.6 Digital Interface (Fig. 1) FS Frame Sync input determines the beginning of frame. It may have any duration from a single cycle of MCLK to a squarewave. Three different relationships may be established between the Frame Sync input and the first time slot of frame by setting bits DM1 and DM0 in register CR1. In non delayed data mode (long frame timing) the first time slot begins nominally coincident with the rising edge of FS. Alternative is to use delayed data mode (short frame sync timing) in which FS input must be high at least a half cycle of MCLK earlier the frame beginning In the case of linear code (bit CM = 0 in register CR0) the MSB is the first bit that is transmitted and received. 6/34 STW5093 In the case of companded code only (bit CM = 1 in register CR0) a time slot assignment circuit on chip may be used with all timing modes, allowing connection to one of the two B1 and B2 voice data channels. Two data formats are available: in Format 1, time slot B1 corresponds to the 8 MCLK cycles following immediately the rising edge of FS, while time slot B2 corresponds to the 8 MCLK cycles following immediately time slot B1. In Format 2, time slot B1 is identical to Format 1. Time slot B2 appears two bit slots after time slot B1. This two bits space is left available for insertion of the D channel data. Data format is selected by bit FF (2) in register CR0. Time slot B1 or B2 is selected by bit TS (1) in Control Register CR1. Bit EN (2) in control register CR1 enables or disables the voice data transfer on DX and DR as appropriate. During the assigned time slot, DX output shifts data out from the voice data register on the rising edges of MCLK in the case of delayed and non-delayed normal modes or on the falling edges of MCLK in the case of non-delayed reverse mode. Serial voice data is shifted into DR input during the same time slot on the falling edges of MCLK in the case of delayed and non-delayed normal modes or on the rising edges of MCLK in the case of nondelayed reverse mode. DX is in the high impedance Tristate condition when in the non selected time slots. Figure 1. Digital Interface Format (significant only for companded code) FORMAT 1 FS (delayed timing) FS (non delayed timing) MCLK DR B1 B2 DX B1 B2 X X X X X FORMAT 2 FS (delayed timing) FS (non delayed timing) MCLK DR B1 DX B1 X B2 B2 D98TL394 1.1.7 Control Interface: Control information or data is written into or read-back from STw5093 via the serial control port consisting of control clock CCLK, serial data input CI and output CO, and Chip Select input, CS-. All control instructions require 2 bytes as listed in Table 1, with the exception of a single byte power-up/down command. To shift control data into STw5093, CCLK must be pulsed high 8 times while CS- is low. Data on CI input is shifted into the serial input register on the rising edge of each CCLK pulse. After all data is shifted in, the content of the input shift register is decoded, and may indicate that a 2nd byte of control data will follow. This second byte may either be defined by a second byte-wide CS- pulse or may follow the first contiguously, i.e. it is not mandatory for CS- to return high in between the first and second control bytes. At the end of the 2nd control byte, data is loaded into the appropriate programmable register. CS- must return high at the end of the 2nd byte. 7/34 STw5093 To read-back status information from STw5093, the first byte of the appropriate instruction is strobed in during the first CS- pulse, as defined in Table 1. CS- must be set low for a further 8 CCLK cycles, during which data is shifted out of the CO pin on the falling edges of CCLK. When CS- is high, CO pin is in the high impedance Tri-state, enabling CO pins of several devices to be multiplexed together. Thus, to summarise, 2 byte READ and WRITE instructions may use either two 8-bit wide CS- pulses or a single 16 bit wide CS- pulse. 1.1.8 Control channel access to PCM interface: It is possible to access the B channel previously selected in Register CR1 in the case of companded code only. A byte written into Control Register CR3 will be automatically transmitted from DX output in the following frame in place of the transmit PCM data. A byte written into Control Register CR2 will beautomatically sent through the receive path to the Receive amplifiers. In order to implement a continuous data flow from the Control MICROWIRE interface to a B channel, it is necessary to send the control byte on each PCM frame. A current byte received on DR input can be read in the register CR2. In order to implement a continuous data flow from a B channel to MICROWIRE interface, it is necessary to read register CR2 at each PCM frame. 1.1.9 AUXCLK usage: The Auxiliary clock AUXCLK is only used to keep active the tone and buzzer generation functions to the Earpiece or to the Extra amplifier outputs when the Master Clock MCLK is not available, and there is no voice activity both in transmit and receive channels. When AUXCLK is selected, the PCM digital interface is inactive (DX in tristate and DR is not read). The selection between AUXCLK and MCLK is done by bit SLC in register CR1The input frequency of AUXCLK is selected via bits F1 and F0 of register CR0 as for the MCLK signal. 1.1.10REMOCON function: The REMOCON (Remote Control) function can be used to detect the status of an headset button. The REMOCON function is enabled by setting bit REN (7 of CR10). If enabled, this function is active also when the STw5093 is in Power-down state. At REMIN input an high level is detected as a non pressed button, while a low level is detected as a pressed button. The "Pressed Button" information can be treated in 2 ways depending on bit RLM (6 of CR10): if RLM = 0 (Transparent mode) the information at REMIN is seen at REMOUT after a debounce time of 50ms maximum. if RLM = 1 (Latched Mode) the information stored in bit RDL (4 of CR10) is seen at REMOUT.When a low level at REMIN is detected RDL is set after a debounce time of 50ms maximum.RDL is reset at power on reset and can also be reset writing CR10. The REMOUT output polarity can be inverted setting bit ROI (5 of CR10):the pressed button information is presented at REMOUT output as a logic 1 if bit ROI = 0. If ROI = 1 the polarity is inverted. 2.0 PROGRAMMABLE FUNCTIONS The programmable functions are configured by writing to a number of registers using a 2-byte write cycle. Most of these registers can also be read-back for verification. Byte one is always register address, while byte two is Data. Table 1 lists the register set and their respective adresses. 8/34 STW5093 Table 1. Programmable Register Intructions Address byte Function Data byte 7 6 5 4 3 2 1 0 Single byte Power up/down P X X X X X 0 X none Write CR0 P 0 0 0 0 0 1 X see CR0 TABLE 2 Read-back CR0 P 0 0 0 0 1 1 X see CR0 Write CR1 P 0 0 0 1 0 1 X see CR1 TABLE 3 Read-back CR1 P 0 0 0 1 1 1 X see CR1 Write Data to receive path P 0 0 1 0 0 1 X see CR2 TABLE 4 Read data from DR P 0 0 1 0 1 1 X see CR2 Write Data to DX P 0 0 1 1 0 1 X see CR3 TABLE 5 Write CR4 P 0 1 0 0 0 1 X see CR4 TABLE 6 Read-back CR4 P 0 1 0 0 1 1 X see CR4 Write CR5 P 0 1 0 1 0 1 X see CR5 TABLE 7 Read-back CR5 P 0 1 0 1 1 1 X see CR5 Write CR6 P 0 1 1 0 0 1 X see CR6 TABLE 8 Read-back CR6 P 0 1 1 0 1 1 X see CR6 Write CR7 P 0 1 1 1 0 1 X see CR7 TABLE 9 Read-back CR7 P 0 1 1 1 1 1 X see CR7 Write CR8 P 1 0 0 0 0 1 X see CR8 TABLE 10 Read-back CR8 P 1 0 0 0 1 1 X see CR8 Write CR9 P 1 0 0 1 0 1 X see CR9 TABLE 11 Read-back CR9 P 1 0 0 1 1 1 X see CR9 Write CR10 P 1 0 1 0 0 1 X see CR10 TABLE 12 Read-back CR10 P 1 0 1 0 1 1 X see CR10 Write CR11 P 1 0 1 1 0 1 X see CR11 TABLE 13 Read-back CR11 P 1 0 1 1 1 1 X see CR11 Write Test Register CR12 P 1 1 0 0 0 1 X reserved Write Test Register CR13 P 1 1 0 1 0 1 X reserved Write Test Register CR14 P 1 1 1 0 0 1 X reserved Notes: 1. bit 7 of the address byte and data byte is always the first bit clocked into or out from: CI and CO pins when MICROWIRE serial port is enabled. X = reserved: write 0 2. "P" bit is Power up/down Control bit. P = 1 Means Power Down.Bit 1 indicates, if set, the presence of a second byte. 3. Bit 2 is write/read select bit. 4. Registers CR12, CR13, and CR14 are not accessible. 9/34 STw5093 Table 2. Control Register CR0 Functions 7 6 5 4 3 2 1 0 F1 F0 CM MA IA FF B7 DL 0 0 1 1 0 1 0 1 Function MCLK or AUXCLK = 512 kHz MCLK or AUXCLK = 1.536 MHz MCLK or AUXCLK = 2.048 MHz MCLK or AUXCLK = 2.560 MHz 0 1 Linear code Companded code * Linear Code 0 0 1 1 0 1 0 1 2-complement * sign and magnitude 2-complement 1-complement 0 1 0 1 0 1 *: (1): * Companed Code MU-law: CCITT D3-D4 * MU-law: Bare Coding A-law including even bit inversion A-law: Bare Coding B1 and B2 consecutive B1 and B2 separated * (1) (1) 8 bits time-slot 7 bits time-slot * (1) (1) Normal operation Digital Loop-back * * state at power on initialization significant in companded mode only Table 3. Control Register CR1 Functions 7 6 5 4 3 2 1 0 DM1 DM0 DO MR MX EN TS SLC 0 1 1 X 0 1 Function delayed data timing non-delayed normal data timing non-delayed reverse data timing 0 1 0 1 0 1 0 1 0 1 0 1 *: (1): X: 10/34 state at power on initialization significant in companded mode only reserved: write 0 * L0 latch set to 1 L0 latch set to 0 * DR connected to rec. path CR2 connected to rec. path * Trans path connected to DX CR3 connected to DX * voice data transfer disable voice data transfer enable * B1 channel selected B2 channel selected * (1) (1) (1) MCLK Master Clock and FS Frame Sync inputs are selected * AUXCLK Auxiliary Clock input is selected STW5093 Table 4. Control Register CR2 Functions 7 6 5 4 3 2 1 0 d7 d6 d5 d4 d3 d2 d1 d0 Function msb lsb Data sent to Receive path or Data received from DR input (1) (1) Significant in companded mode only. Table 5. Control Registers CR3 Functions 7 6 5 4 3 2 1 0 d7 d6 d5 d4 d3 d2 d1 d0 Function msb lsb DX data transmitted (1) (1) Significant in companded mode only. Table 6. Control Register CR4 Functions 7 6 5 4 3 2 1 0 VS TE SI OE1 OE2 RTE HPB SE 0 0 1 1 0 1 0 1 Function Transmit input muted MIC1 Selected MIC2 Selected MIC3 Selected 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 *: * Internal sidetone disabled Internal sidetone enabled * Receive output muted VFr output selected VLr output selected NOT ALLOWED * Ring / Tone to VFr or VLr disabled Ring / Tone to VFr or VLr enabled * Receive High Pass filter enabled Receive High Pass filter disabled * Receive Signal to VFr or VLr disabled Receive Signal to VFr or VLr enabled * state at power on initialization 11/34 STw5093 Table 7. Control Register CR5 Functions 7 6 5 4 3 2 1 0 Function Transmit amplifier 0 0 1 0 0 1 0 0 1 Sidetone amplifier 0 1 1 0 0 1 0 0 1 0 0 1 lsb 0 dB gain 1.5 dB gain in 1.5 dB step 22.5 dB gain * 0 1 1 -12.5 dB gain -13.5 dB gain in 1 dB step -27.5 dB gain * *: state at power on initialization Table 8. Control Register CR6 Functions 7 6 5 4 0 0 1 0 0 1 2 1 0 Function Earpiece ampifier [EARA] 0 0 1 3 Extra amplifier [EXTA] 0 1 1 0 0 1 0 0 1 0 0 1 lsb 0 dB gain -2 dB gain in 2 dB step -30 dB gain * 0 1 1 0 dB gain -2 dB gain in 2 dB step -30 dB gain * *: state at power on initialization Table 9. Control Register CR7 Functions 7 6 5 4 Tone gain 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 1 1 X X 0 0 1 1 0 0 1 1 X X 3 2 1 0 F1 F2 SN DE 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 *: (2): X 12/34 Function Attenuation f1 VPP f2 VPP 0 dB * -3 dB -6 dB - 9 dB -12 dB -15 dB -18 dB -21 dB -24 dB -27 dB 1.6(2) 1.26(2) 0.066 0.053 f1 and f2 muted f2 selected f1 selected f1 and f2 in summed mode * Squarewave signal selected Sinewave signal selected * Normal operation Tone / Ring Generator connected toTransmit path state at power on initialization value provided if f1 or f2 is selected alone.if f1 and f2 are selected in the summed mode, f1=0.89 Vpp while f2=0.7 Vpp. reserved: write 0 * STW5093 Table 10. Control Register CR8 Functions 7 6 5 4 3 2 1 0 f17 f16 f15 f14 f13 f12 f11 f10 Function msb lsb Binary equivalent of the decimal number used to calculate f1 Table 11. Control Register CR9 Functions 7 6 5 4 3 2 1 0 f27 f26 f25 f24 f23 f22 f21 f20 Function msb lsb Binary equivalent of the decimal number used to calculate f2 Table 12. Control Register CR10 Functions 7 6 5 4 3 2 1 0 ROI RDL PG MB DFT HFT Function REN RLM 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 Remocon Function disabled Remocon Function enabled * Remocon output in transparent mode Remocon output in latched mode * Remocon output not inverted Remocon output inverted * Remocon detection latch reset by P Remocon detection latch set by internal logic * 20dB preamplifier gain 0dB preamplifier gain * MBIAS output disabled MBIAS output enabled * Standard Frequency Tone Range Halved Frequency Tone Range Doubled Frequency Tone Range Forbidden * (*) Default values inserted into the Register at Power On. Table 13. Control Register CR11 Functions 7 6 5 4 3 2 1 0 BE BI BZ5 BZ4 BZ3 BZ2 BZ1 BZ0 Function 0 1 Buzzer output disabled (set to 0) Buzzer output enabled 0 1 * Duty Cycle is intended as the relative width of logic 1 Duty cycle is intended as the relative width of logic 0 msb lsb * Binary equivalent of the decimal number used to calculate the duty cycle. * state at power on initialization 13/34 STw5093 CONTROL REGISTER CR0 First byte of a READ or a WRITE instruction to Control Register CR0 is as shown in TABLE 1. Second byte is as shown in TABLE 2. Master Clock / Auxiliary Clock Frequency Selection A master clock must be provided to STw5093 to activate all the functions. In the case MCLK is absent, AUXCLK can be provide to STw5093 for activating tone or buzzer functions only. MCLK or AUXCLK frequency can be either 512 kHz, 1.536 MHz, 2.048 MHz or 2.56 MHz.. Bit F1 (7) and F0 (6) must be set during initialization to select the correct internal divider.Default value is 512 kHz. Any clock different from the default one must be selected prior a Power-Up instruction. Coding Law Selection Bits MA (4) and IA (3) permit selection of Mu-255 law or A law coding with or without even bit inversion if companded code (bit CM = 1) is selected. Bits MA(4) and IA(3) permit selection of 2-complement, 1-complement or sign and magnitude if linear code (bit CM = 0) is selected. Coding Selection Bit CM (5) permits selection either of linear coding (14-bit) or companded coding (8-bit). Default value is linear coding. Digital Interface format (1) Bit FF(2) = 0 selects digital interface in Format 1 where B1 and B2 channel are consecutive. FF=1 selects Format 2 where B1 and B2 channel are separated by two bits. (See digital interface format section.) 56+8 selection (1) Bit 'B7' (1) selects capability for STw5093 to take into account only the seven most significant bits of the PCM data byte selected. When 'B7' is set, the LSB bit on DR is ignored and LSB bit on DX is high impedance. This function allows connection of an external "in band" data generator directly connected on the Digital Interface. Digital loopback Digital loopback mode is entered by setting DL bit(0) equal 1. In Digital Loopback mode, data written into Receive PCM Data Register from the selected received time-slot is read-back from that Register in the selected transmit time-slot on DX. No PCM decoding or encoding takes place in this mode. Transmit and Receive amplifier stages are muted. CONTROL REGISTER CR1 First byte of a READ or a WRITE instruction to Control Register CR1 is as shown in TABLE 1. Second byte is as shown in TABLE 3. Digital Interface Timing Bit DM1(7) = 0 selects digital interface in delayed timing mode, while DM1 = 1 and DM0 = 0 selects non-delayed normal data timing mode, and DM1 = 1 and DM0 = 1 selects non-delayed reverse data timing mode.Default is delayed data timing. (1) Significant in companded mode only 14/34 STW5093 Latch output control Bit DO controls directly logical status of latch output LO: ie, a "ZERO" written in bit DO puts the output LO at logical 1, while a "ONE" written in bit DO sets the output LO to zero. Microwire access to B channel on receive path (1) Bit MR (4) selects access from MICROWIRE Register CR2 to Receive path. When bit MR is set high, data written to register CR2 is decoded each frame, sent to the receive path and data input at DR is ignored. In the other direction, current PCM data input received at DR can be read from register CR2 each frame. Microwire access to B channel on transmit path (1) Bit MX (3) selects access from MICROWIRE write only Register CR3 to DX output. When bit MX is set high, data written to CR3 is output at DX every frame and the output of PCM encoder is ignored. True A law even bit inversion Mu 255 law msb lsb msb A law without even bit inversion lsb msb lsb Vin = + full scale 1 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 Vin = 0V 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Vin = - full scale 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 1 1 1 1 1 1 MSB is always the first PCM bit shifted in or out of: STw5093. Transmit/Receive enabling/disabling Bit 'EN' (2) enables or disables voice data transfer on DX and DR pins. When disabled, PCM data from DR is not decoded and PCM time-slots are high impedance on DX. Default value is disabled. B-channel selection (1) Bit TS(1) permits selection between B1 or B2 channels. Default value is B1 channel. Clock Selection Bit SLC(0) allows the selection between MCLK and AUXCLK. Default value is MCLK. CONTROL REGISTER CR2(1) Data sent to receive path or data received from DR input. Refer to bit MR(4) in "Control Register CR1" paragraph. CONTROL REGISTER CR3 (1) DX data transmitted. Refer to bit MX(3) in "Control Register CR1" paragraph. CONTROL REGISTER CR4 First byte of a READ or a WRITE instruction to Control Register CR4 is as shown in TABLE 1. Second byte is as shown in TABLE 6. (1) Significant in companded mode only 15/34 STw5093 Transmit Input Selection MIC1 or MIC2 or MIC3 or transmit mute can be selected with bits 6 and 7 (VS and TE). Transmit gain can be adjusted within a 22.5 dB range in 1.5 dB step with Register CR5. Sidetone Selection Bit "SI" (5) enables or disables Sidetone circuitry. When enabled, sidetone gain can be adjusted with Register (CR5). When Transmit path is disabled, sidetone circuit is also disabled. Output Driver Selection Bits OE1(4) and OE2(3) provide the selection among the earpiece output or the extra amplifier output or both outputs muted.OE1 = 1 and OE2 = 1 is not allowed. Ring/Tone signal selection Bit RTE (2) provide select capability to connect on-chip Ring/Tone generator either to an extra amplifier input or to earpiece amplifier input. Receiver High Pass Filter Selection Bit HPB(1) provides the selection of the receiver high pass filter cutoff frequency. PCM receive data selection Bits "SE" (0) provide select capability to connect received speech signal either to an extra amplifier input or to earpiece amplifier input. CONTROL REGISTER CR5 First byte of a READ or a WRITE instuction to Control Register CR5 is as shown in TABLE 1. Second byte is as shown in TABLE 7. Transmit gain selection Transmit amplifier can be programmed for a gain from 0dB to 22.5dB in 1.5dB step with bits 4 to 7. 0 dBmO level at the output of the transmit amplifier (A reference point) is 0.492 Vrms (overload voltage is 0.707 Vrms). Sidetone attenuation selection Transmit signal picked up after the switched capacitor low pass filter may be fed back into both Receive amplifiers. Attenuation of the signal at the output of the sidetone attenuator can be programmed from A12.5dB to -27.5dB relative to reference point A in 1 dB step with bits 0 to 3. CONTROL REGISTER CR6 First byte of a READ or a WRITE instruction to Control Register CR6 is as shown in TABLE 1. Second byte is as shown in TABLE 8. 16/34 STW5093 Earpiece amplifier gain selection: Earpiece Receive gain can be programmed in 2 dB step from 0 dB to -30 dB relative to the maximum with bits 4 to 7. 0 dBmO voltage at the output of the amplifier on pin VFr is 0.9825 Vrms when 0dB gain is selected down to 30.925 Vrms when -30dB gain is selected. Extra amplifier gain selection: Extra Receive amplifier gain can be programmed in 2 dB step from 0 dB to -30 dB relative to the maximum with bits 0 to 3. 0 dBmO voltage on the output of the amplifier on pins VLr+ and VLr- 1.965 Vrms when 0 dB gain is selected down to 61.85 mVrms when -30 dB gain is selected. CONTROL REGISTER CR7: First byte of a READ or a WRITE instruction to Control Register CR7 is as shown in TABLE 1. Second byte is as shown in TABLE 9. Tone/Ring amplifier gain selection Output level of Ring/Tone generator, before attenuation by programmable attenuator is 1.6 Vpk-pk when f1 generator is selected alone or summed with the f2 generator and 1.26 Vpk-pk when f2 generator is selected alone. Selected output level can be attenuated down to -27 dB by programmable attenutator by setting bits 4 to 7. Frequency mode selection Bits 'F1' (3) and 'F2' (2) permit selection of f1 and/or f2 frequency generator according to TABLE 9. When f1 (or f2) is selected, output of the Ring/Tone is a squarewave (or a sinewave) signal at the frequency selected in the CR8 (or CR9) Register. When f1 and f2 are selected in summed mode, output of the Ring/Tone generator is a signal where f1 and f2 frequency are summed. In order to meet DTMF specifications, f2 output level is attenuated by 2dB relative to the f1 output level. Frequency temporization must be controlled by the microcontroller. Waveform selection Bit 'SN' (1) selects waveform of the output of the Ring/Tone generator. Sinewave or squarewave signal can be selected. DTMF selection Bit DE (0) permits connection of Ring/Tone/DTMF generator on the Transmit Data path instead of the Transmit Amplifier output. Earpiece or extra receive output feed-back may be provided by sidetone circuitry by setting bit SI or directly by setting bit RTE in Register CR4. Loudspeaker feed-back may be provided directly by setting bit RTL in Register CR4. CONTROL REGISTERS CR8 AND CR9 First byte of a READ or a WRITE instruction to Control Register CR8 or CR9 is as shown in TABLE 1. Second byte is respectively as shown in TABLE 10 and 11. If "standard frequency tone range" is selected, Tone or Ring signal frequency value is defined by the formula: f1 = CR8 / 0.128 Hz 17/34 STw5093 and f2 = CR9 / 0.128 Hz where CR8 and CR9 are decimal equivalents of the binary values of the CR8 and CR9 registers respectively. Thus, any frequency between 7.8 Hz and 1992 Hz may be selected in 7.8 Hz step. If "halved frequency tone range"is selected, Tone or Ring signal frequency value is defined by the formula: f1 = CR8 / 0.256 Hz and f2 = CR9 / 0.256 Hz This any frequency between 3.9Hz and 996Hz may be selected in 3.9Hz step. If "doubled frequency tone range"is selected, Tone or Ring signal frequency value is defined by the formula: f1 = CR8 / 0.064 Hz and f2 = CR9 / 0.064 Hz Thus any frequency between 15.6Hz and 3984Hz may be selected in 15.6Hz step. TABLE 12 gives examples for the main frequencies usual for Tone or Ring generation. CONTROL REGISTER CR10 Remocon Function Enable Bit REN(7) enables or disables the RemoconFunction. Default value is disabled. Remocon Mode Selection Bit RLM(6) is used to select between a transparent pressed button information and a latched pressed button information at REMOUT. In both cases a debounce circuit (50ms max.) is active. Remocon Output Inversion Bit ROI(5) is used to invert or not the information at REMOUT. Default value is not inverted (i.e. pressed button information is a logic 1 at REMOUT. Remocon Detection Latch Bit RDL(4) is set by the internal Remocon Function logic, after the debounce time, when a low level on REMIN is detected. It can be reset by the mP writing CR10. Preamplifier Gain Selection Bit PG(3) provides the selection between 0dB and 20dB gain of the preamplifier. Default value is 20dB. Microphone Bias Disabling/Enabling Bit MB (2) enables or disables a switch for microphone biasing. Default value is disabled. Tone Frequency Range Selection Bit DFT(1) and HFT(0) permits the selection among "standard frequency tone range" (i.e. from 7.8Hz to 1992Hz in 7.8Hz step), "halved frequency tone range" (i.e. from 3.9Hz to 996Hz in 3.9Hz step), and "doubled frequency 18/34 STW5093 tone range" (i.e. from 15.6Hz to 3984Hz in 15.6Hz step) according to the values described in CONTROL REGISTER CR8 and CR9. CONTROL REGISTER CR11 Bit BE(7) permits connection of a f1 squarewave PWM Ring signal, amplitude modulated or not by a f2 squarewave signal, to buzzer driver output BZ. Bits BZ5 to BZ0 define the duty cycle of the PWM squarewave, according to the following formula: Duty Cycle = CR11(5 to 0) x 0.78125% where CR11(5 to 0) is the decimal equivalent of the binary value BZ5 to BZ0. When BE = 1, if bits F1 = 1 and F2 = 0 in register CR7, a f1 PWM ring signal is present at the buzzer output, while if bits F1 = 1 and F2 = 1 in register CR7 the f1 PWM ring signal is also amplitude modulated by a f2 squarewave frequency. Bit BI (6) allows to chose the logic level at which the duty cycle is referred: BI = 0 means that duty cycle is intended as the relative width of the logic1, while BI = 1 means that duty cycle is intended as the relative width of the logic 0. When BE = 0 (or during power down) BZ = 0 if BI = 0 or BZ = 1 if BI = 1. Table 14. Examples of Usual Frequency Selection (Standard frequency tone range) Description f1 value (decimal) Theoretic value (Hz) Typical value (Hz) Error% Tone 250 Hz Tone 330 Hz Tone 425 Hz Tone 440 Hz Tone 800 Hz Tone 1330 Hz 32 42 54 56 102 170 250 330 425 440 800 1330 250 328.2 421.9 437.5 796.9 1328.1 -.00 -.56 -.73 -.56 -.39 -.14 DTMF 697Hz DTMF 770 Hz DTMF 852 Hz DTMF 941 Hz DTMF 1209 Hz DTMF 1336 Hz DTMF 1477 Hz DTMF 1633 Hz 89 99 109 120 155 171 189 209 697 770 852 941 1209 1336 1477 1633 695.3 773.4 851.6 937.5 1210.9 1335.9 1476.6 1632.8 -.24 +.44 -.05 -.37 +.16 -.01 .00 .00 SOL LA SI DO RE MI flat MI FA FA sharp SOL SOL sharp LA SI DO RE MI 50 56 63 67 75 80 84 89 95 100 106 113 126 134 150 169 392 440 494 523.25 587.33 622.25 659.25 698.5 740 784 830.6 880 987.8 1046.5 1174.66 1318.5 390.6 437.5 492.2 523.5 586.0 625.0 656.3 695.3 742.2 781.3 828.2 882.9 984.4 1046.9 1171.9 1320.4 -.30 -.56 -.34 +.04 -.23 +.45 -.45 -.45 +.30 -.34 -.29 +.33 -.34 +.04 -.23 +.14 19/34 STw5093 TIMING DIAGRAM Figure 2. Non Delayed Data Timing Mode (Normal) (*) Figure 3. Delayed Data Timing Mode (*) (*) In the case of companded code the timing is applied to 8 bits instead of 16 bits. 20/34 STW5093 TIMING DIAGRAM Figure 4. Non Delayed Reverse Data Timing Mode (* tHMFR tRM 1 MCLK 2 tSFMR 3 tFM 4 tWMM 5 6 tHMFR 7 16 17 tWML FS tDFD tDMDR tDMZR DX 1 2 3 tSDM DR 1 2 4 5 6 7 16 tHMDR 3 4 5 6 7 16 D93TL076A (*) In the case of companded code the timing is applied to 8 bits instead of 16 bits. Figure 5. Serial Control Timing (MICROWIRE MODE) 21/34 STw5093 ABSOLUTE MAXIMUM RATINGS Parameter Value Unit 4.6 V VCC +0.5 to GND -0.5 V Current at VFr and VLr 100 mA Current at any digital output 50 mA VCCIO + 0.5 to GND -0.5 V - 65 to + 150 C + 260 C VCC to GND Voltage at MIC (VCC 3.3V) Voltage at any digital input (VCCIO 3.3V); limited at 50mA Storage temperature range Lead Temperature (wave soldering, 10s) OPERATIVE SUPPLY VOLTAGES Symbol Min. Max. Unit VCC = VCCA = VCCP 2.7 3.3 V VCCIO 1.8 VCC V TIMING SPECIFICATIONS (unless otherwise specified, VCCIO = 1.8V to 3.3V ,Tamb = -30C to 85C ; typical characteristics are specified at VCCIO = 3.0V, Tamb = 25 C; all signals are referenced to GND, see Note 5 for timing definitions) NOTICE: All timing specifications can be changed. MASTER CLOCK TIMING Symbol Parameter Test Condition Min. Typ. Max. Unit fMCLK Frequency of MCLK Selection of frequency is programmable (see table 2) tWMH Period of MCLK high Measured from VIH to VIH 150 ns tWML Period of MCLK low Measured from VIL to VIL 150 ns tRM Rise Time of MCLK Measured from VIL to VIH 30 ns tFM Fall Time of MCLK Measured from VIH to VIL 30 ns Max. Unit 512 1.536 2.048 2.560 kHz MHz MHz MHz PCM INTERFACE TIMING Symbol Parameter Test Condition Min. Typ. tHMF Hold Time MCLK low to FS low 0 ns tSFM Setup Time, FS high to MCLK low 30 ns tDMD Delay Time, MCLK high to data valid 22/34 Load = 20pF 100 ns STW5093 TIMING SPECIFICATIONS (continued) PCM INTERFACE TIMING (continued) Symbol Parameter Test Condition Min. Typ. 10 Max. Unit 100 ns 100 ns tDMZ Delay Time, MCLK low to DX disabled tDFD Delay Time, FS high to data valid tSDM Setup Time, DR valid to MCLK receive edge 20 ns tHMD Hold Time, MCLK low to DR invalid 10 ns tHMFR Hold Time MCLK High to FS low 30 ns tSFMR Setup Time, FS high to MCLK High 30 ns tDMDR Delay Time, MCLK low to data valid tDMZR Delay Time, MCLK High to DX disabled 10 tHMDR Hold Time, MCLK High to DR invalid 20 Load = 20pF; Applies only if FS rises later than MCLK rising edge in Non Delayed Mode only Load = 20pF 100 ns 100 ns ns SERIAL CONTROL PORT TIMING Symbol Parameter Test Condition Min. Typ. Max. Unit 2.048 MHz fCCLK Frequency of CCLK tWCH Period of CCLK high Measured from VIH to VIH 160 ns tWCL Period of CCLK low Measured from VIL to VIL 160 ns tRC Rise Time of CCLK Measured from VIL to VIH 50 ns tFC Fall Time of CCLK Measured from VIH to VIL 50 ns tHCS Hold Time, CCLK high to CS- low 10 ns tSSC Setup Time, CS- low to CCLK high 50 ns tSDC Setup Time, CI valid to CCLK high 50 ns tHCD Hold Time, CCLK high to CI invalid 50 ns tDCD Delay Time, CCLK low to CO data valid tDSD Delay Time, CS-low to CO data valid Load = 20pF 80 ns 50 ns 23/34 STw5093 TIMING SPECIFICATIONS (continued) SERIAL CONTROL PORT TIMING (continued) Symbol Parameter Test Condition Min. Typ. Max. Unit tDDZ Delay Time CS-high or 8th CCLK low to CO high impedance whichever comes first 10 80 ns tHSC Hold Time, 8th CCLK high to CShigh 100 ns tSCS Set up Time, CS- high to CCLK high 100 ns Note 5: A signal is valid if it is above VIH or below VIL and invalid if it is between VIL and VIH. For the purposes of this specification the following conditions apply: a) All input signal are defined as: VIL = 0.2VCCIO, VIH = 0.8VCCIO, tR < 10ns, tF < 10ns. b) Delay times are measured from the inputs signal valid to the output signal valid. c) Setup times are measured from the data input valid to the clock input invalid. d) Hold times are measured from the clock signal valid to the data input invalid. ELECTRICAL CHARACTERISTICS (unless otherwise specified, VCCIO = 1.8V to 3.3V, Tamb = -30C to 85C; typical characteristic are specified at VCCIO = 3.0V, Tamb = 25C ; all signals are referenced to GND) DIGITAL INTERFACES Symbol VIL VIH Parameter Input Low Voltage Input High Voltage Test Condition Min. All digital inputs except REMIN DC AC Typ. Max. Unit 0.3VCCIO 0.2VCCIO V V All digital inputs except REMIN DC 0.7VCCIO AC 0.8VCCIO V V VILREM Input Low Voltage REMIN input VIHREM Input High Voltage REMIN input VOL Output Low Voltage All digital outputs, IL = 10A All digital outputs, IL = 2mA VOH Output High Voltage All digital outputs, IL = 10A All digital outputs, IL = 2mA IIL Input Low Current Any digital input, GND < VIN < VIL -10 10 A IIH Input High Current Any digital input, VIH < VIN < VCCIO -10 10 A IOZ Output Current in High impedance (Tri-state) DX and CO -10 10 A 24/34 0.5 1.4 V V 0.1 0.4 VCCIO-0.1 VCCIO-0.4 V V V V STW5093 Figure 6. A.C. TESTING INPUT, OUTPUT WAVEFORM INTPUT/OUTPUT 0.8VCCIO 0.7VCCIO 0.7VCCIO TEST POINTS 0.2VCCIO 0.3VCCIO 0.3VCCIO D93TL077A AC Testing: inputs are driven at 0.8VCCIO for a logic "1"and 0.2VCCIO for a logic "0 ". Timing measurements are made at 0.7VCCIO for a logic "1"and 0.3VCCIO for a logic "0". ANALOG INTERFACES Symbol Parameter Test Condition Min. Typ. Max. Unit 150 +100 A Switch Resistance for Microphone bias MBIAS 100mV under VCC IMIC Input Leakage GND < VMIC < VCC -100 RMIC Input Resistance GND < VMIC < VCC 50 k RLVFr Load Resistance 30 CLVFr Load Capacitance ROVFr0 Output Resistance Steady zero PCM code applied to DR; I = 1mA RLvLr Load Resistance VLr+ to VLr- CLvLr Load Capacitance from VLr+ to VLr- 50 nF ROLVrO Output Resistance Steady zero PCM code applied to DR; I 1mA 1 VOSVLrO Differential offset Voltage at VLr+, VLr- Alternating zero PCM code applied to DR maximum receive gain; RL = 50 RMBIAS 50 nF 1.0 8 -50 +50 mV 25/34 STw5093 TRANSMISSION CHARACTERISTICS (unless otherwise specified, VCC = 2.7V to 3.3V, Tamb = -30C to 85C; typical characteristics are specified at VCC = 3.0V, Tamb = 25C, MIC1/2/3 = 0dBm0, DR = -6dBm0 PCM code, f = 1015.625 Hz; all signal are referenced to GND) AMPLITUDE RESPONSE (Maximum, Nominal, and Minimum Levels) Transmit path - Absolute levels at MIC1 / MIC2 / MIC3 Symbol Parameter 0 dBm0 level Test Condition Min. Transmit Amps connected for 20dB gain Overload level 0 dBm0 level Transmit Amps connected for 42.5dB gain Overload level Typ. Max. Unit 49.26 mVRMS 70.71 mVRMS 3.694 mVRMS 5.302 mVRMS AMPLITUDE RESPONSE (Maximum, Nominal, and Minimum Levels) Receive path - Absolute levels at VFr Symbol Parameter Test Condition Min. Typ. Max. Unit 0 dBM0 level Receive Amp programmed for 0dB attenuation 0.9825 VRMS 0 dBM0 level Receive Amp programmed for30dB attenuation 30.925 mVRMS AMPLITUDE RESPONSE (Maximum, Nominal, and Minimum Levels) Receive path - Absolute levels at VLr (Differentially measured) Symbol Parameter Test Condition Min. Typ. Max. Unit 0 dBM0 level Receive Amp programmed for 0dB attenuation 1.965 VRMS 0 dBM0 level Receive Amp programmed for 30dB attenuation 61.85 mVRMS AMPLITUDE RESPONSE Transmit path Symbol Parameter GXA Transmit Gain Absolute Accuracy Transmit Gain Programmed for minimum.Measure deviation of Digital PCM Code from ideal 0dBm0 PCM code at DX GXAG Transmit Gain Variation with programmed gain GXAT GXAV 26/34 Test Condition Min. Typ. Max. Unit -0.5 0.5 dB Measure Transmit Gain over the range from Maximum to minimum setting.Calculate the deviation from the programmed gain relative to GXA, i.e. GAXG = G actual - G prog. - GXA -0.5 0.5 dB Transmit Gain Variation with temperature Measured relative to GXA. min. gain < GX < Max. gain -0.1 0.1 dB Transmit Gain Variation with supply Measured relative to GXA GX = Minimum gain -0.1 0.1 dB STW5093 AMPLITUDE RESPONSE(continued) Transmit path (continued) Symbol GXAF GXAL Parameter Transmit Gain Variation with frequency Transmit Gain Variation with signal level Test Condition Relative to 1015,625 Hz, multitone test technique used.min. gain < GX < Max. gain f = 60 Hz f = 100 Hz f = 200 Hz f = 300 Hz f = 400 Hz to 3000 Hz f = 3400 Hz f = 4000 Hz f = 4600 Hz (*) f = 8000 Hz (*) Sinusoidal Test method.Reference Level = -10 dBm0 VMIC = -40 dBm0 to +3 dBm0 VMIC = -50 dBm0 to -40 dBm0 VMIC = -55 dBm0 to -50 dBm0 Min. Typ. Max. Unit -1.5 -0.5 -1.5 -30 -20 -6 0.5 0.5 0.0 -14 -35 -47 dB dB dB dB dB dB dB dB dB -0.5 -0.5 -1.2 0.5 0.5 1.2 dB dB dB (*) The limit at frequencies between 4600Hz and 8000Hz lies on a straight line connecting the two frequencies on a linear (dB) scale versus log (Hz) scale. Receive path Symbol Parameter Test Condition GRAE Receive Gain Absolute Accuracy Receive gain programmed for maximum Apply -6 dBm0 PCM code to DR Measure VFr GRAL Receive Gain Absolute Accuracy GRAGE Min. Typ. Max. Unit -0.5 0.5 dB Receive gain programmed for maximum Apply -6 dBm0 PCM code to DR Measure VLr -0.5 0.5 dB Receive Gain Variation with programmed gain Measure VFr Gain over the range from Maximum to minimum setting. Calculate the deviation from the programmed gain relative to GRAE, i.e. GRAGE = G actual - G prog. - GRAE -0.5 0.5 dB GRAGL Receive Gain Variation with programmed gain Measure VLr Gain over the range from Maximum to minimum setting.Calculate the deviation from the programmed gain relative to GRAL, i.e. GRAGL = G actual - G prog. - GRAL -0.5 0.5 dB GRAT Receive Gain Variation with temperature Measured relative to GRA. (VLr and VFr) min. gain < GR < Max. gain -0.1 0.1 dB 27/34 STw5093 AMPLITUDE RESPONSE(continued) Receive path (continued) Symbol Parameter Test Condition Max. Unit 0.1 dB -20 -12 -2 0.5 0.5 0.0 -14 dB dB dB dB dB dB dB -1.5 -0.5 -1.5 0.5 0.5 0.0 -14 dB dB dB dB Sinusoidal Test Method Reference Level = -10 dBm0 DR = -40 dBm0 to -3 dBm0 DR = -50 dBm0 to -40 dBm0 DR = -55 dBm0 to -50 dBm0 -0.5 -0.5 -1.2 0.5 0.5 1.2 dB dB dB Sinusoidal Test Method Reference Level = -10 dBm0 DR = -40 dBm0 to -3 dBm0 DR = -50 dBm0 to -40 dBm0 DR = -55 dBm0 to -50 dBm0 -0.5 -0.5 -1.2 0.5 0.5 1.2 dB dB dB GRAV Receive Gain Variation with Supply Measured relative to GRA. (VLr and VFr) GR = Maximum Gain GRAF Receive Gain Variation with frequency (VLr and VFr) Relative to 1015,625 Hz, multitone test technique used. min. gain < GR < Max. gain f = 60Hz f = 100Hz f = 200 Hz f = 300 Hz f = 400 Hz to 3000 Hz f = 3400 Hz f = 4000 Hz HPB = 0 Receive Gain Variation with frequency (VLr and VFr) HPB = 1 GRAL E GRAL L 28/34 Receive Gain Variation with signal level (VFr) Receive Gain Variation with signal level (VLr) Relative to 1015,625 Hz, multitone test technique used. Min. gain < GR < Max. gain f = 50Hz f = 100 Hz to 3000 Hz f = 3400 Hz f = 4000 Hz Min. -0.1 -1.5 -0.5 -1.5 Typ. STW5093 ENVELOPE DELAY DISTORTION WITH FREQUENCY Symbol Parameter Test Condition Min. Typ. Max. Unit DXA Tx Delay, Absolute f = 1600 Hz 320 s DXR Tx Delay, Relative f = 500 - 600 Hz f = 600 - 800 Hz f = 800 - 1000 Hz f = 1000 - 1600 Hz f = 1600 - 2600 Hz f = 2600 - 2800 Hz f = 2800 - 3000 Hz 290 180 50 20 55 80 180 s s s s s s s DRA Rx Delay, Absolute f = 1600 Hz 280 s DRR Rx Delay, Relative f = 500 - 600 Hz f = 600 - 800 Hz f = 800 - 1000 Hz f = 1000 - 1600 Hz f = 1600 - 2600 Hz f = 2600 - 2800 Hz f = 2800 - 3000 Hz 200 110 50 20 65 100 220 s s s s s s s NOISE Symbol Parameter Test Condition Min. Typ. Max. Unit NXP Tx Noise, P weighted (up to 35dB) VMIC = 0V, DE = 0 -75 -70 dBm0p NRP Rx Noise, linear weighted (*) (max. gain) Receive PCM code = Positive Zero SI = 0 and RTE = 0 120 150 Vrms NRS Noise, Single Frequency MIC = 0V, Loop-around measurament from f = 0 Hz to 100 kHz -50 PPSRx PSRR, Tx MIC = 0V, VCC = 3.0 VDC + 50 mVrms; f = 100Hz to 50KHz PPSRp PSRR, Rx PCM Code equals Positive Zero, VCC = 3.0VDC + 50 mVrms, f = 100 Hz - 4 kHz f = 4 kHz - 50 kHz SOS Spurious Out-Band signal at the output dBm0 30 dB 30 30 dB dB DR input set to -6 dBm0 PCM code 300 - 3400 Hz Input PCM Code applied at DR 4600 Hz - 5600 Hz 5600 Hz - 7600 Hz 7600 Hz - 8400 Hz -40 -50 -50 dB dB dB Typ. Max. Unit (*) 300 to 3400Hz bandwidth CROSSTALK Symbol Parameter Test Condition Min. CTx-r Transmit to Receive Transmit Level = 0 dBm0, f = 300 - 3400 Hz DR = Quiet PCM Code -100 -65 dB CTr-x Receive to Transmit Receive Level = -6 dBm0, f = 300 - 3400 Hz MIC = 0V -80 -65 dB 29/34 STw5093 DISTORTION Symbol STDX(*) Parameter Signal to Total Distortion (up to 35dB gain) Typical values are measured with 30.5dB gain SDFx Single Frequency Distortion transmit STDRE(*) Signal to Total Distortion (VFr) ( up to 20dB attenuation) Typical values are measured with 20dB attenuation. SDFr Single Frequency Distortion receive (VFr) STDRL(*) Signal to Total Distortion (VLr) (up to 20dB attenuation) Typical values are measured with 20dB attenuation Test Condition Sinusoidal Test Method (measured using linear 300 to 3400 weighting) Level = 0 dBm0 Level = -6 dBm0 Level = -10 dBm0 Level = -20 dBm0 Level = -30 dBm0 Level = -40 dBm0 Level = -45 dBm0 Level = -55 dBm0 Min. 56 56 50 50 48 48 43 43 38 37.5 29 28.5 24 23 15 13 65 64 61 52 42 31 26 16 -80 50 48 43 38 29 24 15 -6 dBm0 input signal Sinusoidal Test Method (measured using linear 300 to 3400 weighting) Level = -6 dBm0 Level = -10 dBm0 Level = -20 dBm0 Level = -30 dBm0 Level = -40 dBm0 Level = -45 dBm0 Level = -55 dBm0 Max. Unit # 0 dBm0 input signal Sinusoidal Test Method (measured using linear 300 to 3400 weighting) Level = -6 dBm0 Level = -10 dBm0 Level = -20 dBm0 Level = -30 dBm0 Level = -40 dBm0 Level = -45 dBm0 Level = -55 dBm0 Typ. -56 64 62 53 43 33 28 18 -80 50 48 43 38 29 24 15 dB dB dB dB dB dB dB dB dB dB dB dB dB dB dB dB -50 64 62 53 43 33 28 18 dB dB dB dB dB dB dB dB SDLr Single Frequency Distortion receive (VLr) -6 dBm0 input signal -80 -50 dB MD Intermodulation Loop-around measurement Voltage at MIC = -10 dBm0 to -27 dBm0, 2 Frequencies in the range 300 - 3400 Hz -75 -46 dB (*) The limit curve shall be determined by straight lines joining successive coordinates given in the table. (#) Lower limits used during the automatic testing to avoid unrealistic yield loss due to ae2dB imprecision of time-limited noise measurements. POWER DISSIPATION Symbol Parameter Test Condition Min. Typ. Max. Unit ICC0 Power down Current CCLK,CI = 0.1V; CS- = VCCIO-0.1V REMOCON function disabled (REN = 0) 0.4 5 A ICC0R Power down Current CCLK,CI = 0.1V; CS- = VCCIO-0.1V REMOCON function enabled (REN = 1) REMIN = VILREM or REMIN = VIHREM 2 10 A ICC1 Power Up Current VLr+, VLr- and VFr not loaded 5 8 mA 30/34 STW5093 AUDIO CODEC APPLICATIONS Figure 7. Application Note for Microphone Connections. DIFFERENTIAL MODE SINGLE ENDED MODE MBIAS MBIAS 1K 1K STw5093 STw5093 2K 2K 4K MICP 4K MICP 22F 0.47F 22F 0.47F MICN MICN 0.47F 1K 4K 0.47F 4K D98TL395 D98TL396 Figure 8. Application Note for VLr Connections. CERAMIC RECEIVERS (50nF) DYNAMIC RECEIVERS (8) R VLr+ VLr+ STw5093 EP STw5093 EP R VLrVLr- D98TL397A D98TL398 R must be greater then 50 For highes capacitor transducers, lower R values can be used Figure 9. Application Note for VFr Connections. CERAMIC RECEIVERS (50nF) DYNAMIC RECEIVERS (30) R C=100F VFr VFr STw5093 EP STw5093 EP D98TL409A R must be greater then 50 For highes capacitor transducers, lower R values can be used D98TL410 31/34 STw5093 POWER SUPPLY NOTES Two different strategies can be used to minimize power supply noise/interference. a) Recommended strategy: keep analog and digital power supply rails separate. This requires to use two sets of capacitors, one from AVCC to AGND and the other from DVCC to DGND. Figure 10. DVCC AVCC VCCP 10F 100nF VCC VCCA 100nF STw5093 AGND AGND DGND GNDP GNDA GND AGND DGND D98TL412 b) Low cost strategy: tie analog and digital power supplies together as close as possible to GND and VCC pins. This allows to use only one set of capacitors between VCC and GND. Figure 11. VCCP VCC VCCA 10F 100nF STw5093 GNDP GNDA GND D98TL413 32/34 STW5093 mm inch OUTLINE AND MECHANICAL DATA DIM. MIN. TYP. A MAX. MIN. TYP. MAX. 1.10 A1 0.05 A2 0.85 b 0.043 0.15 0.002 0.95 0.033 0.17 0.27 0.007 0.011 c 0.09 0.20 0.004 0.008 D 7.70 7.90 0.303 0.90 7.80 0.006 0.035 0.037 0.307 E 6.40 0.252 e 0.50 0.0197 0.311 E1 4.30 4.40 4.50 0.169 0.173 0.177 L 0.50 0.60 0.70 0.020 0.024 0.028 K TSSOP30 (Thin Shrink) 0 (min.) 8 (max.) E1 A A2 b c A1 e 0.010 mm 0.004 inch SEATING PLANE D Gage Plane 0.25mm 30 16 k E Pin 1 identification 15 A1 SEATING PLANE L TSSO30M 33/34 STW5093 Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners (c) 2004 STMicroelectronics - All rights reserved STMicroelectronics GROUP OF COMPANIES Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States www.st.com 34/34