REV 2.1 2002/04/23 Voice Signal Interface Codec GENERAL DESCRIPTION cod0421x FEATURES • Analog 2.8Volt Operation • Linear 14bit Codec • 3 Mic Inputs (2 Differential and 1 Single) • 3 Analog Outputs 32ohm Driver (2 Differential and 1 Single) • Mic Volume 0dB ~ 22.5dB & 20dB Gain On/Off accessed through a serial control channel that easily • Speaker Volume 0dB ~ -30dB interfaces to any classical micro controller. • Side-tone -12.5dB ~ -27.5dB • Serial Data Input, Output Format • Control Register Interface for u-Controller This IP core has been developing for AFE (Analog-front-end) function of voice signal processing with 14bit 8KHz voice codec. The core consists of 14bit linear monolithic PCM CODEC/transmit and receive band-pass filters utilizing the sigma-delta A/D and D/A conversion architecture. It offers a number of programmable functions This IP core is suitable for digital mobile phones, as cellular and cordless phones, or any battery powered equipment. APPLICATIONS • digital mobile phones • cellular and cordless phones FUNCTIONAL BLOCK DIAGRAM MIC1P MIC1N MIC2P MIC2N MIC3 20dB On/Off MIC VOLUME 0dB~22.5dB 1.5dB Step M U X ADC PGA 4 TGN[3:0] X10 2 PGA 4 SGN[3:0] ISS[1:0] AOUT1P AOUT1N SIDETONE AMP -12.5dB~-27.5dB -1dB Step SPEAKER VOLUME 0dB~-30dB -2.dB Step SOUT SIN S I G N A L I / F DAC MCLK FS STEN AOUT2P AOUT2N PGA 2 OSS[1:0] AOUT3 PORSB REN 4 RGN[3:0] CSB WRB RDB A[8:0] CONTROL REGISTER REFERENCE VREF DIN[7:0] DOUT[7:0] AVDD25A1 DVABB Ver 2.1 AVDD25A2 AVSS25A1 AVDD25A3 AVSS25A2 AVDD25A4 AVSS25A3 AVDD25A5 AVSS25A4 AVDD25A6 AVSS25A5 AVDD25A7 AVSS25A6 AVDD25A8 AVSS25A7 AVDD18D AVSS25A8 AVSS18D (April 2002) This datasheet is a preliminary version. No responsibility is assumed by SEC for its use nor for any infringements of patents or other rights of third parties that may result from its use. The content of this datasheet is subject to change without any notice SEC ASIC ANALOG Voice Band Signal Interface cod0421x CORE PIN DIAGRAM PIN NAME Type I/O Type FUNCTION AVDD25A1 AP vdd2t_abb Analog Power Supply 1 (2.8V) AVSS25A1 AG vss2t_abb Analog Ground 1 • • I/O TYPE ABBR. Power Pins AVDD25A2 AP vdd2t_abb Analog Power Supply 2 (2.8V) AVSS25A2 AG vss2t_abb Analog Ground 2 AVDD25A3 AP vdd2t_abb Analog Power Supply 3 (2.8V) AVSS25A3 AG vss2t_abb Analog Ground 3 • AVDD25A4 AP vdd2t_abb Analog Power Supply 4 (2.8V) • AVSS25A4 AG vss2t_abb Analog Ground 4 • AVDD25A5 AP vdd2t_abb Analog Power Supply 5 (2.8V) AVSS25A5 • • • • • AG vss2t_abb Analog Ground 5 AVDD25A6 DP vdd2t_abb Digital Power Supply 6 (2.8V) AVSS25A6 DG vss2t_abb Digital Ground 6 AVDD25A7 AP vdd2t_abb Analog Power Supply 7 (2.8V) AVSS25A7 AG vss2t_abb Analog Ground 7 AVDD25A8 AP vdd2t_abb Analog Power Supply 8 (2.8V) AVSS25A8 AG vss2t_abb Analog Ground 8 AVDD18D DP vdd2t_abb Digital Power Supply (1.8V) AVSS18D DG vss2t_abb Digital Ground DVABB AG vbb_abb Analog Ground AI : Analog Input DI : Digital Input AO : Analog Output DO : Digital Output AB : Analog Bidirectional DB : Digital Bidirectional AP : Analog Power AG : Analog Ground DP : Digital Power DG : Digital Ground Analog Pins MIC1P AI pia_abb Mic Input 1 Positive MIC1N AI pia_abb Mic Input 1 Negative MIC2P AI pia_abb Mic Input 2 Positive MIC2N AI pia_abb Mic Input 2 Negative MIC3 AI pia_abb Mic Input 3 (Single Input) AOUT1P AO poa_abb Differential Output 1 Positive AOUT1N AO poa_abb Differential Output 1 Negative AOUT2P AO poa_abb Differential Output 2 Positive AOUT2N AO poa_abb Differential Output 2 Negative AOUT3 AO poa_abb Single Output VREF AO poa_abb Reference Output VCOMDR AB poa_abb tied to VREF pin VCOMDT AB poa_abb tied to VREF pin VCOMR AB poa_abb tied to VREF pin VCOMT AB poa_abb tied to VREF pin VREFMR AB poa_abb tied to Analog Ground pin VREFMT AB poa_abb tied to Analog Ground pin VREFPR AB poa_abb tied to VREF pin VREFPT AB poa_abb tied to VREF pin SEC ASIC 2 / 15 ANALOG Voice Band Signal Interface cod0421x Digital Pins SOUT DO pot2_abb ADC Serial Data Ouput SIN DI picc_abb DAC Serial Data Input MCLK DI picc_abb Master Clock Input FS DI picc_abb Frame Sync Pulse Input PORSB DI picc_abb Power-On-Reset and Reset Control Input (Low Active) CSB DI picc_abb Chip Select (Low Active) WRB DI picc_abb Write Enable (Low Active) RDB DI picc_abb Read Enable (Low Active) A[8:0] DI picc_abb Control Register Address DIN[7:0] DI picc_abb Control Register Data Input (WR is Enabled) DOUT[7:0] DO pot2_abb Control Register Data Output (RD is Enabled) CORE CONFIGURATION AVDD18D AVDD25A8 AVDD25A7 AVDD25A6 AVDD25A5 AVDD25A4 AVDD25A3 AVDD25A2 AVDD25A1 MIC1P AOUT1P AOUT1N AOUT2P AOUT2N AOUT3 SOUT VREF VCOMDR VCOMDT VCOMR VCOMT VREFMR VREFMT VREFPR VREFPT DOUT[7:0] MIC1N MIC2P MIC2N MIC3 SIN cod0421x MCLK FS PORSB CSB WRB RDB A[8:0] DIN[7:0] DVABB AVSS18D AVSS25A8 AVSS25A7 AVSS25A6 AVSS25A5 AVSS25A4 AVSS25A3 AVSS25A2 AVSS25A1 Power Group : VADD25A1 (AVDD25A1,AVDD25A2,AVDD25A3,AVDD25A4,AVDD25A5,AVDD25A8) VADD25A2 (AVDD25A7) AVDD18D (AVDD25A6,AVDD18D) SEC ASIC 3 / 15 ANALOG Voice Band Signal Interface cod0421x ABSOLUTE MAXIMUM RATINGS Characteristic Symbol Value Unit Analog Supply Voltage VADD25A1 VADD25A2 3.8 V Digital Supply Voltage AVDD18D 2.0 V Analog Input Voltage - VASS25A1 to VADD25A1 VASS25A2 to VADD25A2 V Digital Input Voltage - AVSS18D to AVDD18D V VOH, VOL AVSS18D to AVDD18D V Tstg -45 to 125 ºC Digital Output Voltage Storage Temperature Range NOTES 1. ABSOLUTE MAXIMUM RATING specifies the values beyond which the device may be damaged permanently. Exposure to ABSOLUTE MAXIMUM RATING conditions for extended periods may affect reliability. Each condition value is applied with the other values kept within the following operating conditions and function operation under any of these conditions is not implied. 2. All voltages are measured with respect to VSS unless otherwise specified. 3. 100pF capacitor is discharged through a 1.5KΩ resistor (Human body model) 4. This core has initial calibration time for about 3m second from rising edge of PORSB. RECOMMENDED OPERATING CONDITIONS Symbol Min Typ Max Unit Analog Supply Voltage VADD25A1,VADD25A2, 2.5 2.8 3.6 V Digital Supply Voltage AVDD18D 1.71 1.8 1.89 V VADD25A1, VADD25A2, AVDD18D -0.1 0.0 0.1 V Digital Input Voltage 1.71 1.8 1.89 V Analog Input Voltage - 1.6 - Vpp -40 - 85 ºC Characteristics Supply Voltage Difference Operating Temperature Topr NOTES 1. It is strongly recommended that all the supply pins (VADD25A1, VADD25A2, AVDD18D) be powered from the same source to avoid power latch-up. AC ELECTRICAL CHARACTERISTICS (Measurement Bandwidth is 20Hz~4KHz. Full scale input sine wave 1KHz, FS=8KHz, @VADD25A1=2.8V, VADD25A2=2.8V, AVDD18D=1.8V Ta=55ºC,Unless otherwise specified.) Characteristics Symbol Min Typ Max Unit Conditions Resolution - 14 - Bits - Sampling rate - 8 - KHz - ADC Characteristics Signal to Distortion Ratio - 65 - dB 0dB Input : Linear Offset Error - - ±20 mV - Input Voltage Range - 1.6 - Vpp - DAC Characteristics Signal to Distortion Ratio - 65 - dB 0dB Input : Linear Offset Error - - ±20 mV - - 1.6 3.2 - Vpp Vpp Differential Output Voltage Range SEC ASIC 4 / 15 ANALOG Voice Band Signal Interface cod0421x Power Supply Power consumption (Operating Mode) Analog Digital 9.5 0.5 Power consumption (Power down mode) - 50 mA mA No load - uA TRANS-MISSION CHARACTERISTICS (Measurement Bandwidth is 60Hz~4KHz. Full scale, FS=8KHz, @VADD25A1=2.8V, VADD25A2=2.8V, AVDD18D=1.8V Ta=55ºC,,Unless otherwise specified.) Min Typ Max Unit Transmit Gain Variation with Frequency Relative to 1000Hz f = 60Hz f = 200Hz f = 300Hz f = 400Hz ~ 3000Hz f = 3400Hz f = 4000Hz f = 8000Hz - - -7.9 -1.5 -0.6 -0.2 -1.1 -17.8 -62.8 dB dB dB dB dB dB dB Receive Gain Variation with Frequency Relative to 1000Hz f = 60Hz f = 200Hz f = 300Hz f = 400Hz ~ 3000Hz f = 3400Hz f = 4000Hz f = 8000Hz 0.6 - - -8.2 -1.4 -0.6 -0.2 -0.7 -17.8 -62.8 dB dB dB dB dB dB dB Transmit Delay f = 60hz ~ 3000Hz - - 750 us Receive Delay f = 60Hz ~ 3000Hz - - 750 us Characteristics Test Condition CONTROL CLOCKS CHARACTERISTICS Characteristics Symbol Min Typ Max Unit Fmclk - 2.048 - MHz McDuty - 50:50 - % FS Frequency Fsync - 8 - KHz MCLK Falling and FS SetUp TsuI 10 - - ns MCLK Falling and FS Hold ThdI 10 - - ns MCLK Rising and SOUT Delay Tdsdout - - 10 ns MCLK Falling and SIN SetUp Tsusin 10 - - ns MCLK Falling and SIN Hold Thdsin 10 - - ns WR Rising and A[8:0] SetUp Tsuwra 20 - - ns WR Rising and A[8:0] Hold Thdwra 20 - - ns WR Rising and DIN[7:0] SetUp Tsuwrd 10 - - ns WR Rising and DIN[7:0] Hold Thdwrd 10 - - ns RD Falling and A[8:0] SetUp Tsurda 10 - - ns RD Rising and A[8:0] Hold Thdrda 20 - - ns RD Falling and DOUT[8:0] Delay Tdrdf - - 10 ns RD Rising and DOUT[8:0] Delay Tdrdr - - 10 ns MCLK Frequency MCLK Duty Cycle (H/L) SEC ASIC 5 / 15 ANALOG Voice Band Signal Interface cod0421x Timing Diagram Serial Data Interface Fmclk MCLK Tsui Thdi "H" McDuty "L" FS Tdsdout SOUT LSBit MSBit Serial Output Format Fmclk MCLK Tsui Thdi "H" McDuty "L" FS Tsusin SIN Thdsin LSBit MSBit Serial Input Format Control Register Interface PORSB(High) (Low) CSB WRB A[8:0] DIN[7:0] Tsuwra Thdwra Tsuwrd Thdwrd Write Mode Note : Of the data written on the registers, the control signals(OSS, STEN, RGN) for Tx path are assigned at the rising edge of the internal signal RXZC. PORSB (High) CSB (Low) RDB A[8:0] Tsurda Thdrda DOUT[7:0] Tdrdf Tdrdr Read Mode SEC ASIC 6 / 15 ANALOG Voice Band Signal Interface cod0421x Programmable Functions Control Register Mapping Table ADDRESS DATA[7:0] FUNCTION A[8:0] 7 6 5 4 3 2 1 0 0D0h Status X X X X X X X INIT 0D1h Power Management X X X X X PW[2] PW[1] PW[0] 0D2h Path Select ISS[1] ISS[0] STEN OSS[1] OSS[0] REN X X 0D3h Mic Volume T20DB X X X TGN[3] TGN[2] TGN[1] TGN[0] 0D4h Speaker Volume X X X X RGN[3] RGN[2] RGN[1] RGN[0] 0D5h Sidetone Volume X X X X SGN[3] SGN[2] SGN[1] SGN[0] 0D6h Miscellaneous X X X X X X CALDIS DLB 0D7h Test Path X TLBM DIBYP MOBYP AMOPI ABYP ALBM DLBM Status Register (0D0H); Read Only 7 6 5 4 3 2 1 0 X X X X X X X INIT FUNCTION 0 Under Initializing 1 Initialize Done Power Management (0D1H) 7 6 5 4 3 2 1 0 X X X X X PW[2] PW[1] PW[0] 0 0 0 0 0 1 Standby Mode 0 1 0 Rx Power Up, Tx Power Down 0 1 1 Tx Power Up, Rx Power Down 1 x x All Power Up FUNCTION All Power Down (*) Path Selection (0D2H) 7 6 5 4 3 2 1 0 ISS[1] ISS[0] STEN OSS[1] OSS[0] REN X X 0 0 1 1 0 1 0 1 All Muted (*) MIC1P, MIC1N Selected MIC2P, MICT2N Selected MIC3 Selected 0 Sidetone Disabled (*) 1 Side Tone Enabled 0 1 SEC ASIC FUNCTION Receive path Disaable (*) Receive path Enable 0 0 All Muted (*) 0 1 1 1 0 1 AOUT1P, AOUT1N Selected AOUT2P, AOUT2N Selected AOUT3 Selected 7 / 15 ANALOG Voice Band Signal Interface cod0421x Mic volume control register (0D3H) 7 6 5 4 T20DB X X X 3 2 1 0 TGN[3] TGN[2] TGN[1] TGN[0] 0 FUNCTION 0dB Selected (*) 1 20dB Selected 0 0 0 0 0dB Selected (*) 0 0 0 1 1.5dB Selected - - - - - 1 1 1 1 22.5dB Selected 1 0 Speaker Volume Control Register (0D4H) 7 6 5 4 X X X X 3 2 RGN[3] RGN[2] RGN[1] RGN[0] FUNCTION 0 0 0 0 0dB Selected (*) 0 0 0 1 -2dB Selected - - - - - 1 1 1 1 -30dB Selected Sidetone Volume Control Register (0D5H) 7 6 5 4 3 2 1 0 X X X X SGN[3] SGN[2] SGN[1] SGN[0] 0 0 0 0 -12.5dB Selected (*) 0 0 0 1 -13.5dB Selected - - - - - 1 1 1 1 -27.5dB Selected FUNCTION Miscellaneous Control Register (0D6H) 7 6 5 4 3 2 1 0 X X X X X X CALDIS DBYP FUNCTION 0 Calibration Function Enabled (*) 1 Calibration Function Disabled 0 Serial Data Loop Back Disabled (*) 1 Serial Data Loop Back Enabled Test Mode Control Register (0D7H) 7 X 6 TLBM 5 DIBYP 4 MOBY P 3 2 AMOPI ABYP 1 0 ALBM DLBM FUNCTION 0 ADC/DAC Loop Mode disabled (*) 1 ADC/DAC Loop Mode enabled 0 Digital Decimator Filter Input Bypass Disabled (*) 1 Digital Decimator Filter Input Bypass Enabled SEC ASIC 8 / 15 ANALOG Voice Band Signal Interface cod0421x 0 Digital Modulator Output Bypass Disabled (*) 1 Digital Modulator Ourput Bypass Enabled 0 Analog Moulator Output / Postfilter Input Bypass Disabled (*) 1 Analog Moulator Output / Postfilter Input Bypass Enabled (*) Analog Bypass Disabled (*) 0 1 Analog Bypass Enabled 0 Analog Loop Back Disabled (*) 1 Analog Loop Back Enabled 0 Digital Loop Back Disabled (*) 1 Digital Loop Back Enabled Power Down/Up Management Guide cod0421x is capable of operating at required power when no activity is required. The State of power down/up is controlled by the Power Management Register(0D1H). Rx Power Up Tx Power Down All Power Down Normal Operation (All Power Up) Standby Mode Tx Power Up Rx power Down The above figure illustrates one example procedure a complete power down/up of cod0421x. From normal operation sequential writes to the Power Management Register are preformed to power down/up cod0421x a piece at a time Layout Guide REFERENCE VOLTAGE & POWER LINE CONNECTION CHIP VCOMR VREFPR VCOMDR VREF VCOMDT VREFPT VCOMT Lead Frame VREF SEC ASIC 9 / 15 ANALOG Voice Band Signal Interface cod0421x AVDD25A1(W=20um) AVDD25A2(W=20um) AVDD25A3(W=10um) AVDD25A4(W=10um) AVDD25A5(W=20um) Lead Frame VADD25A1 AVDD25A8(W=9um AVSS25A1(W=20um) AVSS25A2(W=20um) AVSS25A3(W=10um) AVSS25A4(W=10um) AVSS25A5(W=20um) Lead Frame AVSS25A8(W=9um) DVABB(W=10um) VASS25A1 VREFMT(W=2.4um) VREFMR(W=2.2um) AVDD25A7(W=45um) VADD25A2 Lead Frame AVSS25A7(W=45um) VASS25A2 Lead Frame AVDD25A6(W=10um) Lead Frame AVDD18D(W=10um) AVDD18D AVSS25A6(W=10um) Lead Frame AVSS18D(W=10um) AVSS18D SEC ASIC 10 / 15 ANALOG Voice Band Signal Interface cod0421x CORE EVALUATION GUIDE 2.8V 2.8V Cc + Ct Cc + Ct VASS25A1VADD25A1VASS25A2 VADD25A2 DOUT[7:0] MIC1P SOUT MIC1N SIN MIC2P MCLK MIC2N FS MAIN PATH MIC3 PORSB AOUT1P CSB AOUT1N WRB AOUT2P RDB AOUT2N A[8:0] AOUT3 C1 C1 C1 C1 C1 R1 R1 R2 DIN[7:0] VREF cod0421x Cc Ct AVSS18D AVDD18D Cc Ct + SELECT 1.8V TEST PATH LOCATION DESCRIPTION Ct 0.1uF Tantalum Capacitor Cc 10uF Ceramic Capacitor C1 0.47uF Ceramic Capacitor R1 32Ω Resistor R2 600§Ù Resistor <The Connection User Guide Line for Embedded Core Test> NOTES 1. If SOUT is externally shorted with SIN, The CODEC is achieved to loop-back test mode(ADC->DAC). 2. If end users want to test CODEC in integrated chip, The above pin must be extracted to the PAD. 3. The analog power/ground must be separated from digital power/ground. 4. Power typical value : VADD25A1 = VADD25A2 =2.8V, AVDD18D=1.8V, VASS25A1 = VASS25A2 =AVSS18D= 0.0V SEC ASIC 11 / 15 ANALOG Voice Band Signal Interface cod0421x Phantom cell External AVSS25A7 External AOUT1P AVDD25A8 External AOUT1N AOUT2P AVSS25A8 External AOUT2N AOUT3 AVDD18D External AVSS18D External WRB VCOMR DVABB External RDB VREFMR MIC1P External MIC1N External MIC2P External MIC2N External AVSS25A8 CSB A[8:0] DVABB AVDD25A7 AVSS25A2 External AVDD25A2 AVSS25A6 AVDD25A7 AVSS25A7 External DVASS AVDD25A6 DVABB Pin Usage DVADD AVDD25A8 Pin Name VREFPR VCOMDR AVSS25A4 AVDD25A4 DIN[7:0] MIC3 cod0421x 14b 8k voice codec AOUT1P VCOMDT AOUT1N External VREFPT AOUT2P External VREFMT AOUT2N External VCOMT AOUT3 External VREF External MIC3 VCOMDR External MIC2P VCOMDT External VCOMR External VCOMT External VREFPR External AVSS25A3 PORSB SIN AVDD25A1 SOUT MIC1P FS MIC1N MIC2N AVSS25A1 VREFPT External VREFMR External VREFMT External SOUT External/ Internal SIN External/ Internal MCLK External/ Internal FS External/ Internal PORSB External/ Internal CSB External/ Internal WRB External/ Internal RDB External/ Internal A[8:0] External/ Internal DIN[7:0] External/ Internal DOUT[7:0] External/ Internal VREF AVSS25A5 AVDD25A5 AVSS25A6 AVDD25A6 MCLK DVASS DVADD DVABB Pin Pin Name Pin Layout Guide Usage AVDD25A1 External AVSS25A1 External AVDD25A2 External AVSS25A2 External AVDD25A3 External AVSS25A3 External AVDD25A4 External AVSS25A4 External AVDD25A5 External AVSS25A5 External - Maintain the large width of lines as far as the pads. - Place the port positions to minimize the length of power lines. - Do not merge the analog powers with anoter power from other blocks. - Use good power and ground source on board. SEC ASIC - Maintain the large width of lines as far as the pads. - Place the port positions to minimize the length of power lines. - Do not merge the analog powers with anoter power from other blocks. - Use good power and ground source on board. External - Do not overlap with digtal lines. External - Maintain the shotest path to pads. AVDD25A3 DOUT[7:0] Pin Layout Guide 12 / 15 - Maintain the larger width and the shorter length as far as the pads. - Separate from all other digital lines. - Separate from all other analog signals ANALOG Voice Band Signal Interface cod0421x LAYOUT GUIDE ANALOG POWER:P ANALOG POWER:P ANALOG POWER:P PAD ANALOG POWER:P ANALOG GROUND:G PAD ANALOG GROUND:G ANALOG GROUND:G ANALOG GROUND:G SAME NAME PORT: SAME NAME PORT: SAME NAME PORT: SAME NAME PORT: Correct Examples : Each Same Name Port Should be Connected to PAD, Respectively. PAD ANALOG POWER:P ANALOG GROUND:G ANALOG GROUND:G ANALOG POWER:P PAD SAME NAME PORT: PAD PAD SAME NAME PORT: Wrong Examples : Each Same Name Port Merged together around GDS, and connected to together to PAD Analog Pads should be Placed as short as possible To GDS Analog Ports Digital Ports At least 50um Space recommended Digital Logics At least 50um Space recommended SEC ASIC • Digital Lines should not cross Analog lines 13 / 15 ANALOG Voice Band Signal Interface cod0421x FEEDBACK REQUEST It should be quite helpful to our CODEC core development if you specify your system requirements on CODEC in the following characteristic checking table and fill out the additional questions. We appreciate your interest in our products. Thank you very much. Could you explain external/internal pin configurations as required? Specially requested function list : 1. What is your signal band to use, 3.6KHz? 4KHz? or 4.8KHz? 2. What is your analog in/output signal voltage swing? and what kind of format do your want as analog signal in/ouput: single or differential format? If you can, Please let us know, what is your exact in/output signal spec. 3. What is your minimum S/N+D spec? 4. Do you want linear phase characteristic or you don't care on digital filter spec? 5. Could you give us exact design spec of speech codec? (For example, A-law, u-law and so on.) ANALOG SEC ASIC 14 / 15 Voice Band Signal Interface cod0421x HISTORY CARD Version Date Modified Items Ver 1.0 '00.DEC 1.Original version published Ver 1.1 '01.MAY In page 5 : power down mode power consumption changed to 50uA Ver 2.0 `01.July Ver 2.1 `02.April Comments 1. analog typical voltage 2.5v ¡æ 2.8v 2. analog supply voltage range 2.3~2.8v ¡æ 2.5~3.6v Page 12,13 Phantom Cell Information and Layout Guide added SEC ASIC 15 / 15 ANALOG