a FEATURES Dual 12-Bit, 2-Channel ADC Fast Throughput Rate 1 MSPS Specified for VDD of 2.7 V to 5.25 V Low Power 11.4 mW Max at 1 MSPS with 3 V Supplies 24 mW Max at 1 MSPS with 5 V Supplies Wide Input Bandwidth 70 dB SNR at 300 kHz Input Frequency Onboard Reference 2.5 V Flexible Power/Throughput Rate Management Simultaneous Conversion/Read No Pipeline Delays High-Speed Serial Interface SPI TM/QSPITM/ MICROWIRE TM/DSP Compatible Shut-Down Mode 1 A Max 20-Lead TSSOP Package Dual 1 MSPS, 12-Bit, 2-Channel SAR ADC with Serial Interface AD7866 FUNCTIONAL BLOCK DIAGRAM 2.5V REF VA1 VA2 MUX The AD7866 is a dual 12-bit high-speed, low power, successiveapproximation ADC. The part operates from a single 2.7 V to 5.25 V power supply and features throughput rates up to 1 MSPS. The device contains two ADCs, each preceded by a low-noise, wide bandwidth track/hold amplifier which can handle input frequencies in excess of 10 MHz. The conversion process and data acquisition are controlled using standard control inputs allowing easy interfacing to microprocessors or DSPs. The input signal is sampled on the falling edge of CS and conversion is also initiated at this point. The conversion time is determined by the SCLK frequency. There are no pipelined delays associated with the part. The AD7866 uses advanced design techniques to achieve very low power dissipation at high throughput rates. With 3 V supplies and 1 MSPS throughput rate, the part consumes a maximum of 3.8 mA. With 5 V supplies and 1 MSPS, the current consumption is a maximum of 4.8 mA. The part also offers flexible power/ throughput rate management when operating in sleep mode. The analog input range for the part can be selected to be a 0 V to VREF range or a 2 x VREF range with either straight binary or two's complement output coding. The AD7866 has an on-chip 2.5 V reference which can be overdriven if an external DVDD AD7866 BUF T/H AVDD 12-BIT SUCCESSIVEAPPROXIMATION ADC OUTPUT DRIVERS VB1 VB2 MUX T/H DOUTA A0 RANGE SCLK CS VDRIVE CONTROL LOGIC 12-BIT SUCCESSIVEAPPROXIMATION ADC OUTPUT DRIVERS DOUT B BUF AGND GENERAL DESCRIPTION DCAPA REF SELECT VREF AGND DCAPB DGND reference is preferred. Each on-board ADC can also be supplied with a separate individual external reference. The AD7866 is available in a 20-lead thin shrink small outline (TSSOP) package. PRODUCT HIGHLIGHTS 1. The AD7866 features two complete ADC functions allowing simultaneous sampling and conversion of two channels. Each ADC has a 2-channel input multiplexer. The conversion result of both channels is available simultaneously on separate data lines, or both may be taken on one data line if only one serial port is available. 2. High Throughput with Low Power Consumption--The AD7866 offers a 1 MSPS throughput rate with 11.4 mW maximum power consumption when operating at 3 V. 3. Flexible Power/Throughput Rate Management--The conversion rate is determined by the serial clock allowing the power consumption to be reduced as the conversion time is reduced through a SCLK frequency increase. Power efficiency can be maximized at lower throughput rates if the part enters sleep during conversions. 4. No Pipeline Delay--The part features two standard successiveapproximation ADCs with accurate control of the sampling instant via a CS input and once off conversion control. SPI and QSPI are trademarks of Motorola Inc. MICROWIRE is a trademark of National Semiconductor Corporation. REV. 0 Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 781/329-4700 www.analog.com Fax: 781/326-8703 (c) Analog Devices, Inc., 2002 = T to T AD7866-SPECIFICATIONS1 (TExternal on D A MIN MAX, CAPA Parameter DYNAMIC PERFORMANCE Signal to Noise + Distortion (SINAD)2 Total Harmonic Distortion (THD)2 Peak Harmonic or Spurious Noise (SFDR)2 Intermodulation Distortion (IMD)2 Second Order Terms Third Order Terms Channel to Channel Isolation SAMPLE AND HOLD Aperture Delay3 Aperture Jitter3 Aperture Delay Matching3 Full Power Bandwidth DC ACCURACY Resolution Integral Nonlinearity Differential Nonlinearity 0 V to VREF Input Range Offset Error Offset Error Match Gain Error Gain Error Match 2 x VREF Input Range Positive Gain Error Zero Code Error Zero Code Error Match Negative Gain Error ANALOG INPUT Input Voltage Ranges DC Leakage Current Input Capacitance REFERENCE INPUT/OUTPUT Reference Input Voltage Reference Input Voltage Range4 DC Leakage Current Input Capacitance Reference Output Voltage5 VREF Output Impedance6 Reference Temperature Coefficient REF OUT Error (TMIN to TMAX) LOGIC INPUTS Input High Voltage, VINH Input Low Voltage, VINL Input Current, IIN Input Capacitance, CIN3 LOGIC OUTPUTS Output High Voltage, VOH Output Low Voltage, VOL Floating-State Leakage Current Floating-State Output Capacitance3 Output Coding VDD = 2.7 V to 5.25 V, VDRIVE = 2.7 V to 5.25 V, Reference = 2.5 V and DCAPB, fSCLK = 20 MHz, unless otherwise noted.) A Version1 B Version1 Unit Test Conditions/Comments 68 -75 -76 68 -75 -76 dB min dB max dB max fIN = 300 kHz Sine Wave, fS = 1 MSPS fIN = 300 kHz Sine Wave, fS = 1 MSPS fIN = 300 kHz Sine Wave, fS = 1 MSPS -88 -88 -88 -88 -88 -88 dB typ dB typ dB typ 10 50 200 12 2 10 50 200 12 2 ns max ps typ ps max MHz typ MHz typ 12 1.5 @ 3 dB @ 0.1 dB 12 1 1.5 -0.95/+1.25 -0.95/+1.25 Bits LSB max LSB max LSB max 8 1.2 2.5 0.2 8 1.2 2.5 0.2 LSB max LSB typ LSB max LSB typ 2.5 8 0.2 2.5 2.5 8 0.2 2.5 LSB max LSB max LSB typ LSB max 0 to VREF 0 to 2 x VREF 500 30 10 0 to VREF 0 to 2 x VREF 500 30 10 V V nA max pF typ pF typ RANGE Pin Low upon CS Falling Edge RANGE Pin High upon CS Falling Edge 2.5 2/3 30 160 20 2.45/2.55 25 45 50 15 2.5 2/3 30 160 20 2.45/2.55 25 45 50 15 V V min/V max A max A max pF typ V min/V max typ typ ppm/C typ mV typ 1% for Specified Performance REF SELECT Pin Tied High VREF Pin; DCAPA, DCAPB Pins; 0.7 VDRIVE 0.3 VDRIVE 1 10 0.7 VDRIVE 0.3 VDRIVE 1 10 V min V max A max pF max VDRIVE - 0.2 VDRIVE - 0.2 0.4 0.4 1 1 10 10 Straight (Natural) Binary Two's Complement -2- V min V max A max pF max B Grade, 0 V to VREF range only; 0.5 LSB typ 0 V to 2 x VREF range; 0.5 LSB typ Guaranteed No Missed Codes to 12 Bits Straight Binary Output Coding -VREF to +VREF Biased about VREF with Two's Complement Output Coding When in Track When in Hold VDD = 5 V VDD = 3 V Typically 15 nA, VIN = 0 V or VDRIVE ISOURCE = 200 A ISINK = 200 A VDD = 2.7 V to 5.25 V Selectable with Either Input Range REV. 0 AD7866 Parameter A Version1 B Version1 Unit CONVERSION RATE Conversion Time Track/Hold Acquisition Time3 Throughput Rate 16 300 1 16 300 1 SCLK cycles 800 ns with SCLK = 20 MHz ns max MSPS max See Serial Interface Section 2.7/5.25 2.7/5.25 2.7/5.25 2.7/5.25 V min/max V min/max 3.1 3.1 mA max 2.8 2.8 mA max 4.8 4.8 mA max 3.8 3.8 mA max Partial Power-Down Mode 1.6 1.6 mA max Partial Power-Down Mode 560 560 A max 1 1 A max Digital I/Ps = 0 V or VDRIVE VDD = 4.75 V to 5.25 V. Add 0.5 mA Typical if Using Internal Reference VDD = 2.7 V to 3.6 V. Add 0.35 mA Typical if Using Internal Reference VDD = 4.75 V to 5.25 V. Add 0.5 mA Typical if Using Internal Reference VDD = 2.7 V to 3.6 V. Add 0.5 mA Typical if Using Internal Reference fS = 100 kSPS, fSCLK = 20 MHz Add 0.2 mA Typ if Using Internal Reference (Static) Add 100 A Typical if Using Internal Reference SCLK On or Off. 24 11.4 2.8 1.68 5 3 24 11.4 2.8 1.68 5 3 mW max mW max mW max mW max W max W max VDD = 5 V VDD = 3 V VDD = 5 V. SCLK On or Off. VDD = 3 V. SCLK On or Off. VDD = 5 V. SCLK On or Off. VDD = 3 V. SCLK On or Off. POWER REQUIREMENTS VDD VDRIVE IDD7 Normal Mode (Static) Operational, fS = 1 MSPS Full Power-Down Mode Power Dissipation7 Normal Mode (Operational) Partial Power-Down (Static) Full Power-Down (Static) NOTES 1 Temperature ranges as follows: A, B Versions: -40C to +85C. 2 See Terminology section. 3 Sample tested @ 25C to ensure compliance. 4 External reference range that may be applied at V REF, DCAPA, or DCAPB. 5 Relates to pins VREF, DCAPA, or DCAPB. 6 See Reference section for D CAPA, DCAPB output impedances. 7 See Power Versus Throughput Rate section. Specifications subject to change without notice. REV. 0 -3- Test Conditions/Comments AD7866 TIMING SPECIFICATIONS1 (V DD Parameter fSCLK 2 tCONVERT tQUIET t2 t3 3 t4 3 t5 t6 t7 t8 4 t9 4 = 2.7 V to 5.25 V, VDRIVE = 2.7 V to 5.25 V, VREF = 2.5 V; TA = TMIN to TMAX, unless otherwise noted.) Limit at TMIN, TMAX Unit 10 20 16 x tSCLK 800 50 10 25 40 kHz min MHz max ns max ns max ns max ns min ns max ns max 0.4 tSCLK 0.4 tSCLK 10 25 10 50 ns min ns min ns min ns max ns min ns max Description tSCLK = 1/fSCLK fSCLK = 20 MHz Minimum Time Between End of Serial Read and Next Falling Edge of CS CS to SCLK Setup Time Delay from CS Until DOUTA and DOUTB Three-State Disabled Data Access Time After SCLK Falling Edge. VDRIVE 3 V, CL = 50 pF; VDRIVE < 3 V, CL = 25 pF SCLK Low Pulsewidth SCLK High Pulsewidth SCLK to Data Valid Hold Time CS Rising Edge to DOUTA, DOUTB, High Impedance SCLK Falling Edge to DOUTA, DOUTB, High Impedance SCLK Falling Edge to DOUTA, DOUTB, High Impedance NOTES 1 Sample tested at 25C to ensure compliance. All input signals are specified with tr = tf = 5 ns (10% to 90% of V DRIVE) and timed from a voltage level of 1.6 V. 2 Mark/Space ratio for the CLK input is 40/60 to 60/40. 3 Measured with the load circuit of Figure 1 and defined as the time required for the output to cross 0.8 V or 2.0 V. 4 t8, t9 are derived from the measured time taken by the data outputs to change 0.5 V when loaded with the circuit of Figure 1. The measured number is then extrapolated back to remove the effects of charging or discharging the 50 pF capacitor. This means that the times t 8 and t9 quoted in the timing characteristics are the true bus relinquish times of the part and are independent of the bus loading. Specifications subject to change without notice. 200A TO OUTPUT PIN IOL 1.6V CL 50pF 200A IOH Figure 1. Load Circuit for Digital Output Timing Specifications Storage Temperature Range . . . . . . . . . . . . -65oC to +150oC Junction Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . 150oC TSSOP Package, Power Dissipation . . . . . . . . . . . . . 450 mW JA Thermal Impedance . . . . . . . . . . . . 143C/W (TSSOP) JC Thermal Impedance . . . . . . . . . . . . . 45C/W (TSSOP) Lead Temperature, Soldering Vapor Phase (60 secs) . . . . . . . . . . . . . . . . . . . . . . . 215C Infrared (15 secs) . . . . . . . . . . . . . . . . . . . . . . . . . . 220C ESD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.5 kV ABSOLUTE MAXIMUM RATINGS 1 o (TA = 25 C unless otherwise noted) AVDD to AGND . . . . . . . . . . . . . . . . . . . . . . . . -0.3 V to +7 V DVDD to DGND . . . . . . . . . . . . . . . . . . . . . . . -0.3 V to +7 V VDRIVE to DGND . . . . . . . . . . . . . . . -0.3 V to DVDD + 0.3 V VDRIVE to AGND . . . . . . . . . . . . . . . . -0.3 V to AVDD + 0.3 V AVDD to DVDD . . . . . . . . . . . . . . . . . . . . . . . -0.3 V to +0.3 V AGND to DGND . . . . . . . . . . . . . . . . . . . . -0.3 V to +0.3 V Analog Input Voltage to AGND . . . . -0.3 V to AVDD + 0.3 V Digital Input Voltage to DGND . . . . . . . . . . . -0.3 V to +7 V VREF to AGND . . . . . . . . . . . . . . . . . -0.3 V to AVDD + 0.3 V Digital Output Voltage to DGND . . -0.3 V to VDRIVE + 0.3 V Input Current to Any Pin Except Supplies2 . . . . . . . . 10 mA Operating Temperature Range Commercial (A, B Versions) . . . . . . . . . . . . . -40oC to +85oC NOTES 1 Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the device at these or any other conditions above those listed in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. 2 Transient currents of up to 100 mA will not cause SCR latch up. CAUTION ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on the human body and test equipment and can discharge without detection. Although the AD7866 features proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high-energy electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance degradation or loss of functionality. -4- WARNING! ESD SENSITIVE DEVICE REV. 0 AD7866 ORDERING GUIDE Model Temperature Range AD7866ARU AD7866BRU EVAL-AD7866CB1 EVAL-CONTROL BRD22 -40C to +85C -40C to +85C Evaluation Board Controller Board Resolution (Bits) 12 12 Package Description Thin Shrink SO (TSSOP) Thin Shrink SO (TSSOP) (TSSOP) Package Option RU-20 RU-20 NOTES 1 This can be used as a stand-alone evaluation board or in conjunction with the evaluation board controller for evaluation/demonstration purposes. 2 This evaluation board controller is a complete unit, allowing a PC to control and communicate with all Analog Devices evaluation boards ending in the CB designators. PIN CONFIGURATION REF SELECT 1 20 A0 2 19 CS DCAPB 18 SCLK AGND 3 VB2 17 VDRIVE 4 VB1 5 AD7866 16 DOUTB TOP VIEW 15 D OUTA (Not to Scale) VA1 7 14 DGND VA2 6 AGND 8 13 DVDD DCAPA 9 12 AVDD VREF 10 11 RANGE PIN FUNCTION DESCRIPTIONS Pin No. Mnemonic Function 1 REF SELECT Internal/External Reference Selection Pin. Logic Input. If this pin is tied to GND, the on-chip 2.5 V reference is used as the reference source for both ADC A and ADC B. In addition, pins VREF, DCAPA, and DCAPB must be tied to decoupling capacitors. If the REF SELECT pin is tied to a logic high, an external reference can be supplied to the AD7866 through the VREF pin, in which case decoupling capacitors are required on DCAPA and DCAPB. However, if the VREF pin is tied to AGND while REF SELECT is tied to a logic low, an individual external reference can be applied to both ADC A and ADC B through pins DCAPA and DCAPB, respectively. See Reference section. 2, 9 DCAPB, DCAPA Decoupling capacitors are connected to these pins to decouple the reference buffer for each respective ADC. The on-chip reference can be taken from these pins and applied externally to the rest of a system. Depending on the polarity of the REF SELECT pin and the configuration of the VREF pin, these pins can also be used to input a separate external reference to each ADC. The range of the external reference is dependent on the analog input range selected. See Reference section. 3, 8 AGND Analog Ground. Ground reference point for all analog circuitry on the AD7866. All analog input signals and any external reference signal should be referred to this AGND voltage. Both of these pins should connect to the AGND plane of a system. The AGND and DGND voltages should ideally be at the same potential and must not be more than 0.3 V apart even on a transient basis. 4, 5 VB2, VB1 Analog Inputs of ADC B. Single-ended analog input channels. The input range on each channel is 0 V to VREF or a 2 x VREF range depending on the polarity of the RANGE pin upon the falling edge of CS. 6, 7 VA2, VA1 Analog Inputs of ADC A. Single-ended analog input channels. The input range on each channel is 0 V to VREF or a 2 x VREF range depending on the polarity of the RANGE pin upon the falling edge of CS. 10 VREF Reference Decoupling Pin and External Reference Selection Pin. This pin is connected to the internal reference and requires a decoupling capacitor. The nominal reference voltage is 2.5 V and this appears at the pin; however, if the internal reference is to be used externally in a system, it must be taken from either the DCAPA or DCAPB pins. This pin is also used in conjunction with the REF SELECT pin when applying an external reference to the AD7866. See REF SELECT pin description. REV. 0 -5- AD7866 PIN FUNCTION DESCRIPTIONS (continued) Pin No. Mnemonic Function 11 RANGE Analog Input Range and Output Coding Selection Pin. Logic Input. The polarity on this pin will determine what input range the analog input channels on the AD7866 will have, and it will also select what type of output coding the ADC will use for the conversion result. On the falling edge of CS, the polarity of this pin is checked to determine the analog input range of the next conversion. If this pin is tied to a logic low, the analog input range is 0 V to VREF and the output coding from the part will be straight binary (for the next conversion). If this pin is tied to a logic high when CS goes low, the analog input range is 2 x VREF and the output coding for the part will be two's complement. However, if after the falling edge of CS the logic level of the RANGE pin has changed upon the eighth SCLK falling edge, the output coding will change to the other option without any change in the analog input range. (See Analog Input and ADC Transfer Function sections.) 12 AVDD Analog Supply Voltage, 2.7 V to 5.25 V. This is the only supply voltage for all analog circuitry on the AD7866. The AVDD and DVDD voltages should ideally be at the same potential and must not be more than 0.3 V apart even on a transient basis. This supply should be decoupled to AGND. 13 DVDD Digital Supply Voltage, 2.7 V to 5.25 V. This is the supply voltage for all digital circuitry on the AD7866. The DVDD and AVDD voltages should ideally be at the same potential and must not be more than 0.3 V apart even on a transient basis. This supply should be decoupled to DGND. 14 DGND Digital Ground. This is the ground reference point for all digital circuitry on the AD7866. The DGND and AGND voltages should ideally be at the same potential and must not be more than 0.3 V apart even on a transient basis. 15, 16 DOUTA, DOUTB Serial Data Outputs. The data output is supplied to this pin as a serial data stream. The bits are clocked out on the falling edge of the SCLK input. The data appears on both pins simultaneously from the simultaneous conversions of both ADCs. The data stream consists of one leading zero followed by three STATUS bits, followed by the 12 bits of conversion data. The data is provided MSB first. If CS is held low for a further 16 SCLK cycles after the conversion data has been output on either DOUTA or DOUTB, the data from the other ADC follows on the DOUT pin. This allows data from a simultaneous conversion on both ADCs to be gathered in serial format on either DOUTA or DOUTB alone using only one serial port. See Serial Interface section. 17 VDRIVE Logic Power Supply Input. The voltage supplied at this pin determines what voltage the interface will operate at. This pin should be decoupled to DGND. 18 SCLK Serial Clock. Logic Input. A serial clock input provides the SCLK for accessing the data from the AD7866. This clock is also used as the clock source for the conversion process. 19 CS Chip Select. Active low logic input. This input provides the dual function of initiating conversions on the AD7866 and also frames the serial data transfer. 20 A0 Multiplexer Select. Logic Input. This input is used to select the pair of channels to be converted simultaneously, i.e. Channel 1 of both ADC A and ADC B, or Channel 2 of both ADC A and ADC B. The logic state of this pin is checked upon the falling edge of CS and the multiplexer is set up for the next conversion. If it is low, the following conversion will be performed on Channel 1 of each ADC; if it is high, the following conversion will be performed on Channel 2 of each ADC. -6- REV. 0 AD7866 TERMINOLOGY Integral Nonlinearity This is the maximum deviation from a straight line passing through the endpoints of the ADC transfer function. The endpoints of the transfer function are zero scale, a point 1 LSB below the first code transition, and full scale, a point 1 LSB above the last code transition. Differential Nonlinearity This is the difference between the measured and the ideal 1 LSB change between any two adjacent codes in the ADC. Offset Error up to half the sampling frequency (fS/2), excluding dc. The ratio is dependent on the number of quantization levels in the digitization process; the more levels, the smaller the quantization noise. The theoretical signal to (noise + distortion) ratio for an ideal N-bit converter with a sine wave input is given by: Signal to (Noise + Distortion) = (6.02 N + 1.76) dB Thus for a 12-bit converter, this is 74 dB. Total Harmonic Distortion Total harmonic distortion (THD) is the ratio of the rms sum of harmonics to the fundamental. For the AD7866, it is defined as: This applies when using Straight Binary output coding. It is the deviation of the first code transition (00 . . . 000) to (00 . . . 001) from the ideal, i.e., AGND + 1 LSB. Offset Error Match This is the difference in Offset Error between the two channels. Gain Error This applies when using Straight Binary output coding. It is the deviation of the last code transition (111 . . . 110) to (111 . . . 111) from the ideal (i.e., VREF - 1 LSB) after the offset error has been adjusted out. Gain Error Match This is the difference in Gain Error between the two channels. Zero Code Error This applies when using the two's complement output coding option, in particular with the 2 x VREF input range as -VREF to +VREF biased about the VREF point. It is the deviation of the midscale transition (all 1s to all 0s) from the ideal VIN voltage, i.e., VREF - 1 LSB. Zero Code Error Match This is the difference in Zero Code Error between the two channels. Positive Gain Error This applies when using the two's complement output coding option, in particular with the 2 x VREF input range as -VREF to +VREF biased about the VREF point. It is the deviation of the last code transition (011 . . . 110) to (011 . . . 111) from the ideal (i.e., +VREF - 1 LSB) after the Zero Code Error has been adjusted out. Negative Gain Error This applies when using the two's complement output coding option, in particular with the 2 x VREF input range as -VREF to +VREF biased about the VREF point. It is the deviation of the first code transition (100 . . . 000) to (100 . . . 001) from the ideal (i.e., -VREF + 1 LSB) after the Zero Code Error error has been adjusted out. Track/Hold Acquisition Time The track/hold amplifier returns into track mode after the end of conversion. Track/Hold acquisition time is the time required for the output of the track/hold amplifier to reach its final value, within 1/2 LSB, after the end of conversion. Signal to (Noise + Distortion) Ratio 2 THD ( dB ) = 20 log 2 2 2 where V1 is the rms amplitude of the fundamental and V2, V3, V4, V5, and V6 are the rms amplitudes of the second through the sixth harmonics. Peak Harmonic or Spurious Noise Peak harmonic or spurious noise is defined as the ratio of the rms value of the next largest component in the ADC output spectrum (up to fS/2 and excluding dc) to the rms value of the fundamental. Normally, the value of this specification is determined by the largest harmonic in the spectrum, but for ADCs where the harmonics are buried in the noise floor, it will be a noise peak. Intermodulation Distortion With inputs consisting of sine waves at two frequencies, fa and fb, any active device with nonlinearities will create distortion products at sum and difference frequencies of mfa nfb where m, n = 0, 1, 2, 3, etc. Intermodulation distortion terms are those for which neither m nor n are equal to zero. For example, the second order terms include (fa + fb) and (fa - fb), while the third order terms include (2fa + fb), (2fa - fb), (fa + 2fb), and (fa - 2fb). The AD7866 is tested using the CCIF standard where two input frequencies near the top end of the input bandwidth are used. In this case, the second order terms are usually distanced in frequency from the original sine waves while the third order terms are usually at a frequency close to the input frequencies. As a result, the second and third order terms are specified separately. The calculation of the intermodulation distortion is as per the THD specification where it is the ratio of the rms sum of the individual distortion products to the rms amplitude of the sum of the fundamentals expressed in dB. Channel-to-Channel Isolation Channel-to-channel isolation is a measure of the level of crosstalk between channels. It is measured by applying a full-scale (2 x VREF), 455 kHz sine wave signal to all non selected input channels and determining how much that signal is attenuated in the selected channel with a 10 kHz signal (0 V to VREF). The figure given is the worst-case across all four channels for the AD7866. PSR (Power Supply Rejection) See Performance Curves section. This is the measured ratio of signal to (noise + distortion) at the output of the A/D converter. The signal is the rms amplitude of the fundamental. Noise is the sum of all nonfundamental signals REV. 0 2 V2 + V3 + V4 + V5 + V6 V1 -7- AD7866 Pf = Power at frequency f in ADC output, PfS = power at frequency fS coupled onto the ADC AVDD supply. Here a 100 mV peak-to-peak sine wave is coupled onto the AVDD supply while the digital supply is left unaltered. TPCs 3a and 3b show the PSRR of the AD7866 when there is no decoupling on the supply, while TPCs 4a and 4b show the PSRR with decoupling capacitors of 10 F and 0.1 F on the supply. PERFORMANCE CURVES TPC 1 shows a typical FFT plot for the AD7866 at 1 MHz sample rate and 300 kHz input frequency. TPC 2 shows the signal-to(noise + distortion) ratio performance versus input frequency for various supply voltages while sampling at 1 MSPS with an SCLK of 20 MHz. TPC 3a through TPC 4b show the power supply rejection ratio versus AVDD supply ripple frequency for the AD7866 under different conditions. The power supply rejection ratio is defined as the ratio of the power in the ADC output at full-scale frequency f, to the power of a 100 mV sine wave applied to the ADC AVDD supply of frequency fS: TPC 5 and TPC 6 show typical DNL and INL plots for the AD7866. TPC 7 shows a graph of the total harmonic distortion versus analog input frequency for various source impedances. TPC 8 shows a graph of total harmonic distortion versus analog input frequency for various supply voltages. See Analog Input section. PSRR (dB) = 10 log (Pf/PfS) Typical Performance Characteristics 0 0 4098 POINT FFT fSAMPLE = 1MSPS -15 fIN = 300kHz SNR = 70.31dB THD = -85.47dB SFDR = -86.64dB -20 -30 PSRR - dB SNR - dB -35 100mV p-p SINEWAVE ON AVDD 2.5V EXT REFERENCE ON VREF TA = 25C -10 -55 -40 -50 VDD = 2.7V VDD = 5.25V -60 -75 -70 -80 -95 VDD = 4.75V -90 -115 0 50 100 150 200 250 300 350 FREQUENCY - kHz 400 450 -100 500 1M TPC 3a. PSRR vs. Supply Ripple Frequency, without Supply Decoupling 0 TA = 25 C 100mV p-p SINEWAVE ON AVDD 2.5V EXT REFERENCE ON DCAPA, DCAPB TA = 25C -10 -63 -20 -65 -67 -30 VDD = VDRIVE = 2.7V PSRR - dB SINAD - dB 10k 100k AVDD RIPPLE FREQUENCY - Hz 1k TPC 1. Dynamic Performance -61 VDD = 3.6V VDD = VDRIVE = 3.6V -69 -50 -60 VDD = 5.25V VDD = 2.7V -70 -71 -73 -40 VDD = VDRIVE = 5.25V -80 VDD = VDRIVE = 4.75V -90 VDD = 4.75V -75 10k VDD = 3.6V -100 100k 1000k 1k INPUT FREQUENCY - Hz TPC 2. SINAD vs. Input Frequency 10k 100k AVDD RIPPLE FREQUENCY - Hz 1M TPC 3b. PSRR vs. Supply Ripple Frequency, without Supply Decoupling -8- REV. 0 AD7866 1.0 0 100mV p-p SINEWAVE ON AVDD 2.5V EXT REFERENCE ON VREF TA = 25C -10 0.6 -30 0.4 -40 0.2 INL - LSB PSRR - dB -20 0.8 -50 -60 0.0 -0.2 VDD = 2.7V -70 -0.4 -80 -0.6 VDD = 3.6V -90 -0.8 -1.0 -100 10k 100k AVDD RIPPLE FREQUENCY - Hz 1k 500 0 1M 1000 TPC 4a. PSRR vs. Supply Ripple Frequency, with Supply Decoupling 2000 2500 ADC - Code 3000 3500 4000 TPC 6. DC INL Plot 0 -60 100mV p-p SINEWAVE ON AVDD 2.5V EXT REFERENCE ON DCAPA, DCAPB TA = 25C -10 -20 RIN = 100 TA = 25C VDD = 4.75V -65 RIN = 50 -30 -70 THD - dB -40 PSRR - dB 1500 -50 VDD = 2.7V -60 RIN = 10 -75 -80 -70 -80 -85 VDD = 3.6V -90 VDD = 4.75V -90 10k -100 1k 10k 100k AVDD RIPPLE FREQUENCY - Hz 1M 1000k TPC 7. THD vs. Analog Input Frequency for Various Source Impedances 1.0 -70 0.8 -72 0.6 -74 0.4 -76 0.2 -78 THD - dB DNL - LSB TPC 4b. PSRR vs. Supply Ripple Frequency, with Supply Decoupling 100k INPUT FREQUENCY - Hz 0 -0.2 TA = 25C VDD = VDRIVE = 2.7V VDD = VDRIVE = 3.6V -80 -82 -0.4 -84 -0.6 -86 -0.8 -88 VDD = VDRIVE = 5.25V VDD = VDRIVE = 4.75V -90 100k 10k INPUT FREQUENCY - Hz -1.0 0 500 1000 1500 2000 2500 ADC - Code 3000 3500 4000 TPC 5. DC DNL Plot REV. 0 1000k TPC 8. THD vs. Analog Input Frequency for Various Supply Voltages -9- AD7866 CIRCUIT INFORMATION CAPACITIVE DAC The AD7866 is a fast, micropower, dual 12-bit, single supply, A/D converter that operates from a 2.7 V to 5.25 V supply. When operated from either a 5 V supply or a 3 V supply, the AD7866 is capable of throughput rates of 1 MSPS when provided with a 20 MHz clock. A VIN SW1 CONTROL LOGIC B SW2 COMPARATOR The AD7866 contains two on-chip track/hold amplifiers, two successive-approximation A/D converters, and a serial interface with two separate data output pins, housed in a 20-lead TSSOP package, which offers the user considerable space-saving advantages over alternative solutions. The serial clock input accesses data from the part but also provides the clock source for each successive-approximation A/D converter. The analog input range for the part can be selected to be a 0 V to VREF input or a 2 x VREF input with either straight binary or two's complement output coding. The AD7866 has an on-chip 2.5 V reference which can be overdriven if an external reference is preferred. In addition, each ADC can be supplied with an individual separate external reference. The AD7866 also features power-down options to allow power saving between conversions. The power-down feature is implemented across the standard serial interface as described in the Modes of Operation section. CONVERTER OPERATION The AD7866 has two successive-approximation analog-to-digital converters, each based around a capacitive DAC. Figures 2 and 3 show simplified schematics of one of these ADCs. The ADC is comprised of control logic, a SAR, and a capacitive DAC, all of which are used to add and subtract fixed amounts of charge from the sampling capacitor to bring the comparator back into a balanced condition. Figure 2 shows the ADC during its acquisition phase. SW2 is closed and SW1 is in position A, the comparator is held in a balanced condition and the sampling capacitor acquires the signal on VA1 for example. AGND Figure 3. ADC Conversion Phase ANALOG INPUT Figure 4 shows an equivalent circuit of the analog input structure of the AD7866. The two diodes D1 and D2 provide ESD protection for the analog inputs. Care must be taken to ensure that the analog input signal never exceeds the supply rails by more than 300 mV. This will cause these diodes to become forwardbiased and start conducting current into the substrate. 10 mA is the maximum current these diodes can conduct without causing irreversible damage to the part. The capacitor C1 in Figure 4 is typically about 10 pF and can primarily be attributed to pin capacitance. The resistor R1 is a lumped component made up of the on resistance of a switch. This resistor is typically about 100 . The capacitor C2 is the ADC sampling capacitor and has a capacitance of 20 pF typically. For ac applications, removing high-frequency components from the analog input signal is recommended by use of an RC low-pass filter on the relevant analog input pin. In applications where harmonic distortion and signal-to-noise ratio are critical, the analog input should be driven from a low impedance source. Large source impedances will significantly affect the ac performance of the ADC. This may necessitate the use of an input buffer amplifier. The choice of the op amp will be a function of the particular application. VDD D1 CAPACITIVE DAC R1 C1 A VIN SW1 C2 VIN D2 CONTROL LOGIC B SW2 CONVERT PHASE - SWITCH OPEN TRACK PHASE - SWITCH CLOSED COMPARATOR AGND Figure 4. Equivalent Analog Input Circuit Figure 2. ADC Acquisition Phase When the ADC starts a conversion (see Figure 3), SW2 will open and SW1 will move to position B causing the comparator to become unbalanced. The Control Logic and the capacitive DAC are used to add and subtract fixed amounts of charge from the sampling capacitor to bring the comparator back into a balanced condition. When the comparator is rebalanced the conversion is complete. The Control Logic generates the ADC output code. Figures 10 and 11 show the ADC transfer functions. When no amplifier is used to drive the analog input the source impedance should be limited to low values. The maximum source impedance will depend on the amount of total harmonic distortion (THD) that can be tolerated. The THD will increase as the source impedance increases and performance will degrade (see TPC 7). Analog Input Ranges The analog input range for the AD7866 can be selected to be 0 V to VREF or 2 x VREF with either straight binary or two's complement output coding. The RANGE pin is used to select both the analog input range and the output coding, as shown in Figures 5 through 8. On the falling edge of CS, point A, the logic level of the RANGE pin is checked to determine the analog input range of the next conversion. If this pin is tied to a logic low then the -10- REV. 0 AD7866 analog input range will be 0 V to VREF and the output coding from the part will be straight binary (for the next conversion). If this pin is at a logic high when CS goes low, then the analog input range will be 2 x VREF and the output coding for the part will be two's complement. However, if after the falling edge of CS, the logic level of the RANGE pin has changed upon the eighth falling SCLK edge, point B, the output coding will change to the other option without any change in the analog input range. So for the next conversion, two's complement output coding could be selected with a 0 V to VREF input range, for example, if the RANGE pin is low upon the falling edge of CS and high upon the eighth falling SCLK edge, as shown in Figure 7. Figures 5 through 8 show examples of timing diagrams when selecting a particular analog input range with a particular output coding format. Table I also summarizes the required logic level of the RANGE pin for each selection. The Logic Input A0 is used to select the pair of channels to be converted simultaneously. The Logic state of this pin is also checked upon the falling edge of CS and the multiplexers are set up for the next conversion. If it is low, the following conversion will be performed on Channel 1 of each ADC; if it is high, the following conversion will be performed on Channel 2 of each ADC. Handling Bipolar Input Signals Figure 9 shows how useful the combination of the 2 x VREF input range and the two's complement output coding scheme is for handling bipolar input signals. If the bipolar input signal is biased about VREF and two's complement output coding is selected, then VREF becomes the zero code point, -VREF is negative fullscale and +VREF becomes positive full-scale, with a dynamic range of 2 x VREF. Transfer Functions The designed code transitions occur at successive integer LSB values (i.e., 1 LSB, 2 LSBs, etc.). The LSB size is = VREF/4096. The ideal transfer characteristic for the AD7866 when straight binary coding is selected is shown in Figure 10 and the ideal transfer characteristic for the AD7866 when two's complement coding is selected is shown in Figure 11. Table I. Analog Input and Output Coding Selection Range Level @ Point A1 Range Level @ Point B2 Input Range3 Output Coding3 Low High Low High Low High High Low 0 V to VREF VREF VREF VREF /2 VREF /2 0 V to 2 x VREF Straight Binary Two's Complement Two's Complement Straight Binary NOTES 1 Point A = Falling edge of CS. 2 Point B = Eighth falling edge of SCLK. 3 Selected for NEXT conversion. A B CS 0V TO V REF INPUT RANGE 1 8 16 1 16 SCLK RANGE DOUTA STRAIGHT BINARY DOUTB Figure 5. Selecting 0 V to VREF Input Range with Straight Binary Output Coding A B CS V REF V REF INPUT RANGE 1 8 16 1 16 SCLK RANGE DOUTA TWO'S COMPLEMENT DOUTB Figure 6. Selecting VREF VREF Input Range with Two's Complement Output Coding REV. 0 -11- AD7866 A B CS V /2 V REF /2 REF INPUT RANGE 1 8 16 1 16 SCLK RANGE DOUTA TWO'S COMPLEMENT DOUTB Figure 7. Selecting VREF/2 VREF/2 Input Range with Two's Complement Output Coding A B CS 0V TO 2 V REF INPUT RANGE 1 8 16 1 16 SCLK RANGE DOUTA STRAIGHT BINARY DOUTB Figure 8. Selecting 0 V to 2 x VREF Input Range with Straight Binary Output Coding VREF VDD 100nF VDD REF SELECT VREF R4 470nF V DCAPA VDRIVE DSP/P DCAPB 470nF VIN R2 0V TWO'S COMPLEMENT AD7866 R3 DOUT V +VREF R1 (= 2 VREF) VREF R1 = R2 = R3 = R4 -VREF 011 111 000 000 100 000 (= 0V) Figure 9. Handling Bipolar Signals with the AD7866 1LSB = 2 VREF/4096 011...111 011...110 ADC CODE ADC CODE 111...111 111...110 111...000 1LSB = VREF/4096 011...111 000...001 000...000 111...111 100...010 100...001 100...000 000...010 000...001 000...000 0V 1LSB ANALOG INPUT -VREF + 1LSB +VREF - 1LSB VREF - 1LSB ANALOG INPUT VREF - 1LSB Figure 10. Straight Binary Transfer Characteristic with 0 V to VREF Input Range Figure 11. Two's Complement Transfer Characteristic with VREF VREF Input Range -12- REV. 0 AD7866 Digital Inputs The digital inputs applied to the AD7866 are not limited by the maximum ratings which limit the analog inputs. Instead, the digital inputs applied can go to 7 V and are not restricted by the VDD + 0.3 V limit as on the analog inputs. See maximum ratings. 470nF DCAPA AD7866 470nF Another advantage of SCLK, RANGE, REF SELECT, A0, and CS not being restricted by the VDD + 0.3 V limit is the fact that power supply sequencing issues are avoided. If one of these digital inputs is applied before VDD, there is no risk of latch-up as there would be on the analog inputs if a signal greater than 0.3 V were applied prior to VDD. 100nF DCAPB VREF Figure 12. Relevant Connections When Using Internal Reference Figure 13 shows the connections required when an external reference is applied to DCAPA and DCAPB. In this example the same reference voltage is applied at each pin; however, a different voltage may be applied at each of these pins for each on-chip ADC. An external reference applied at these pins may have a range from 2 V to 3 V but for specified performance it must be within 1% of 2.5 V. Figure 14 shows the third option which is to overdrive the internal reference through the VREF pin. This is possible due to the series resistance from the VREF pin to the internal reference. This external reference can have a range from 2 V to 3 V, but again to get as close as possible to the specified performance a 2.5 V reference is desirable. DCAPA and DCAPB decouple each on-chip reference buffer as shown in Figure 15. If the on-chip 2.5 V reference is being used, and is to be applied externally to the rest of the system, it may VDRIVE The AD7866 also has the VDRIVE feature. VDRIVE controls the voltage at which the serial interface operates. VDRIVE allows the ADC to easily interface to both 3 V and 5 V processors. For example, if the AD7866 was operated with a VDD of 5 V, the VDRIVE pin could be powered from a 3 V supply, allowing a large dynamic range with low voltage digital processors. For example, the AD7866 could be used with the 2 x VREF input range, with a VDD of 5 V while still being able to interface to 3 V digital parts. REFERENCE SECTION The AD7866 has various reference configuration options. The REF SELECT pin allows the choice of using an internal 2.5 V reference or applying an external reference, or even an individual external reference for each on-chip ADC if desired. If the REF SELECT pin is tied to AGND then the on-chip 2.5 V reference is used as the reference source for both ADC A and ADC B. In addition, pins VREF, DCAPA, and DCAPB must be tied to decoupling capacitors (100 nF, 470 nF, and 470 nF recommended, respectively). If the REF SELECT pin is tied to a logic high, then an external reference can be supplied to the AD7866 through the VREF pin to overdrive the on-chip reference, in which case decoupling capacitors are required on DCAPA and DCAPB again. However, if the VREF pin is tied to AGND while REF SELECT is tied to a logic low, then an individual external reference can be applied to both ADC A and ADC B through pins DCAPA and DCAPB, respectively. Table II summarizes these reference options. DCAPA VREF AD7866 DCAPB VREF REF SELECT Figure 13. Relevant Connections When Applying an External Reference at DCAP A and/or DCAP B 470nF 470nF For specified performance the last configuration was used, with the same reference voltage applied to both DCAPA and DCAPB. The connections for the relevant reference pins are shown in the typical connection diagrams. If the internal reference is being used, the VREF pin should have a 100 nF capacitor connected to AGND very close to the VREF pin. These connections are shown in Figure 12. VREF DCAPA AD7866 DCAPB VREF VDRIVE REF SELECT Figure 14. Relevant Connections When Applying an External Reference at VREF Table II. Reference Selection Reference Option REF SELECT VREF1 DCAP A and DCAPB2 Internal Externally through VREF Externally through DCAP A and/or DCAPB Low High Decoupling Capacitor External Reference Decoupling Capacitor Decoupling Capacitor Low AGND External Reference A and/or Reference B NOTES 1 Recommended value of decoupling capacitor = 100 nF. 2 Recommended value of decoupling capacitor = 470 nF. REV. 0 -13- AD7866 EXT REF 100nF to provide flexible power management options. These options can be chosen to optimize the power dissipation/throughput rate ratio for differing application requirements. EXT REF VREF DCAPA 470nF Normal Mode ADC A 2.5V REF This mode is intended for fastest throughput rate performance as the user does not have to worry about any power-up times with the AD7866 remaining fully powered all the time. Figure 16 shows the general diagram of the operation of the AD7866 in this mode. BUF A ADC B be taken from either the VREF pin or one of the DCAPA or DCAPB pins. If it is taken from the VREF pin, it must be buffered before being applied elsewhere as it will not be capable of sourcing more than a few microamps. If the reference voltage is taken from either the DCAPA pin or DCAPB pin, a buffer is not strictly necessary. Either pin is capable of sourcing current in the region of 100 A; however, the larger the source current requirement, the greater the voltage drop seen at the pin. The output impedance of each of these pins is typically 50 . In addition, this point represents the actual voltage applied to the ADC internally so any voltage drop due to the current load or disturbance due to a dynamic load will directly affect the ADC conversion. For this reason, if a large current source is necessary, or a dynamic load is present, it is recommended to use a buffer on the output to drive a device. The conversion is initiated on the falling edge of CS as described in the Serial Interface section. To ensure the part remains fully powered up at all times CS must remain low until at least 10 SCLK falling edges have elapsed after the falling edge of CS. If CS is brought high any time after the 10th SCLK falling edge, but before the 16th SCLK falling edge, the part will remain powered up but the conversion will be terminated and DOUTA and DOUTB will go back into three-state. Sixteen serial clock cycles are required to complete the conversion and access the conversion result. The DOUT line will not return to three-state after 16 SCLK cycles have elapsed, but instead when CS is brought high again. If CS is left low for a further 16 SCLK cycles then the result from the other ADC on board will also be accessed on the same DOUT line as shown in Figure 22 (see Serial Interface section). The STATUS bits provided prior to each conversion result will identify which ADC the following result will be from. Once 32 SCLK cycles have elapsed, the DOUT line will return to three-state on the 32nd SCLK falling edge. If CS is brought high prior to this, the DOUT line will return to three-state at that point. Hence, CS may idle low after 32 SCLK cycles, until it is brought high again sometime prior to the next conversion (effectively idling CS low), if so desired, as the bus will still return to three-state upon completion of the dual result read. Examples of suitable external reference devices that may be applied at pins VREF, DCAPA, or DCAPB are the AD780, REF192, REF43, or AD1582. Once a data transfer is complete and DOUTA and DOUTB have returned to three-state, another conversion can be initiated after the quiet time, tQUIET, has elapsed by bringing CS low again. MODES OF OPERATION Partial Power-Down Mode BUF B DCAPB 470nF EXT REF Figure 15. Reference Circuit The mode of operation of the AD7866 is selected by controlling the (logic) state of the CS signal during a conversion. There are three possible modes of operation, Normal Mode, Partial Power-Down Mode, and Full Power-Down Mode. The point at which CS is pulled high after the conversion has been initiated will determine which power-down mode, if any, the device will enter. Similarly, if already in a power-down mode, CS can control whether the device will return to normal operation or remain in power-down. These modes of operation are designed This mode is intended for use in applications where slower throughput rates are required. Either the ADC is powered down between each conversion, or a series of conversions may be performed at a high throughput rate and the ADC is then powered down for a relatively long duration between these bursts of several conversions. When the AD7866 is in Partial Power-Down, all analog circuitry is powered down except for the on-chip reference and reference buffer. CS 1 10 16 SCLK DOUTA DOUTB STATUS BITS AND CONVERSION RESULT Figure 16. Normal Mode Operation -14- REV. 0 AD7866 To enter Partial Power-Down, the conversion process must be interrupted by bringing CS high anywhere after the second falling edge of SCLK and before the 10th falling edge of SCLK as shown in Figure 17. Once CS has been brought high in this window of SCLKs, the part will enter Partial Power-Down and the conversion that was initiated by the falling edge of CS will be terminated and DOUTA and DOUTB will go back into three-state. If CS is brought high before the second SCLK falling edge, the part will remain in normal mode and will not power down. This will avoid accidental power-down due to glitches on the CS line. in Full Power-Down, all analog circuitry is powered down. Full Power-Down is entered in a similar way as Partial Power-Down, except the timing sequence shown in Figure 17 must be executed twice. The conversion process must be interrupted in a similar fashion by bringing CS high anywhere after the second falling edge of SCLK and before the 10th falling edge of SCLK. The device will enter Partial Power Down at this point. To reach Full PowerDown, the next conversion cycle must be interrupted in the same way, as shown in Figure 19. Once CS has been brought high in this window of SCLKs, the part will power down completely. In order to exit this mode of operation and power the AD7866 up again, a dummy conversion is performed. On the falling edge of CS the device will begin to power up, and will continue to power up as long as CS is held low until after the falling edge of the 10th SCLK. In the case of an external reference, the device will be fully powered up once 16 SCLKs have elapsed and valid data will result from the next conversion as shown in Figure 18. If CS is brought high before the second falling edge of SCLK, the AD7866 will again go into partial power-down. This avoids accidental power-up due to glitches on the CS line; although the device may begin to power up on the falling edge of CS, it will power down again on the rising edge of CS. If the AD7866 is already in Partial Power-Down mode and CS is brought high between the second and tenth falling edges of SCLK, the device will enter Full Power-Down mode. For more information on the power-up times associated with partial powerdown in various configurations, see the Power-Up Times section. NOTE: It is not necessary to complete the 16 SCLKs once CS has been brought high to enter a power-down mode. Full Power-Down Mode This mode is intended for use in applications where slower throughput rates are required than those in the Partial PowerDown mode, as power-up from a Full Power-Down takes substantially longer than that from partial power-down. This mode is more suited to applications where a series of conversions performed at a relatively high throughput rate would be followed by a long period of inactivity and hence power-down. When the AD7866 is To exit Full Power-Down, and power the AD7866 up again, a dummy conversion is performed, as when powering up from Partial Power-Down. On the falling edge of CS the device will begin to power up, and will continue to power up as long as CS is held low until after the falling edge of the 10th SCLK. The power-up time required must elapse before a conversion can be initiated as shown in Figure 20. See the Power-up Times section for the power-up times associated with the AD7866. POWER-UP TIMES The AD7866 has two power-down modes, Partial PowerDown and Full Power-Down, which are described in detail in the Modes of Operation section. This section deals with the power-up time required when coming out either of these modes. It should be noted that the power-up times quoted apply with the recommended capacitors on the VREF, D CAPA, and D CAPB pins in place. To power up from Full Power-Down approximately 4 ms should be allowed from the falling edge of CS, shown in Figure 20 as tPOWER UP. Powering up from Partial Power-Down requires much less time. If the internal reference is being used, the power-up CS 1 2 10 16 SCLK THREE-STATE DOUTA DOUTB Figure 17. Entering Partial Power-Down Mode THE PART MAY BE FULLY POWERED UP; SEE POWER-UP TIMES SECTION THE PART BEGINS TO POWER UP CS 1 10 16 1 16 SCLK A DOUTA DOUTB INVALID DATA VALID DATA Figure 18. Exiting Partial Power-Down Mode REV. 0 -15- AD7866 THE PART BEGINS TO POWER-UP THE PART ENTERS PARTIAL POWER-DOWN THE PART ENTERS FULL POWER-DOWN CS 1 10 2 16 1 10 2 16 SCLK THREE-STATE DOUTA THREE-STATE INVALID DATA DOUTB INVALID DATA Figure 19. Entering Full Power-Down Mode THE PART IS FULLY POWERED UP THE PART BEGINS TO POWER UP tPOWER UP CS 1 10 16 1 16 SCLK DOUTA DOUTB INVALID DATA VALID DATA Figure 20. Exiting Full Power-Down Mode time is typically 4 s; but if an external reference is being used, the power-up time is typically 1 s. This means that with any frequency of SCLK up to 20 MHz, one dummy cycle will always be sufficient to allow the device to power up from Partial Power-Down (see Figure 18) when using an external reference. Once the dummy cycle is complete, the ADC will be fully powered up and the input signal will be acquired properly. A dummy cycle may well be sufficient to power up the part when using an internal reference also, provided the SCLK is slow enough to allow the required powerup time to elapse before a valid conversion is requested. In addition to this, it should be ensured that the quiet time, tQUIET, has still been allowed from the point where the bus goes back into threestate after the dummy conversion to the next falling edge of CS. Alternatively, instead of slowing the SCLK to make the dummy cycle long enough, the CS high time could just be extended to include the required power-up time as in Figure 20 when powering up from Full Power-Down. The difference in the power-up time needed, when coming out of Partial Power-Down, between the two cases where an internal or external reference is being used, is primarily due to the on-chip reference buffers. These power down in Partial Power-Down mode and must be powered up again if the internal reference is being used, but do not need to be powered up again if an external reference is being used. The time needed to power these buffers up is not just their own power-up time but also the time required to charge up the decoupling capacitors present on the pins VREF, DCAPA, and DCAPB. It should also be noted that when powering up from Partial Power-Down, the track-and-hold, which was in hold mode while the part was powered down, returns to track mode after the first SCLK edge the part receives after the falling edge of CS. This is shown as point A in Figure 18. When power supplies are first applied to the AD7866, the ADC may power up in either of the power-down modes or the normal mode. Because of this, it is best to allow a dummy cycle to elapse to ensure the part is fully powered up before attempting a valid conversion. Likewise, if it is intended to keep the part in the partial power-down mode immediately after the supplies are applied, two dummy cycles must be initiated. The first dummy cycle must hold CS low until after the 10th SCLK falling edge (see Figure 16); in the second cycle CS must be brought high before the 10th SCLK edge but after the second SCLK falling edge (see Figure 17). Alternatively, if it is intended to place the part in Full PowerDown mode when the supplies have been applied, three dummy cycles must be initiated. The first dummy cycle must hold CS low until after the 10th SCLK falling edge (see Figure 16); the second and third dummy cycles place the part in Full PowerDown (see Figure 19). See the Modes of Operation section. Once supplies are applied to the AD7866, enough time must be allowed for any external reference to power up and charge any reference capacitor to its final value, or enough time must be allowed for the internal reference buffer to charge the various reference buffer decoupling capacitors to their final values. Then, to place the AD7866 in normal mode, a dummy cycle (1 s to 4 s approximately) should be initiated. If the first valid conversion is then performed directly after the dummy conversion, care must be taken to ensure that adequate acquisition time has been allowed. As mentioned earlier, when powering up from the power-down mode, the part will return to track upon the first SCLK edge applied after the falling edge of CS. However, when the ADC powers up initially after supplies are applied, the trackand-hold will already be in track. This means that (assuming one has the facility to monitor the ADC supply current) if the ADC powers up in the desired mode of operation and thus a dummy cycle is not required to change mode, then neither is a dummy cycle required to place the track-and-hold into track. If no current monitoring facility is available, the relevant dummy cycle(s) should be performed to ensure the part is in the required mode. -16- REV. 0 AD7866 24 mW for 2 s during each conversion cycle. For the remainder of the conversion cycle, 8 s, the part remains in Partial Power-Down mode. The AD7866 can be said to dissipate 2.8 mW for the remaining 8 s of the conversion cycle. If the throughput rate is 100 kSPS, the cycle time is 10 s and the average power dissipated during each cycle is (2/10) (24 mW) + (8/10) (2.8 mW) = 7.04 mW. If VDD = 3 V, SCLK = 20 MHz and the device is again in Partial Power-Down mode between conversions, the power dissipated during normal operation is 8.4 mW. The AD7866 can be said to dissipate 8.4 mW for 2 ms during each conversion cycle and 1.68 mW for the remaining 8 ms where the part is in Partial Power-Down. With a throughput rate of 100 kSPS, the average power dissipated during each conversion cycle is (2/10) (8.4 mW) + (8/10) (1.68 mW) = 3.02 mW. Figure 21 shows the power versus throughput rate when using the Partial Power-Down mode between conversions with both 5 V and 3 V supplies for the AD7866. POWER VERSUS THROUGHPUT RATE By using the Partial Power-Down mode on the AD7866 when not converting, the average power consumption of the ADC decreases at lower throughput rates. Figure 21 shows how as the throughput rate is reduced, the part remains in its partial power-down state longer and the average power consumption over time drops accordingly. 100 VDD = 5V SCLK = 20MHz POWER - mW 10 VDD = 3V SCLK = 20MHz 1 0.1 SERIAL INTERFACE Figure 22 shows the detailed timing diagram for serial interfacing to the AD7866. The serial clock provides the conversion clock and also controls the transfer of information from the AD7866 during conversion. 0.01 50 0 100 150 200 250 300 350 THROUGHPUT - kSPS The CS signal initiates the data transfer and conversion process. The falling edge of CS puts the track-and-hold into hold mode, takes the bus out of three-state and the analog input is sampled at this point. The conversion is also initiated at this point and will require 16 SCLK cycles to complete. Once 13 SCLK falling edges have elapsed, then the track and hold will go back into track on the next SCLK rising edge as shown in Figure 22 at point B. On the rising edge of CS, the conversion will be terminated and DOUTA and DOUTB will go back into three-state. If CS is not brought high, but instead held low for a further 16 SCLK cycles on Figure 21. Power vs. Throughput for Partial Power-Down For example, if the AD7866 is operated in a continuous sampling mode with a throughput rate of 100 kSPS and an SCLK of 20 MHz (VDD = 5 V), and the device is placed in Partial Power-Down mode between conversions, then the power consumption is calculated as follows. The maximum power dissipation during normal operation is 24 mW (VDD = 5 V). If the power-up time allowed from Partial Power-Down is one dummy cycle, i.e., 1 s, (assumes use of an external reference) and the remaining conversion time is another cycle, i.e., 1 s, then the AD7866 can be said to dissipate CS t6 t2 1 SCLK 2 3 4 DOUTB THREESTATE 0 13 RANGE A0 A/B 14 15 t5 t7 t4 t3 DOUTA B 5 16 t8 t QUIET DB11 DB2 DB10 DB1 DB0 THREESTATE 1 LEADING ZERO, 3 STATUS BITS Figure 22. Serial Interface Timing Diagram CS t6 t2 2 1 SCLK 3 4 5 14 15 32 17 16 t5 t3 DOUTA THREESTATE 0 RANGE t4 A0/ A0 1 LEADING ZERO, 3 STATUS BITS ZERO DB11A t9 t7 DB1A DB0A ZERO RANGE A0/ A0 ONE DB11B 1 LEADING ZERO, 3 STATUS BITS Figure 23. Reading Data from Both ADCs on One DOUT Line REV. 0 -17- DB1B DB0B THREESTATE AD7866 Table III. STATUS Bit Description Bit Bit Name Comment 15 14 ZERO RANGE 13 A0 12 A/B Leading Zero. This bit will always be a zero output. The polarity of this bit reflects the analog input range that has been selected with the RANGE pin. If it is a 0, it means that in the previous transfer upon the falling edge of the CS, the range pin was at a logic low providing an analog input range from 0 V to VREF for this conversion. If it is a 1, it means that in the previous transfer upon the falling edge of CS, the RANGE pin was at a logic high resulting in an analog input range of 2 x VREF selected for this conversion. See Analog Input section. This bit indicates on which channel the conversion is being performed, Channel 1 or Channel 2 of the ADC in question. If this bit is a 0, the conversion result will be from Channel 1 of the ADC, and if it is a 1, the result will be from Channel 2 of the ADC in question. This bit indicates which ADC the conversion result is from. If this bit is a 0, the result is from ADC A; and if it is a 1, the result is from ADC B. This is especially useful if only one serial port is available for use and one DOUT line is used, as shown in Figure 23. DOUTA, the data from conversion B will be output on DOUTA. Likewise, if CS is held low for a further 16 SCLK cycles on DOUTB, the data from conversion A will be output on DOUTB. This is illustrated in Figure 23 where the case for DOUTA is shown. Note that in this case the DOUT line in use will go back into three-state on the 32nd SCLK rising edge or the rising edge of CS, whichever occurs first. The SPORT0 control register should be set up as follows: Sixteen serial clock cycles are required to perform the conversion process and to access data from one conversion on either data line of the AD7866. CS going low provides the leading zero to be read in by the microcontroller or DSP. The remaining data is then clocked out by subsequent SCLK falling edges, beginning with the first of three data STATUS bits, thus the first falling clock edge on the serial clock has the leading zero provided and also clocks out the first of three STATUS bits. The final bit in the data transfer is valid on the 16th falling edge, having being clocked out on the previous (15th) falling edge. In applications with a slower SCLK, it is possible to read in data on each SCLK rising edge, i.e., the first rising edge of SCLK after the CS falling edge would have the leading zero provided and the 15th rising SCLK edge would have DB0 provided.The three STATUS bits that follow the leading zero provide information with respect to the conversion result that follows them on the DOUT line in use. Table III shows how these identification bits can be interpreted. MICROPROCESSOR INTERFACING The serial interface on the AD7866 allows the parts to be directly connected to a range of many different microprocessors. This section explains how to interface the AD7866 with some of the more common microcontroller and DSP serial interface protocols. AD7866 to ADSP-218x The ADSP-218x family of DSPs are directly interfaced to the AD7866 without any glue logic required. The VDRIVE pin of the AD7866 takes the same supply voltage as that of the ADSP-218x. This allows the ADC to operate at a higher supply voltage than the serial interface, i.e., ADSP-218x, if necessary. This example shows both DOUT A and DOUT B of the AD7866 connected to both serial ports of the ADSP-218x. TFSW = RFSW = 1, Alternate Framing INVRFS = INVTFS = 1, Active Low Frame Signal DTYPE = 00, Right Justify Data SLEN = 1111, 16-Bit Data Words ISCLK = 1, Internal Serial Clock TFSR = RFSR = 1, Frame Every Word IRFS = 0 ITFS = 1 The SPORT1 control register should be set up as follows: TFSW = RFSW = 1, Alternate Framing INVRFS = INVTFS = 1, Active Low Frame Signal DTYPE = 00, Right Justify Data SLEN = 1111, 16-Bit Data Words ISCLK = 0, External Serial Clock TFSR = RFSR = 1, Frame Every Word IRFS = 0 ITFS = 1 To implement the power-down modes on the AD7866 SLEN should be set to 1001 to issue an 8-bit SCLK burst. The connection diagram is shown in Figure 24. The ADSP-218x has the TFS0 and RFS0 of the SPORT0 and the RFS1 of SPORT1 tied together, with TFS0 set as an output and both RFS0 and RFS1 set as inputs. The DSP operates in Alternate Framing Mode and the SPORT control register is set up as described. The Frame synchronization signal generated on the TFS is tied to CS and as with all signal processing applications equidistant sampling is necessary. However, in this example, the timer interrupt is used to control the sampling rate of the ADC and under certain conditions, equidistant sampling may not be achieved. The Timer and other registers are loaded with a value that will provide an interrupt at the required sample interval. When an interrupt is received, a value is transmitted with TFS/DT (ADC control word). The TFS is used to control the RFS and hence the reading of data. The frequency of the serial clock is set in the SCLKDIV register. When the instruction to transmit with TFS is given, (i.e., AX0 = TX0), the state of the SCLK is checked. The DSP will wait until the SCLK has gone High, Low, and High before transmission will start. If the timer and SCLK values are chosen such that the instruction to transmit occurs on or near the rising edge of SCLK, the data may be transmitted or it may wait until the next clock edge. -18- REV. 0 AD7866 For example, if the ADSP-2189 had a 20 MHz crystal, such that it had a master clock frequency of 40 MHz then the master cycle time would be 25 ns. If the SCLKDIV register is loaded with the value 3, a SCLK of 5 MHz is obtained, and eight master clock periods will elapse for every 1 SCLK period. Depending on the throughput rate selected, if the timer register was loaded with the value, say 803, (803 + 1 = 804) 100.5 SCLKs will occur between interrupts and subsequently between transmit instructions. This situation will result in non-equidistant sampling as the transmit instruction is occurring on a SCLK edge. If the number of SCLKs between interrupts is a whole integer figure of N, equidistant sampling will be implemented by the DSP. ADSP-21xx* AD7866* SCLK SCLK0 SCLK1 CS TFS0 RFS0 RSF1 DOUTA DR0 DOUTB DR1 VDRIVE *ADDITIONAL PINS OMITTED FOR CLARITY VDD Figure 24. Interfacing the AD7866 to the ADSP-218x AD7866* The connection diagram is shown in Figure 25. It should be noted that for signal processing applications, it is imperative that the frame synchronization signal from the TMS320C541 will provide equidistant sampling. The VDRIVE pin of the AD7866 takes the same supply voltage as that of the TMS320C541. This allows the ADC to operate at a higher voltage than the serial interface, i.e., TMS320C541, if necessary. AD7866 to DSP-563xx The connection diagram in Figure 26 shows how the AD7866 can be connected to the ESSI (Synchronous Serial Interface) of the DSP-563xx family of DSPs from Motorola. Each ESSI (two on-board) is operated in Synchronous Mode (Bit SYN = 1 in CRB register) with internally generated word length frame sync for both Tx and Rx (bits FSL1 = 0 and FSL0 = 0 in CRB). Normal operation of the ESSI is selected by making MOD = 0 in the CRB. Set the word length to 16 by setting bits WL1 = 1 and WL0 = 0 in CRA. To implement the power-down modes on the AD7866 the word length can be changed to eight bits by setting bits WL1 = 0 and WL0 = 0 in CRA. The FSP Bit in the CRB should be set to 1 so the frame sync is negative. It should be noted that for signal processing applications, it is imperative that the frame synchronization signal from the DSP-563xx will provide equidistant sampling. In the example shown in Figure 26, the serial clock is taken from the ESSI0 so the SCK0 pin must be set as an output, SCKD = 1, while the SCK1 pin is set up as an input, SCKD = 0. The frame sync signal is taken from SC02 on ESSI0, so SCD2 = 1, while on ESSI1, SCD2 = 0 so SC12 is configured as an input. The VDRIVE pin of the AD7866 takes the same supply voltage as that of the DSP-563xx. This allows the ADC to operate at a higher voltage than the serial interface, i.e., DSP-563xx, if necessary. TMS320C541* SCLK CLKX0 AD7866* CLKR0 DSP-563xx* SCLK CLKX1 SCK0 SCK1 CLKR1 DOUTA DR0 DOUTB DR1 CS VDRIVE DOUTA SRD0 DOUTB SRD1 CS SC02 FSX0 FSR0 SC12 FSR1 VDRIVE *ADDITIONAL PINS OMITTED FOR CLARITY VDD *ADDITIONAL PINS OMITTED FOR CLARITY Figure 25. Interfacing the AD7866 to the TMS320C541 AD7866 to TMS320C541 The serial interface on the TMS320C541 uses a continuous serial clock and frame synchronization signals to synchronize the data transfer operations with peripheral devices like the AD7866. The CS input allows easy interfacing between the TMS320C541 and the AD7866 without any glue logic required. The serial ports of the TMS320C541 are set up to operate in burst mode with internal CLKX (Tx serial clock on serial port 0) and FSX0 (Tx frame sync from serial port 0). The serial port control registers (SPC) must have the following setup: SPC0: FO = 0, FSM = 1, MCM = 1 and TxM = 1 SPC1: FO = 0, FSM = 1, MCM = 0 and TxM = 0 The format bit, FO, may be set to 1 to set the word length to 8 bits, in order to implement the power-down modes on the AD7866. REV. 0 VDD Figure 26. Interfacing to the DSP-563xx APPLICATION HINTS Grounding and Layout The analog and digital supplies to the AD7866 are independent and separately pinned out to minimize coupling between the analog and digital sections of the device. The AD7866 has very good immunity to noise on the power supplies as can be seen by the PSRR vs. Supply Ripple Frequency plots, TPC 3a - TPC 4b. However, care should still be taken with regard to grounding and layout. The printed circuit board that houses the AD7866 should be designed such that the analog and digital sections are separated and confined to certain areas of the board. This facilitates the use of ground planes that can be easily separated. A minimum etch technique is generally best for ground planes as it gives the best -19- AD7866 Inductance (ESI), such as common ceramic or surface mount types, which provide a low impedance path to ground at high frequencies to handle transient currents due to internal logic switching. Figure 27 shows the recommended supply decoupling scheme. For information on the decoupling requirements of each reference configuration, see the Reference section. Avoid running digital lines under the device as these will couple noise onto the die. The analog ground plane should be allowed to run under the AD7866 to avoid noise coupling. The power supply lines to the AD7866 should use as large a trace as possible to provide low impedance paths and reduce the effects of glitches on the power supply line. Fast switching signals like clocks should be shielded with digital ground to avoid radiating noise to other sections of the board, and clock signals should never be run near the analog inputs. Avoid crossover of digital and analog signals. Traces on opposite sides of the board should run at right angles to each other. This will reduce the effects of feedthrough through the board. A microstrip technique is by far the best but is not always possible with a double-sided board. In this technique, the component side of the board is dedicated to ground planes while signals are placed on the solder side. 10F AVDD DVDD AGND AGND DGND 0.1F 0.1F C02672-0-1/02(0) shielding. Both AGND pins of the AD7866 should be sunk in the AGND plane. Digital and analog ground planes should be joined at only one place. If the AD7866 is in a system where multiple devices require an AGND-to-DGND connection, the connection should still be made at one point only, a star ground point that should be established as close as possible to the AD7866. 10F VDRIVE AD7866 0.1F Figure 27. Recommended Supply Decoupling Scheme Evaluating the AD7866 Performance The recommended layout for the AD7866 is outlined in the evaluation board for the AD7866. The evaluation board package includes a fully assembled and tested evaluation board, documentation, and software for controlling the board from the PC via the EVALBOARD CONTROLLER. The EVAL-BOARD CONTROLLER can be used in conjunction with the AD7866 Evaluation board, as well as many other Analog Devices evaluation boards ending in the CB designator, to demonstrate/evaluate the ac and dc performance of the AD7866. Good decoupling is also important. All analog supplies should be decoupled with 10 F tantalum in parallel with 0.1 F capacitors to AGND. All digital supplies should have at least a 0.1 F disc ceramic capacitor to DGND. VDRIVE should have a 0.1 F ceramic capacitor to DGND. To achieve the best from these decoupling components, they must be placed as close as possible to the device, ideally right up against the device. The 0.1 F capacitors should have low Effective Series Resistance (ESR) and Effective Series The software allows the user to perform ac (fast Fourier transform) and dc (histogram of codes) tests on the AD7866. OUTLINE DIMENSIONS Dimensions shown in inches and (mm). 20-Lead Thin Shrink Small Outline Package (RU-20) 0.260 (6.60) 0.252 (6.40) 20 11 PRINTED IN U.S.A. 0.177 (4.50) 0.169 (4.30) 0.256 (6.50) 0.246 (6.25) 1 10 PIN 1 0.006 (0.15) 0.002 (0.05) SEATING PLANE 0.0433 (1.10) MAX 0.0256 (0.65) 0.0118 (0.30) BSC 0.0075 (0.19) 0.0079 (0.20) 0.0035 (0.090) -20- 8 0 0.028 (0.70) 0.020 (0.50) REV. 0