TP3094 COMBO(R) Quad PCM Codec/Filter General Description Features * Handles four voice channels * Complete Codec and Filter system including: The TP3094 is a monolithic PCM Codec and Filter device implemented using a digital signal processing architecture. It provides four voice channels, combining transmit bandpass and receive low pass channel filters with companding Alaw or m-law PCM encoders and decoders. The device is fabricated using National's advanced CMOS process. - Transmit and receive channel filters - A-law or -law companding encoder/decoder * Power down mode for low power consumption * Compatible to standard time division multiplexed PCM bus - 8 bit mode, frame signal from external reference - 32 bit mode, internal TSA, with consecutive TS * Up to 128 channels (32 devices) can be cascaded * Programmable functions (common for all 4 channels): - A-law or -law The device includes anti-aliasing filters and sigma-delta converters dedicated to each channel, and by a common signal processing unit which performs all the remaining filtering and processing for the four channels. - Single MCLK clock,automatically selectable from 8.192MHz, 4.096MHz, 2.048MHz and 1.536/1.544MHz - Digital and Analog loopback test modes The TP3094 includes a flexible PCM digital interface, which allows the device to be connected to PCM busses of different formats. It can also be connected with other TP3094 devices in a cascade fashion, for a system with up to 128 POTS interfaces (when a 2.048MHz PCM bus is used). * * * * * Designed for CCITT and LSSGR applications Single +5V power supply 44 lead PLCC surface mount package Maximize line card circuit density Use in Central Office, Loop Carrier, and PBX equipment subscriber line and trunk cards * Wide operating temperature range -40C to 85C VXI3 GXO3 VRO3 AVCC1 PDN3 PDN2 PDN1 PDN0 A/Law MCLK DR Connection Diagram 6 4 3 2 1 44 43 42 41 40 39 8 38 9 37 10 36 11 35 TP3094 12 34 13 33 14 32 15 31 30 16 29 17 18 19 20 21 22 23 24 DX DGND PT4 DVCC FSX3 NC FSR3 FSX2 FSR2 FSX1 FSR1 25 26 27 28 GXO0 VRO0 PT3 AVCC0 PT1 PCMMode PT2 TST TSX FSR0 FSX0 AGND1 VXI2 GXO2 VRO2 NC VRO1 GXO1 VXI1 NF AGND0 VXI0 5 7 Order Number TP3094V See NS Package V44A COMBO(R) and TRI-STATE(R) are registered trademarks of National Semiconductor Corporation (c) 2003 National Semiconductor Corporation www.national.com TP3094 Quad PCM Codec/Filter April 2003 Simplified Block Diagram + VRO0 + VRO1 ADC + MCLK Digital Signal Processor PCM Interface ADC PCMMode ADC DAC TST A/u Law PDN0-3 Ref & Bias NF + DX DR FSX0-3 FSR0-3 TSx DAC PT3 PT4 VRO3 ClockDetection DAC VRO2 GXO3 VXI3- DAC PT2 GXO2 VXI2- PLL PT1 GXO1 VXI1- ADC AVCC0 AGND0 AVCC1 AGND1 DVCC DGND GXO0 VXI0- FIGURE 1. Simplified block diagram 2 www.national.com Pin Descriptions signed transmit time-slots (for all four channels). MCLK (input) Master and PCM bit clock input. Must be either 1.536MHz/1.544MHz, 2.048MHz, 4.096MHz or 8.192MHz. Its value is automatically detected internally on power up with the valid frame sync input. DR (input) Receive PCM data input. Serial PCM data is shifted into the device on the falling edge of MCLK during the assigned receive time-slot. FSX0, FSR0 (inputs) Transmit and Receive Frame synchronization inputs for channel 0. They identify the beginning of a new frame in the transmit and receive direction. They are 8 KHz logic signals, and must be synchronous to MCLK. Short Frame Sync and Long Frame Sync are both supported. In 32-bit mode these signals constitute the 8kHz reference for all channels. Only Short Frame Sync is supported in 32-bit mode. AVCC0, AVCC1 Positive supply pins for the analog circuitry. AVCC0 is for channel 0 and channel 1. AVCC1 is for channel 2 and channel 3. AVCC0=AVCC1=+5V 5%. These two pins should be connected together outside the device. AGND0, AGND1 Analog ground. All analog signals are referenced to AGND0 and AGND1. AGND0 is the analog ground for channel 0 and channel 1. AGND1 is the analog ground for channel 2 and channel 3. These two pins should be connected together outside the device. FSX1, FSR1 (inputs/outputs) Transmit and Receive Frame synchronization inputs for channel 1. In 32-bit mode these pins become outputs and generate a frame sync signal with the last bit of the 32-bit stream, in order to allow to cascade another TP3094 in 32-bit mode. FSX1 is the Transmit Frame output and FSR1 is the Receive Frame output. DVCC Positive supply for the digital circuitry. DVCC=+5V 5%. DGND Digital ground. All logic signals are referenced to DGND. This ground has to be connected to the ground of other digital devices at board level. FSX2,FSX3, FSR2,FSR3 (inputs) Transmit and Receive Frame synchronization inputs for channel 2 and 3. These pins are recommended to be connected to analog ground when in 32-bit mode. Analog ports VXI0-, VXI1-, VXI2-, VXI3- (inputs) Inverting analog inputs of the transmit input amplifiers of channels 0-3. They are referenced to an internal reference voltage of about 2.4V. A/u LAW select (input) A/u law select. Through this pin either A-law (+5V) or u-law (0V) is selected. GXO0, GXO1, GXO2, GXO3 (outputs) Outputs of the transmit input amplifiers of channels 0-3. They are referenced to an internal reference voltage of about 2.4V PDN0-3 (input) Power Down control signals. Each channel has a dedicated Power Down input. When active high, these pins set the low power mode, shutting down most of the circuitry dedicated to it and reducing the power consumption. The relative analog outputs VROi and GXOi, and the digital output DX are put in high impedance. VRO0, VRO1, VRO2, VRO3 (ouputs) Analog outputs of the receive amplifiers for channels 0-3. They are referenced to an internal reference voltage of about 2.4V TST (input) Test Modes Enable. When active (HIGH), together with the PDNi pins selects one of the available test modes (see the text for a full description of these modes). PCM Port DX (ouput) Transmit PCM data output. Serial PCM data is shifted out on the rising edge of MCLK during the assigned transmit time-slot. Tristated when the assigned transmit time-slot is not active. PCMMode (input) PCM Mode selection. When this signal is LOW (0V), the 8 bit mode is selected and each channel TSx (ouput) Open drain output that pulses low during the as3 www.national.com Pin Descriptions (continued) Power Initialization When power is first applied to the device, poweron reset circuitry initializes the device and places it in the power down state. All non-essential circuits are de-activated. PCM output DX and analog outputs VRO0-3 are placed in the high impedance state, while FSX1 and FSR1 outputs are held low (in case 32-bit mode is selected). In the power down mode, power consumption is reduced to a minimum, typically 2mW. The device will remain in this state as long as no MCLK is applied and no Frame Signal is applied (just FSX0 and FSR0 in case of 32-bit mode). For each channel, when the PDN input is not active, MCLK is applied, and a FS (receive or transmit) pulse is running, the device enters the active power up mode. The MCLK frequency is detected with any available FS signal; the clock rate detection may last for up to 4ms, after which the device is ready for powering up. Analog and PCM output signals will be available after a few frames; it will take about 100ms until the first activated channel is fully functional. The device will only power up when at least one of the FS signals and the MCLK signal are in a valid frequency ratio. expects its individual transmit and receive frame signal. When it is HIGH, the 32 bit mode is selected; in this mode FSX0 and FSR0 are used as framing signals and the TS are allocated consecutively from these frames, starting from Ch0 to Ch3. In this mode FSX1 and FSR1 become outputs and produce 1 bit long frame signals with the last bit of the 32 bit stream. These Frame signals can be used to cascade another device in 32 bit mode. NF Noise Filter Pin. For optimal noise rejection a 100nF capacitor must be connected between this pin and the analog ground AGND0. PT1, PT2, PT3, PT4 (inputs) These pins are used by National for internal manufacturing test. They must be connected to digital ground for normal device operation. NC All NC pins must be connected to nearest analog ground, to reduce the device noise sensitivity. Power Down and Reset When one channel is in Power Down Mode, the DX output will remain in high impedance state and the input on the DR will be ignored when its FS signal is active; the analog output VRO will be in high impedance. Each channel will enter the power down mode when at least one of the following conditions occurs * The PDN signal is active for more than 16 MCLK cycles (and TST is not active at the same time) * More than 4 pulses of the respective FS are missing. * MCLK is missing for a 12us. Functional Description The TP3094 performs the complete CODEC/filter functions for four voice channels using a digital signal processing architecture. MCLK provides the clock reference to the whole circuitry and the bit clock for the PCM bus. Its value can be either 8.192MHz, 4.096MHz, 2.048MHz or 1.536/ 1.544MHz, and it is automatically selected internally. The TP3094 handles the conversion between the analog signals on the subscriber line and the PCM data samples on a PCM highway. Digital filters are used to band-limit the voice signals. The device can work in a 8 bit mode where each channel has an independently selected Time Slot, or in the 32 bit mode, where the four channels use four consecutive Time Slots. The timedivision multiplexed PCM data is transferred to the PCM highway through the standard serial PCM bus. Each channel has its dedicated Power Down input. When the PDN input is active (HIGH) for at least 16 MCLK clock cycles, the channel will go into power down mode and reset its state within a frame sync. The channel will recover from Power Down, after having detected the PDN signal inactive (LOW) for at least 16 MCLK clock cycles and after 1 frame sync pulse. This power down mode will work only in presence of the master clock at the pin MCLK. 4 www.national.com processing functions, such as PCM expansion according to the ALaw or uLaw and signal filtering. Then, for each channel it drives the Digital to Analog converter, through the proper interpolation stages and filters. Finally the signal is filtered and buffered to the output receive pin. The maximum output level voltage on the VRO pins on a load of 5kOhm+100pF is 1.12Vrms. When both the transmit and receive frame sync of a channel are missing the channel will go into Power Down Mode (if only one of them is missing the channel will not go into Power Down). A maximum of 32 frame sync pulses must be missing for power down and the channel will achieve its reset state after 32.5us. The channel will recover from power down, within the time of 4ms after the frame syncs (transmit or receive) will be active. When the device is in 32-bit mode, missing FSX0, FSR0 for 512us, will force all channels in power down mode. PCM Interface The PCM interface consists of the following signals * DX, DR - transmit and receive digital signals, carrying the pcm samples * FSX0-3, FSR0-3 - transmit and receive frame signals * TSX - output time slots signal, indicating the time slot occupied on the DX by the device * PCMMode - PCM interface select When the master clock MCLK is missing, all the channels will go into the Global Power Down Mode, with the lowest possible power consumption. The device will recover from this mode, when the clock signal comes back (and at least one frame sync is present), and then the active channels will operate after less than 100ms. The device will go into the same Global Power Down Mode when all the frame syncs (of all the channels, in case of 8bit mode, the FSX0, FSR0 in case of 32-bit mode) are not present or when all 4 PDN signals are active. The recovery time from this mode for the first active channel is less than 100ms. PCMMode = HIGH PCMMode = LOW 32 bit 8 bit * A/uLaw - A-law/ u-law select signal * TABLE 1. A/uLaw Coding A/uLaw = HIGH A/uLaw = LOW A-law u-law Transmit Section The transmit section input is an operational amplifier, with provision for gain adjustment using two external resistors. Only the inverting input is provided (together with the output), this allows, beside the adjustment of the gain, to implement the echo balance function with external passive components. The opamp drives the antialiasing input filter, followed by the A to D converter, which provides the digital input to the signal processing unit. The signal processing unit accepts the signal samples from each channel input stage, performs the necessary decimation and filtering function, PCM compression and provides the eight bit samples to the PCM interface block. The analog input is dc biased at the value of 2.4V. A DC decoupling is necessary between this input and the SLIC output. The maximum analog signal level, at the op-amp output, is 1.12Vrms. Maximum recommended transmit gain is 20dB (10x). * MCLK - bit clock signal MCLK is both the system master clock and the PCM bus bit clock, and it is selected internally to be either 8.192MHz, 4.096MHz, 2.048MHz, or 1.536/ 1.544MHz. The internal clock selection is perfomed, based on the relative ratio between the frame signals (FS) and the clock signals. For proper functionality all the channel FS must have the same valid rate of 8kHz (giving a valid clock rate). In case one of the frame syncs runs other than 8kHz, the device will not function properly. Each bit on DX is clocked out on the rising edges of the bit clock (MCLK), starting from the Most Significant Bit (Sign bit). Each bit on DR is clocked in on the falling edges of the bit clock, starting from the MSB. The device may operate on to the PCM bus in two modes, selected by the input pin PCMMode; when PCMMode is "0V" the 8bit mode is selected and when PCMMode is "+5V" the 32-bit mode is selected. Receive Section This section takes the 8 bit samples from the PCM interface block and performs all the signal 5 www.national.com Functional Description (continued) ignored. In case all the channels are placed in power down, the device will still generate the FS carry output on FSX1, FSR1. For timing diagrams refer to Fig.7 and Fig.8. 8-bit Mode In the 8-bit mode, PCM data is transferred independently for each of the four channels. Each channel has its dedicated transmit and receive frame signals, which determine the time-slots to be taken on the PCM bus. Both short sync and long sync frame are supported. All the channels must have the same FS format (either short or long sync), in case a channel will have a valid frame with different FS format, the device will not function properly. In the short sync, the frame signals must be one bit long; with FSX high during a falling edge of MCLK, the next rising edge of MCLK enables the DX tristate output buffer, which will output the sign bit. The following 7 rising edges clock out the remaining 7 bits, and the next rising edge (9th) disables the DX output. With FSR high during a falling edge of MCLK, the next falling edge of MCLK latches in the sign bit. The following 7 negative edges of MCLK will then latch the remaining 7 bit of the incoming byte. In the long sync frame, the Frame signals must be at least three bits long. The DX output buffer is enabled with the rising edge of FSX or on the rising edge of MCLK, whichever comes later, and the first bit (sign) is clocked out. The following 7 rising edges of MLCK clock out the remaining 7 bits. The DX output is disabled by the 9th rising edge of MCLK. A rising edge on FSR will cause the PCM data at DR to be latched in on the next falling edges of MCLK. For timing diagrams refer to Fig.2, Fig.4, Fig.5 and Fig.6. Test Modes The TP3094 includes the following test modes * digital loopback * analog loopback * DC conversion These modes can be programmed per channel or for all 4 channels simultaneously. The device is programmed into any test mode by exercising the pins TST, PDN0, PDN1, PDN2, PDN3 together. The signals to this pins must be stable for at least 16 MCLK cycles before the device enters any selected test mode. When exiting the test mode, the PDN must return to the previous state to resume the original operating state. During any test mode (TST=1), it will not be possible to change the PU/PD state for any channel not involved in the test mode configuration (e.g. not in test mode). The channel(s) under test must be placed in power up prior the test mode selection, in case left in power down, any programmed test mode will not be operational. When the device exits the test mode, normal operation will return, and the PU/PD programmability will be available, by the state of the PDN signals. The programming of the test modes is according to the table below. The digital loopback is a bit true feedback from the PCM highway to the PCM highway, performed exactly at the PCM internal interface. Each byte is looped back from RX to TX on the programmed time slot (FS). The analog output is forced to 0Vac level (typically 2.4Vdc), with low output impedance. 32-bit Mode In the 32-bit mode, the four PCM data bytes of the four channels are treated as a single 32-bit data word. The PCM transfer is started by the positive pulses on the transmit or receive frame sync (FSX0, FSR0) inputs. The following 32 negative edges of MCLK will then latch the input PCM data at DR, for all 4 channel starting from channel 0; while the positive edges will clock out the transmit PCM data at DX, from channel 0 to channel 3. In this mode the pins FSX1 and FSR1 become the frame signal carry-out signals, providing a singlebit-long frame pulse during the last bit of the 32bit stream and allowing another TP3094 to be connected in 32-bit mode. In case any channel is powered down (through the PDN pin) during its assigned time slot the DX pin will be set in tristate and the DR signal will be The analog loopback is performed from the output of the D/A converter (before the output amplifier) and the input of the A/D, so the RX signal is looped back towards the TX direction, through the device. The analog output is at 0Vac level, with high output impedance. In the DC conversion mode, the channel under test is programmed to transfer any DC signal (within the available range) in the TX direction, from the analog GXO to the DX digital output, by 6 www.national.com Functional Description (continued) bypassing the low frequency filter. Test Modes Normal Operation Single Channel Digital Loopback Single Channel Analog Loopback Single Channel DC Conversion 4 Channels Digital Loopback 4 Channels Analog Loopback 4 Channels DC Conversion Invalid States TST 0 1 1 1 1 1 1 1 PDN0 x 1 0 1 0 0 0 0 PDN1 x 1 1 0 0 0 0 0 PDN2 x A0 A0 A0 0 0 1 1 PDN3 x A1 A1 A1 0 1 0 1 Description Ch. select with PDN2, PDN3 Ch. select with PDN2, PDN3 Ch. select with PDN2, PDN3 Where A0, A1 select the channel under test, according to the following table A0 0 1 0 1 A1 0 0 1 1 Channel Selected Channel 0 Channel 1 Channel 2 Channel 3 7 www.national.com Timing Diagrams MCLK 125S FSX3 or FSR3 FSX2 or FSR2 FSX0 or FSR0 DX D7 CH3 D0 D7 CH2 D0 D7 CH1 D0 D7 CH0 D0 DR D7 CH3 D0 D7 CH2 D0 D7 CH1 D0 D7 CH0 D0 TSX FIGURE 2. Timing diagram for PCM Interface, 8-bit mode (Long Frame Sync) tWMH tPM tFM MCLK tRM tWML FIGURE 3. MCLK Timing TSX tTSZC tDBTS MCLK 1st tHBFL 2nd 3rd 4th 5th 6th 7th 8th 9th tSBF FSX/FSR tZDF tZDF DX tDZC tDBD D7 (Sign) D6 (MSB) t SDB DR D7 (Sign) D6 (MSB) D4 D5 D2 D3 D1 D0 (LSB) tHDB D5 D4 D3 D2 D1 D0 (LSB) FIGURE 4. Timing diagram for PCM Interface, 8-bit mode (Long Frame Sync) 8 www.national.com Timing Diagrams (continued) MCLK 125S FSX3 or FSR3 FSX2 or FSR2 FSX0 or FSR0 DX D7 CH3 D0 D7 CH2 D0 D7 CH1 D0 D7 CH0 D0 DR D7 CH3 D0 D7 CH2 D0 D7 CH1 D0 D7 CH0 D0 TSX FIGURE 5. Timing diagram for PCM Interface, 8-bit mode (Short Frame Sync) TSX tTSZC tDBTS MCLK 1st FSX or t SF 2nd 3rd 5th 4th 6th 7th 9th 8th tHF FSR tDBD DX tDBD D7 (Sign) tDZC D6 (MSB) t SDB DR D7 (Sign) D6 (MSB) D4 D5 D2 D3 D1 D0 (LSB) tHDB D5 D4 D3 D2 D1 D0 (LSB) FIGURE 6. Timing diagram for PCM Interface, 8-bit mode (Short Frame Sync) for each channel 9 www.national.com Timing Diagrams (continued) MCLK 125S FSX0 or FSR0 FSX1 or FSR1 D7CH0 D0 D7 CH1 D0 D7 CH2 D0 D7 CH3 D0 DX DR D7CH0 D0 D7 CH1 D0 D7 CH2 D0 D7 CH3 D0 TSX FIGURE 7. Timing diagram for PCM Interface, 32-bit mode TSX tTSZC tDBTS MCLK 1st FSX0 or tSF 2nd 3rd 33th 32th 5th 4th tHF tDOFL FSR0 tDOFH FSX1 or FSR1 tDBD tDBD DX D7-0 (Sign) D6-0 (MSB) tDZC tSDB DR D7-0 (Sign) D6-0 (MSB) D0-3 (LSB) D4-0 D5-0 tHDB D5-0 D4-0 D1-3 D0-3 (LSB) FIGURE 8. Timing diagram for PCM Interface, 32-bit mode 10 www.national.com Absolute Maximum Ratings If Military/Aerospace specified devices are required, please contact the National Semiconductor Sales Office/Distributors for availability and specifications. 7V VCC to DGND Voltage at any digital inputs or outputs VCC +0.3V to DGND -0.3V Voltage at any analog inputs or outputs VCC +0.3V to AGND-0.3V Storage temperature range -65oC to +150oC Lead temperature(Soldering, 10 Sec) 260oC ESD (human body model) 2000 V Latch-up immunity on any pin 200 mA Electrical Characteristics Unless otherwise noted, limits printed in bold characters are guaranteed for VCC(all supplies)=5.0V5%, DGND=AGND=0V, TA=-40C to 85C by correlation with 100% electrical testing at TA=25C. All other limits are assured by correlation with other production tests and/or product design and characterization. All digital signals are referenced to DGND, and all analog signals are referenced to AGND. Typical are specified at VCC=+5V, TA=25C. Digital Interface Symbol Parameter Input low voltage VIL Conditions All digital inputs Min 2.2 Typ Max 0.8 Units V VIH Input high voltage All digital inputs V VOL Output low voltage IL=2mA 0.4 V VOH Output high voltage 2.4 3.5 -10 IIL Input low current IL=-2mA IL=-100uA DGND10k FUXA Unity Gain Bandwidth RLGXO Load resistance 0.7V