24-Bit Capacitance-to-Digital Converter with Temperature Sensor AD7747 FEATURES GENERAL DESCRIPTION Capacitance-to-digital converter New standard in single chip solutions Interfaces to single or differential grounded sensors Resolution down to 20 aF (that is, up to 19.5-bit ENOB) Accuracy: 10 fF Linearity: 0.01% Common-mode (not changing) capacitance up to 17 pF Full-scale (changing) capacitance range 8 pF Update rate: 5 Hz to 45 Hz Simultaneous 50 Hz and 60 Hz rejection at 8.1 Hz update Active shield for shielding sensor connection Temperature sensor on-chip Resolution: 0.1C, accuracy: 2C Voltage input channel Internal clock oscillator 2-wire serial interface (I2C(R) compatible) Power 2.7 V to 5.25 V single-supply operation 0.7 mA current consumption Operating temperature: -40C to +125C 16-lead TSSOP package The AD7747 is a high-resolution, - capacitance-to-digital converter (CDC). The capacitance to be measured is connected directly to the device inputs. The architecture features inherent high resolution (24-bit no missing codes, up to 19.5-bit effective resolution), high linearity (0.01%), and high accuracy (10 fF factory calibrated). The AD7747 capacitance input range is 8 pF (changing), and it can accept up to 17 pF common-mode capacitance (not changing), which can be balanced by a programmable on-chip digital-to-capacitance converter (CAPDAC). APPLICATIONS The AD7747 has a 2-wire, I2C-compatible serial interface. The part can operate with a single power supply of 2.7 V to 5.25 V. It is specified over the automotive temperature range of -40C to +125C and is housed in a 16-lead TSSOP package. The AD7747 is designed for single-ended or differential capacitive sensors with one plate connected to ground. For floating (not grounded) capacitive sensors, the AD7745 or AD7746 are recommended. The part has an on-chip temperature sensor with a resolution of 0.1C and accuracy of 2C. The on-chip voltage reference and the on-chip clock generator eliminate the need for any external components in capacitive sensor applications. The part has a standard voltage input that, together with the differential reference input, allows easy interface to an external temperature sensor, such as an RTD, thermistor, or diode. Automotive, industrial, and medical systems for Pressure measurement Position sensing Proximity sensing Level sensing Flow metering Impurity detection FUNCTIONAL BLOCK DIAGRAM VDD TEMP SENSOR CLOCK GENERATOR VIN(+) VIN(-) 24-BIT - GENERATOR MUX AD7747 I2C SERIAL INTERFACE DIGITAL FILTER CIN1(+) CONTROL LOGIC CALIBRATION CIN1(-) SHLD SDA SCL RDY VOLTAGE REFERENCE CAP DAC 1 EXCITATION REFIN(+) REFIN(-) GND 05469-001 CAP DAC 2 Figure 1. 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. Specifications subject to change without notice. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respective owners. One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 www.analog.com Fax: 781.461.3113 (c)2007 Analog Devices, Inc. All rights reserved. AD7747 TABLE OF CONTENTS Features .............................................................................................. 1 Cap DAC A Register .................................................................. 19 Applications....................................................................................... 1 Cap DAC B Register................................................................... 19 General Description ......................................................................... 1 Cap Offset Calibration Register ............................................... 20 Functional Block Diagram .............................................................. 1 Cap Gain Calibration Register.................................................. 20 Revision History ............................................................................... 2 Volt Gain Calibration Register ................................................. 20 Specifications..................................................................................... 3 Circuit Description......................................................................... 21 Timing Specifications .................................................................. 5 Overview ..................................................................................... 21 Absolute Maximum Ratings............................................................ 6 Capacitance-to-Digital Converter............................................ 21 ESD Caution.................................................................................. 6 Active AC Shield Concept......................................................... 21 Pin Configuration and Function Descriptions............................. 7 CAPDAC ..................................................................................... 21 Typical Performance Characteristics ............................................. 8 Single-Ended Capacitive Configuration ................................. 22 Output Noise and Resolution Specifications .............................. 11 Differential Capacitive Configuration..................................... 22 Serial Interface ................................................................................ 12 Parasitic Capacitance ................................................................. 23 Read Operation........................................................................... 12 Parasitic Resistance .................................................................... 23 Write Operation.......................................................................... 12 Parasitic Serial Resistance ......................................................... 23 AD7747 Reset.............................................................................. 13 Capacitive Gain Calibration ..................................................... 23 General Call................................................................................. 13 Capacitive System Offset Calibration...................................... 24 Register Descriptions ..................................................................... 14 Internal Temperature Sensor .................................................... 24 Status Register ............................................................................. 15 External Temperature Sensor ................................................... 24 Cap Data Register....................................................................... 15 Voltage Input............................................................................... 25 VT Data Register ........................................................................ 15 VDD Monitor ................................................................................ 25 Cap Setup Register ..................................................................... 16 Typical Application Diagram.................................................... 26 VT Setup Register....................................................................... 16 Outline Dimensions ....................................................................... 27 EXC Setup Register .................................................................... 17 Ordering Guide .......................................................................... 27 Configuration Register .............................................................. 18 REVISION HISTORY 1/07--Revision 0: Initial Version Rev. 0 | Page 2 of 28 AD7747 SPECIFICATIONS VDD = 2.7 V to 3.6 V or 4.75 V to 5.25 V; GND = 0 V; EXC = VDD x 3/8; -40C to +125C, unless otherwise noted. Table 1. Parameter CAPACITIVE INPUT Conversion Input Range Integral Nonlinearity (INL)2 No Missing Codes2 Resolution, p-p Resolution Effective Output Noise, rms Absolute Error3 Offset Error4, 5 System Offset Calibration Range5 Offset Deviation over Temperature2 Gain Error6 Gain Drift vs. Temperature2 Power Supply Rejection2 Normal Mode Rejection5 CAPDAC Full Range Differential Nonlinearity (DNL) Drift vs. Temperature2 EXCITATION Frequency AC Voltage Across Capacitance Average DC Voltage Across Capacitance TEMPERATURE SENSOR7 Resolution Error2 VOLTAGE INPUT7 Differential VIN Voltage Range Absolute VIN Voltage2 Integral Nonlinearity (INL) No Missing Codes2 Resolution, p-p Min Typ Max 8.192 0.01 24 16.5 19.1 11.0 10 32 1 -23 17 0.4 0.02 -26 0.5 72 60 0.11 -29 4 Unit Test Conditions/Comments pF1 % of FSR1 Bit Bit Bit aF/Hz fF1 aF1 Factory calibrated pF fF % of FS1 ppm of FS/C fF/V dB dB 21 0.3 26 pF LSB ppm of FS/C 16 VDD x 3/8 VDD/2 kHz V V 0.1 0.5 2 C C C See Figure 6 25C, VDD = 5 V 50 Hz 1%, conversion time 124 ms 60 Hz 1%, conversion time 124 ms 6-bit CAPDAC See Figure 16 To be configured via digital interface VREF internal 2 16 V V ppm of FS Bit Bits Output Noise 3 V rms Offset Error Offset Drift vs. Temperature Full-Scale Error2, 9 Full-Scale Drift vs. Temperature 3 15 0.025 5 0.5 300 50 80 90 V nV/C % of FS ppm of FS/C ppm of FS/C nA/V pA/V/C dB dB Average VIN Input Current Analog VIN Input Current Drift Power Supply Rejection Conversion time 124 ms Conversion time 124 ms, see Table 5 Conversion time 124 ms, see Table 5 Conversion time 124 ms, see Table 5 25C, VDD = 5 V, after offset calibration After system offset calibration, excluding effect of noise4 VREF GND - 0.03 VDD + 0.03 15 3 24 0.1 Rev. 0 | Page 3 of 28 Internal temperature sensor External sensing diode8 VREF internal or VREF = 2.5 V Conversion time = 122.1 ms Conversion time = 62 ms, see Table 6 and Table 7 Conversion time = 62 ms, see Table 6 and Table 7 Internal reference External reference Internal reference, VIN = VREF/2 External reference, VIN = VREF/2 AD7747 Parameter Normal Mode Rejection5 Common-Mode Rejection2 INTERNAL VOLTAGE REFERENCE Voltage Drift vs. Temperature EXTERNAL VOLTAGE REFERENCE INPUT Differential REFIN Voltage2 Absolute REFIN Voltage2 Average REFIN Input Current Average REFIN Input Current Drift Common-Mode Rejection SERIAL INTERFACE LOGIC INPUTS (SCL, SDA) VIH Input High Voltage VIL Input Low Voltage Hysteresis Input Leakage Current (SCL) OPEN-DRAIN OUTPUT (SDA) VOL Output Low Voltage IOH Output High Leakage Current LOGIC OUTPUT (RDY) VOL Output Low Voltage VOH Output High Voltage VOL Output Low Voltage VOH Output High Voltage POWER REQUIREMENTS VDD-to-GND Voltage Min Typ 75 50 95 Max Unit dB dB dB Test Conditions/Comments 50 Hz 1%, conversion time = 122.1 ms 60 Hz 1%, conversion time = 122.1 ms VIN = 1 V 1.169 1.17 5 1.171 V ppm/C TA = 25C 0.1 GND - 0.03 2.5 VDD VDD + 0.03 V V nA/V pA/V/C dB 400 50 80 2.1 150 0.1 1 V V mV A 0.1 0.4 1 V A ISINK = -6.0 mA VOUT = VDD 0.4 V V V V ISINK = 1.6 mA, VDD = 5 V ISOURCE = 200 A, VDD = 5 V ISINK = 100 A, VDD = 3 V ISOURCE = 100 A, VDD = 3 V V V A A A A VDD = 5 V, nominal VDD = 3.3 V, nominal Digital inputs equal to VDD or GND VDD = 5 V VDD = 3.3 V Digital inputs equal to VDD or GND 0.8 4.0 0.4 VDD - 0.6 4.75 2.7 5.25 3.6 850 IDD Current IDD Current Power-Down Mode 750 700 0.5 2 1 Capacitance units: 1 pF = 10-12 F; 1 fF = 10-15 F; 1 aF = 10-18 F. Full scale (FS) = 8.192 pF; full-scale range (FSR) = 8.192 pF. Specification is not production tested, but is supported by characterization data at initial product release. 3 Factory calibrated. The absolute error includes factory gain calibration error, integral nonlinearity error, and offset error after system offset calibration, all at 25C. At different temperatures, compensation for gain drift over temperature is required. 4 The capacitive input offset can be eliminated using a system offset calibration. The accuracy of the system offset calibration is limited by the offset calibration register LSB size (32 aF) or by converter + system p-p noise during the system capacitive offset calibration, whichever is greater. To minimize the effect of the converter + system noise, longer conversion times should be used for system capacitive offset calibration. The system capacitance offset calibration range is 1 pF; the larger offset can be removed using CAPDACs. 5 Specification is not production tested, but guaranteed by design. 6 The gain error is factory calibrated at 25C. At different temperatures, compensation for gain drift over temperature is required. 7 The VTCHOP bit in the VT SETUP register must be set to 1 for the specified temperature sensor and voltage input performance. 8 Using an external temperature sensing diode 2N3906, with nonideality factor nf = 1.008, connected as in Figure 37, with total serial resistance <100 . 9 Full-scale error applies to both positive and negative full scale. 2 Rev. 0 | Page 4 of 28 AD7747 TIMING SPECIFICATIONS VDD = 2.7 V to 3.6 V, or 4.75 V to 5.25 V; GND = 0 V; Input Logic 0 = 0 V; Input Logic 1 = VDD; -40C to +125C, unless otherwise noted. Table 2. Parameter SERIAL INTERFACE 1, 2 SCL Frequency SCL High Pulse Width, tHIGH SCL Low Pulse Width, tLOW SCL, SDA Rise Time, tR SCL, SDA Fall Time, tF Hold Time (Start Condition), tHD;STA Setup Time (Start Condition), tSU;STA Data Setup Time, tSU;DAT Setup Time (Stop Condition), tSU;STO Data Hold Time, tHD;DAT (Master) Bus-Free Time (Between Stop and Start Condition, tBUF) 2 0 0.6 1.3 Typ Max Unit 400 kHz s s s s s s s s s s 0.3 0.3 0.6 0.6 0.1 0.6 0 1.3 Test Conditions/Comments See Figure 2 After this period, the first clock is generated Relevant for repeated start condition Sample tested during initial release to ensure compliance. All input signals are specified with input rise/fall times = 3 ns, measured between the 10% and 90% points. Timing reference points at 50% for inputs and outputs. Output load = 10 pF. tR tF tHD;STA tLOW SCL tHIGH tHD;STA tHD;DAT tSU;STA tSU;DAT tSU;STO SDA tBUF P S S Figure 2. Serial Interface Timing Diagram Rev. 0 | Page 5 of 28 P 05469-002 1 Min AD7747 ABSOLUTE MAXIMUM RATINGS TA = 25C, unless otherwise noted. Table 3. Parameter Positive Supply Voltage VDD to GND Voltage on any Input or Output Pin to GND ESD Rating (ESD Association Human Body Model, S5.1) Operating Temperature Range Storage Temperature Range Junction Temperature TSSOP Package JA (Thermal Impedance-to-Air) TSSOP Package JC (Thermal Impedance-to-Case) Peak Reflow Soldering Temperature Pb Free (20 sec to 40 sec) Rating -0.3 V to +6.5 V -0.3 V to VDD + 0.3 V 2000 V -40C to +125C -65C to +150C 150C 128C/W Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. ESD CAUTION 14C/W 260C Rev. 0 | Page 6 of 28 AD7747 PIN CONFIGURATION AND FUNCTION DESCRIPTIONS SCL 1 16 SDA RDY 2 15 NC SHLD 3 14 VDD TST 4 REFIN(+) 5 GND TOP VIEW (Not to Scale) 12 VIN(-) 6 11 VIN(+) 13 CIN1(-) 7 10 NC CIN1(+) 8 9 NC NC = NO CONNECT 05469-003 REFIN(-) AD7747 Figure 3. Pin Configuration Table 4. Pin Function Descriptions Pin No. 1 Mnemonic SCL 2 RDY 3 SHLD 4 5, 6 TST REFIN(+), REFIN(-) 7 CIN1(-) 8 CIN1(+) 9, 10 11, 12 NC VIN(+), VIN(-) 13 14 GND VDD 15 16 NC SDA Description Serial Interface Clock Input. Connects to the master clock line. Requires pull-up resistor if not already provided in the system. Logic Output. A falling edge on this output indicates that a conversion on enabled channel(s) has been finished and the new data is available. Alternatively, the status register can be read via the 2-wire serial interface and the relevant bit(s) decoded to query the finished conversion. If not used, this pin should be left as an open circuit. Capacitive Input Active AC Shielding. To eliminate the CIN parasitic capacitance to ground, the SHLD signal can be used for shielding the connection between the sensor and CIN. If not used, this pin should be left as an open circuit. This pin must be left as an open circuit for proper operation. Differential Voltage Reference Input for the Voltage Channel (ADC). Alternatively, the on-chip internal reference can be used for the voltage channel. These reference input pins are not used for conversion on capacitive channel(s) (CDC). If not used, these pins can be left as an open circuit or connected to GND. CDC Negative Capacitive Input. The measured capacitance is connected between the CIN1(-) pin and GND. If not used, this pin should be left as an open circuit. CDC Positive Capacitive Input. The measured capacitance is connected between the CIN1(+) pin and GND. If not used, this pin should be left as an open circuit. Not Connected. These pins should be left as an open circuit. Differential Voltage Input for the Voltage Channel (ADC). These pins are also used to connect an external temperature sensing diode. If not used, these pins can be left as an open circuit or connected to GND. Ground Pin. Power Supply Voltage. This pin should be decoupled to GND, using a low impedance capacitor, for example in combination with a 10 F tantalum and a 0.1 F multilayer ceramic. Not Connected. This pin should be left as an open circuit. Serial Interface Bidirectional Data. Connects to the master data line. Requires a pull-up resistor if not provided elsewhere in the system. Rev. 0 | Page 7 of 28 AD7747 TYPICAL PERFORMANCE CHARACTERISTICS 80 10 60 0 CAP ERROR (fF) 40 0 -20 -10 -20 -30 2.7V -40 3.0V -40 -80 -8 -7 -6 -5 -4 -3 -2 -1 05469-004 -60 0 1 2 3 4 5 6 7 3.3V 05469-007 INL (ppm) 20 5.0V -50 8 0 50 100 150 200 250 300 350 400 450 500 550 600 INPUT CAPACITANCE (pF) CAPACITANCE SHLD TO GND (pF) Figure 4. Capacitance Input Integral Nonlinearity; VDD = 5 V, CAPDAC = 0x3F Figure 7. Capacitance Input Error vs. Capacitance Between SHLD and GND; CIN(+) to GND = 8 pF, VDD = 2.7 V, 3 V, 3.3 V, and 5 V 10 2000 GAIN TC -28ppm/C 0 CAP ERROR (fF) GAIN ERROR (ppm) 1000 0 -1000 -10 -20 -30 2.7V 05469-005 -3000 -50 3.0V -40 -25 0 25 50 75 100 125 3.3V 05469-008 -2000 5.0V -50 150 0 50 100 150 200 250 300 350 400 450 500 550 600 CAPACITANCE SHLD TO GND (pF) TEMPERATURE (C) Figure 5. Capacitance Input Gain Drift vs. Temperature; VDD = 5 V, CIN(+) to GND = 8 pF Figure 8. Capacitance Input Error vs. Capacitance Between SHLD and GND; CIN(+) to GND = 25 pF, VDD = 2.7 V, 3 V, 3.3 V, and 5 V .20 10 .15 0 CAP ERROR (fF) .05 0 -0.05 -0.10 -0.15 -10 -20 -30 2.7V -0.20 3.0V -40 -0.30 -50 -25 0 25 50 75 100 125 5.0V -50 150 TEMPERATURE (C) Figure 6. Capacitance Input Offset Drift vs. Temperature; VDD = 5 V, CIN(+) Open 3.3V 05469-009 -0.25 05469-006 OFFSET ERROR (fF) .10 0 50 100 150 200 250 300 350 400 450 500 550 600 CAPACITANCE CIN TO SHLD (pF) Figure 9. Capacitance Input Error vs. Capacitance Between CIN(+) and SHLD; CIN(+) to GND = 8 pF, VDD = 2.7 V, 3 V, 3.3 V, and 5V Rev. 0 | Page 8 of 28 AD7747 150 1.0 0.8 0.6 0.4 50 CAP ERROR (pF) 0 -50 0 -0.2 -0.4 -0.6 05469-010 -100 -150 0.2 0 10 -0.8 -1.0 0.01 1k 100 05469-066 CAP ERROR (fF) 100 0.1 PARALLEL RESISTANCE (M) Figure 10. Capacitance Input Error vs. Parallel Resistance; CIN(+) to GND = 8 pF, VDD = 5 V 0 10 0 -200 -10 8 pF -20 CAP ERROR (fF) -300 -400 -500 -600 -700 25 pF -30 -40 -50 -60 -70 -800 05469-058 -80 -900 0 25 50 75 100 125 150 175 05469-067 CAP ERROR (fF) 100 10.0 Figure 13. Capacitance Input Error vs. Resistance Between SHLD and GND; CIN(+) to GND = 8 pF; VDD = 5 V -100 -1000 1.0 SHLD TO GND RESISTANCE (M) -90 -100 200 1 100 10 CIN TO SHLD RESISTANCE (k) SERIAL RESISTANCE (k) Figure 14. Capacitance Input Error vs. Serial Resistance; CIN(+) to GND = 8 pF and 25pF, VDD = 5 V Figure 11. Capacitance Input Error vs. Resistance Between CIN1(+) and SHLD; CIN(+) to GND = 8 pF, VDD= 5 V 100 0.2 0 -100 0 CAP ERROR (fF) CAP ERROR (fF) -200 -300 -400 -500 -600 -700 -0.2 -0.4 -900 -1000 0.091 0.27 0.48 0.96 5 25 -0.6 2.5 100 CIN TO SHLD RESISTANCE (M) 05469-062 05469-059 -800 3.0 3.5 4.0 4.5 5.0 VDD (V) Figure 12. Capacitance Input Error vs. Resistance Between CIN(+) and SHLD; CIN(+) to GND = 25 pF, VDD = 5 V Rev. 0 | Page 9 of 28 Figure 15. Capacitance Input Power Supply Rejection (PSR); CIN(+) to GND = 8 pF 5.5 AD7747 200 0 150 -20 -40 50 GAIN (dB) CAPDAC DNL (fF) 100 0 -50 -60 -80 -100 05469-050 -200 8 0 16 24 32 40 48 56 -120 64 05469-051 -100 -150 0 100 CAPDAC CODE 200 300 400 500 600 700 800 900 1k INPUT SIGNAL FREQUENCY (Hz) Figure 16. CAPDAC Differential Nonlinearity (DNL) Figure 19. Capacitive Channel Frequency Response; Conversion Time = 22 ms 0 2.0 1.5 -20 -40 0.5 GAIN (dB) ERROR (C) 1.0 0 -0.5 -60 -80 -1.0 05469-034 -2.0 -50 -25 0 25 50 75 100 125 -120 150 05469-052 -100 -1.5 0 25 50 75 100 125 150 175 200 INPUT SIGNAL FREQUENCY (Hz) TEMPERATURE (C) Figure 20. Capacitive Channel Frequency Response; Conversion Time = 124 ms Figure 17. Internal Temperature Sensor Error vs. Temperature 1.0 0 0.5 -20 -40 GAIN (dB) -0.5 -1.0 -1.5 -60 -80 -2.0 -3.0 -50 -25 0 25 50 75 100 125 -120 150 TEMPERATURE (C) 05469-039 -100 -2.5 05469-035 ERROR (C) 0 0 50 100 150 200 250 300 350 INPUT SIGNAL FREQUENCY (Hz) Figure 18. External Temperature Sensor Error vs. Temperature Figure 21. Voltage Channel Frequency Response; Conversion Time = 122.1 ms Rev. 0 | Page 10 of 28 400 AD7747 OUTPUT NOISE AND RESOLUTION SPECIFICATIONS The AD7747 resolution is limited by noise. The noise performance varies with the selected conversion time. Table 5 shows typical noise performance and resolution for the capacitive channel. These numbers were generated from 1000 data samples acquired in continuous conversion mode, at an excitation of 16 kHz, VDD x 3/8, and with all CIN and SHLD pins connected only to the evaluation board (no external capacitors). Table 6 and Table 7 show typical noise performance and resolution for the voltage channel. These numbers were generated from 1000 data samples acquired in continuous conversion mode with VIN pins shorted to ground. RMS noise represents the standard deviation and p-p noise represents the difference between minimum and maximum results in the data. Effective resolution is calculated from rms noise, and p-p resolution is calculated from p-p noise. Table 5. Typical Capacitive Input Noise and Resolution vs. Conversion Time (Bold line represents default setting) Conversion Time (ms) 22.0 23.9 40.0 76.0 124.0 154.0 184.0 219.3 Output Data Rate (Hz) 45.5 41.9 25.0 13.2 8.1 6.5 5.4 4.6 -3 dB Frequency (Hz) 43.6 39.5 21.8 10.9 6.9 5.3 4.4 4.0 RMS Noise (aF/Hz) 28.8 23.2 11.1 11.2 11.0 10.4 10.0 9.0 RMS Noise (aF) 190 146 52 37 29 24 21 18 P-P Noise (aF) 821 725 411 262 174 173 141 126 Effective Resolution (Bits) 16.4 16.8 18.3 18.7 19.1 19.3 19.6 19.9 P-P Resolution (Bits) 14.3 14.5 15.3 15.9 16.5 16.5 16.8 17.0 Table 6. Typical Voltage Input Noise and Resolution vs. Conversion Time, Internal Voltage Reference Conversion Time (ms) 20.1 32.1 62.1 122.1 Output Data Rate (Hz) 49.8 31.2 16.1 8.2 -3 dB Frequency (Hz) 26.4 15.9 8.0 4.0 RMS Noise (V) 11.4 7.1 4.0 3.0 P-P Noise (V) 62 42 28 20 Effective Resolution (Bits) 17.6 18.3 19.1 19.5 P-P Resolution (Bits) 15.2 15.7 16.3 16.8 Table 7. Typical Voltage Input Noise and Resolution vs. Conversion Time, External 2.5 V Voltage Reference Conversion Time (ms) 20.1 32.1 62.1 122.1 Output Data Rate (Hz) 49.8 31.2 16.1 8.2 -3 dB Frequency (Hz) 26.4 15.9 8.0 4.0 RMS Noise (V) 14.9 6.3 3.3 2.1 P-P Noise (V) 95 42 22 15 Rev. 0 | Page 11 of 28 Effective Resolution (Bits) 18.3 19.6 20.5 21.1 P-P Resolution (Bits) 15.6 16.8 17.7 18.3 AD7747 SERIAL INTERFACE The AD7747 supports an I2C-compatible 2-wire serial interface. The two wires on the I2C bus are called SCL (clock) and SDA (data). These two wires carry all addressing, control, and data information one bit at a time over the bus to all connected peripheral devices. The SDA wire carries the data, while the SCL wire synchronizes the sender and receiver during the data transfer. I2C devices are classified as either master or slave devices. A device that initiates a data transfer message is called a master, while a device that responds to this message is called a slave. To control the AD7747 device on the bus, the following protocol must be followed. First, the master initiates a data transfer by establishing a start condition, defined by a high-tolow transition on SDA while SCL remains high. This indicates that the start byte follows. This 8-bit start byte is made up of a 7-bit address plus an R/W bit indicator. All peripherals connected to the bus respond to the start condition and shift in the next 8 bits (7-bit address + R/W bit). The bits arrive MSB first. The peripheral that recognizes the transmitted address responds by pulling the data line low during the ninth clock pulse. This is known as the acknowledge bit. All other devices withdraw from the bus at this point and maintain an idle condition. An exception to this is the general call address, which is described later in this document. The idle condition is where the device monitors the SDA and SCL lines waiting for the start condition and the correct address byte. The R/W bit determines the direction of the data transfer. A Logic 0 LSB in the start byte means that the master writes information to the addressed peripheral. In this case, the AD7747 becomes a slave receiver. A Logic 1 LSB in the start byte means that the master reads information from the addressed peripheral. In this case, the AD7747 becomes a slave transmitter. In all instances, the AD7747 acts as a standard slave device on the I2C bus. The start byte address for the AD7747 is 0x90 for a write and 0x91 for a read. READ OPERATION When a read is selected in the start byte, the register that is currently addressed by the address pointer is transmitted on to the SDA line by the AD7747. This is then clocked out by the master device and the AD7747 awaits an acknowledge from the master. If an acknowledge is received from the master, the address autoincrementer automatically increments the address pointer register and outputs the next addressed register content on to the SDA line for transmission to the master. If no acknowledge is received, the AD7747 returns to the idle state and the address pointer is not incremented. The address pointer's auto-incrementer allows block data to be written or read from the starting address and subsequent incremental addresses. In continuous conversion mode, the address pointer's autoincrementer should be used for reading a conversion result. That means the three data bytes should be read using one multibyte read transaction rather than three separate single byte transactions. The single byte data read transaction may result in the data bytes from two different results being mixed. The same applies for six data bytes if both the capacitive and the voltage/temperature channel are enabled. The user can also access any unique register (address) on a oneto-one basis without having to update all the registers. The address pointer register's contents cannot be read. If an incorrect address pointer location is accessed, or if the user allows the auto-incrementer to exceed the required register address, the following applies: * In read mode, the AD7747 continues to output various internal register contents until the master device issues a no acknowledge, start, or stop condition. The address pointer auto-incrementer's contents are reset to point to the status register at Address 0x00 when a stop condition is received at the end of a read operation. This allows the status register to be read (polled) continually without having to constantly write to the address pointer. * In write mode, the data for the invalid address is not loaded into the AD7747 registers, but an acknowledge is issued by the AD7747. WRITE OPERATION When a write is selected, the byte following the start byte is always the register address pointer (subaddress) byte, which points to one of the internal registers on the AD7747. The address pointer byte is automatically loaded into the address pointer register and acknowledged by the AD7747. After the address pointer byte acknowledge, a stop condition, a repeated start condition, or another data byte can follow from the master. A stop condition is defined by a low-to-high transition on SDA while SCL remains high. If a stop condition is ever encountered by the AD7747, it returns to its idle condition and the address pointer is reset to Address 0x00. If a data byte is transmitted after the register address pointer byte, the AD7747 loads this byte into the register that is currently addressed by the address pointer register, sends an acknowledge, and the address pointer auto-incrementer automatically increments the address pointer register to the next internal register address. Thus, subsequent transmitted data bytes are loaded into sequentially incremented addresses. If a repeated start condition is encountered after the address pointer byte, all peripherals connected to the bus respond exactly as outlined above for a start condition, that is, a repeated start condition is treated the same as a start condition. When a master device issues a stop condition, it relinquishes control of Rev. 0 | Page 12 of 28 AD7747 the bus, allowing another master device to take control of the bus. Therefore, a master wanting to retain control of the bus issues successive start conditions known as repeated start conditions. GENERAL CALL When a master issues a slave address consisting of seven 0s with the eighth bit (R/W bit) set to 0, this is known as the general call address. The general call address is for addressing every device connected to the I2C bus. The AD7747 acknowledges this address and read in the following data byte. AD7747 RESET To reset the AD7747 without having to reset the entire I2C bus, an explicit reset command is provided. This uses a particular address pointer word as a command word to reset the part and upload all default settings. The AD7747 does not respond to the I2C bus commands (do not acknowledge) during the default values upload for approximately 150 s (max 200 s). If the second byte is 0x06, the AD7747 is reset, completely uploading all default values. The AD7747 does not respond to the I2C bus commands (do not acknowledge) during the default values upload for approximately 150 s (200 s maximum). The AD7747 does not acknowledge any other general call commands. The reset command address word is 0xBF. SCLOCK S 1-7 8 9 1-7 8 9 START ADDR R/W ACK SUBADDRESS ACK 1-7 DATA 8 9 P ACK STOP 05469-011 SDATA Figure 22. Bus Data Transfer S SLAVE ADDR A(S) SUB ADDR S SLAVE ADDR S = START BIT P = STOP BIT A(S) DATA A(S) DATA A(S) P LSB = 1 LSB = 0 READ SEQUENCE A(S) SUB ADDR A(S) S SLAVE ADDR A(S) = ACKNOWLEDGE BY SLAVE A(M) = ACKNOWLEDGE BY MASTER A(S) DATA A(M) A(S) = NO ACKNOWLEDGE BY SLAVE A(M) = NO ACKNOWLEDGE BY MASTER Figure 23. Write and Read Sequences Rev. 0 | Page 13 of 28 DATA A(M) P 05469-012 WRITE SEQUENCE AD7747 REGISTER DESCRIPTIONS and a read/write operation is selected, the address pointer register is set up. The address pointer register determines from or to which register the operation takes place. A read/write operation is performed from/to the target address, which then increments to the next address until a stop command on the bus is performed. The master can write to or read from all of the AD7747 registers except the address pointer register, which is a write-only register. The address pointer register determines which register the next read or write operation accesses. All communications with the part through the bus start with an access to the address pointer register. After the part has been accessed over the bus Table 8. Register Summary Register Status Address Pointer (Dec) (Hex) 0 0x00 Dir R Cap Data H Cap Data M Cap Data L VT Data H VT Data M VT Data L Cap Setup 1 2 3 4 5 6 7 0x01 0x02 0x03 0x04 0x05 0x06 0x07 R R R R R R R/W VT Setup 8 0x08 R/W EXC Setup 9 0x09 R/W Configuration 10 0x0A R/W Cap DAC A 11 0x0B R/W Cap DAC B 12 0x0C R/W Cap Offset H Cap Offset L Cap Gain H Cap Gain L Volt Gain H Volt Gain L 13 14 15 16 17 18 0x0D 0x0E 0x0F 0x10 0x11 0x12 R/W R/W R/W R/W R/W R/W Bit 7 - 0 CAPEN 0 VTEN 0 - 0 VTFS1 1 DACAENA 0 DACBENB 0 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Default Value - - - - RDY RDYVT 0 0 0 0 1 1 Capacitive channel data--high byte, 0x00 Capacitive channel data--middle byte, 0x00 Capacitive channel data--low byte, 0x00 Voltage/temperature channel data--high byte, 0x00 Voltage/temperature channel data--middle byte, 0x00 Voltage/temperature channel data--low byte, 0x00 - CAPDIFF - - - - 0 0 0 0 0 0 VTMD1 VTMD0 EXTREF - - VTSHORT 0 0 0 0 0 0 - - - EXCDAC EXCEN EXCLVL1 0 0 0 0 0 1 VTFS0 CAPFS2 CAPFS1 CAPFS0 MD2 MD1 0 1 0 0 0 0 - DACA--6-Bit Value 0 0x00 - DACB--6-Bit Value 0 0x00 Capacitive offset calibration--high byte, 0x80 Capacitive offset calibration--low byte, 0x00 Capacitive gain calibration--high byte, factory calibrated Capacitive gain calibration--low byte, factory calibrated Voltage gain calibration--high byte, factory calibrated Voltage gain calibration--low byte, factory calibrated Rev. 0 | Page 14 of 28 Bit 0 RDYCAP 1 - 0 VTCHOP 0 EXCLVL0 1 MD0 0 AD7747 STATUS REGISTER Address Pointer 0x00, Read Only, Default Value 0x07 This register indicates the status of the converter. The status register can be read via the 2-wire serial interface to query a finished conversion. The RDY pin reflects the status of the RDY bit. Therefore, the RDY pin high-to-low transition can be used as an alternative indication of the finished conversion. Table 9. Status Register Bit Map Bit Mnemonic Default Bit 7 - 0 Bit 6 - 0 Bit 5 - 0 Bit 4 - 0 Bit 3 - 0 Bit 2 RDY 1 Bit 1 RDYVT 1 Bit 0 RDYCAP 1 Table 10. Bit 7 to 3 2 Mnemonic - RDY 1 RDYVT 0 RDYCAP Description Not used, always read 0. RDY = 0 indicates that conversion on the enabled channel(s) is complete and new unread data is available. If both capacitive and voltage/temperature channels are enabled, the RDY bit is changed to 0 after conversion on both channels is complete. The RDY bit returns to 1 either when data is read or prior to finishing the next conversion. If, for example, only the capacitive channel is enabled, then the RDY bit reflects the RDYCAP bit. RDYVT = 0 indicates that a conversion on the voltage/temperature channel is complete and new unread data is available. RDYCAP = 0 indicates that a conversion on the capacitive channel is complete and new unread data is available. CAP DATA REGISTER VT DATA REGISTER 24 Bits, Address Pointer 0x01, 0x02, 0x03, Read-Only, Default Value 0x000000 24 Bits, Address Pointer 0x04, 0x05, 0x06, Read-Only, Default Value 0x000000 This register contains the capacitive channel output data. The register is updated after finished conversion on the capacitive channel, with one exception: When the serial interface read operation from the Cap Data register is in progress, the data register is not updated and the new capacitance conversion result is lost. This register contains the voltage/temperature channel output data. The register is updated after finished conversion on the voltage channel or temperature channel, with one exception: When the serial interface read operation from the VT Data register is in progress, the data register is not updated and the new voltage/temperature conversion result is lost. The stop condition on the serial interface is considered to be the end of the read operation. Therefore, to prevent data corruption, all three bytes of the data register should be read sequentially using the register address pointer auto-increment feature of the serial interface. The stop condition on the serial interface is considered to be the end of the read operation. Therefore, to prevent data corruption, all three bytes of the data register should be read sequentially using the register address pointer auto-increment feature of the serial interface. To prevent losing some of the results, the Cap Data register should be read before the next conversion on the capacitive channel is finished. For voltage input, Code 0 represents negative full scale (-VREF), the 0x800000 code represents zero scale (0 V), and the 0xFFFFFF code represents positive full scale (+VREF). The 0x000000 code represents negative full scale (-8.192 pF), the 0x800000 code represents zero scale (0 pF), and the 0xFFFFFF code represents positive full scale (+8.192 pF). To prevent losing some of the results, the VT Data register should be read before the next conversion on the voltage/ temperature channel is complete. For the temperature sensor, the temperature can be calculated from code using the following equation: Temperature (C) = (Code/2048) - 4096 Rev. 0 | Page 15 of 28 AD7747 CAP SETUP REGISTER Address Pointer 0x07, Default Value 0x00 Capacitive channel setup. Table 11. Cap Setup Register Bit Map Bit Mnemonic Default Bit 7 CAPEN 0 Bit 6 - 0 Bit 5 CAPDIFF 0 Bit 4 - 0 Bit 3 - 0 Bit 2 - 0 Bit 1 - 0 Bit 0 - 0 Table 12. Bit 7 6 5 4 to 0 Mnemonic CAPEN - CAPDIFF - Description CAPEN = 1 enables capacitive channel for single conversion, continuous conversion, or calibration. This bit must be 0 for proper operation. This bit must be set to 1 for proper operation. These bits must be 0 for proper operation. VT SETUP REGISTER Address Pointer 0x08, Default Value 0x00 Voltage/Temperature channel setup. Table 13. VT Setup Register Bit Map Bit Mnemonic Default Bit 7 VTEN 0 Bit 6 VTMD1 0 Bit 5 VTMD0 0 Bit 4 EXTREF 0 Bit 3 - 0 Bit 2 - 0 Bit 1 VTSHORT 0 Bit 0 VTCHOP 0 Table 14. Bit 7 6 5 Mnemonic VTEN VTMD1 VTMD0 4 EXTREF 3 to 2 1 0 - VTSHORT VTCHOP = 1 Description VTEN = 1 enables voltage/temperature channel for single conversion, continuous conversion, or calibration. Voltage/temperature channel input configuration. VTMD1 VTMD0 Channel Input 0 0 Internal temperature sensor 0 1 External temperature sensor diode 1 0 VDD monitor 1 1 External voltage input (VIN) EXTREF = 1 selects an external reference voltage connected to REFIN(+), REFIN(-) for the voltage input or the VDD monitor. EXTREF = 0 selects the on-chip internal reference. The internal reference must be used with the internal temperature sensor for proper operation. These bits must be 0 for proper operation. VTSHORT = 1 internally shorts the voltage/temperature channel input for test purposes. VTCHOP = 1 sets internal chopping on the voltage/temperature channel. The VTCHOP bit must be set to 1 for the specified voltage/temperature channel performance. Rev. 0 | Page 16 of 28 AD7747 EXC SETUP REGISTER Address Pointer 0x09, Default Value 0x03 Capacitive channel excitation setup. Table 15. EXC Setup Bit Map Bit Mnemonic Default Bit 7 - 0 Bit 6 - 0 Bit 5 - 0 Bit 4 - 0 Bit 3 EXCDAC 0 Bit 2 EXCEN 0 Bit 1 EXCLVL1 1 Bit 0 EXCLVL0 1 Table 16. Bit 7 to 4 3 2 1 0 Mnemonic - EXCDAC EXCEN EXCLVL1, EXCLVL0 Description These bits must be 0 for proper operation. CAPDAC excitation. This bit must be set to 1 for the proper capacitive channel operation. CIN and AC SHLD excitation. This bit must be set to 1 for the proper capacitive channel operation. Excitation Voltage Level. Must be set to VDD x 3/8 to allow operation for specified performance. EXCLVL1 EXCLVL0 Voltage on Cap EXC Low Level EXC High Level 0 0 VDD/8 VDD x 3/8 VDD x 5/8 0 1 VDD/4 VDD x 1/4 VDD x 3/4 1 0 VDD x 3/8 VDD x 1/8 VDD x 7/8 0 VDD 1 1 VDD/2 Rev. 0 | Page 17 of 28 AD7747 CONFIGURATION REGISTER Address Pointer 0x0A, Default Value 0xA0 Converter update rate and mode of operation setup. Table 17. Configuration Register Bit Map Bit Mnemonic Default Bit 7 VTFS1 0 Bit 6 VTFS0 0 Bit 5 CAPFS2 0 Bit 4 CAPFS1 0 Bit 3 CAPFS0 0 Bit 2 MD2 0 Bit 1 MD1 0 Bit 0 MD0 0 Table 18. Bit 7 6 Mnemonic VTFS1 VTFS0 5 4 3 CAPFS2 CAPFS1 CAPFS0 2 1 0 MD2 MD1 MD0 Description Voltage/temperature channel digital filter setup--conversion time/update rate setup. VTCHOP = 1 VTFS1 VTFS0 Conversion Time (ms) Update Rate (Hz) -3 dB Frequency (Hz) 0 0 20.1 49.8 26.4 0 1 32.1 31.2 15.9 1 0 62.1 16.1 8.0 1 1 122.1 8.2 4.0 Capacitive channel digital filter setup--conversion time/update rate setup. CAPFS2 CAPFS1 CAPFS0 Conversion Time (ms) Update Rate -3 dB Frequency (Hz) 0 0 0 22.0 45.5 43.6 0 0 1 23.9 41.9 39.5 0 1 0 40.0 25.0 21.8 0 1 1 76.0 13.2 10.9 1 0 0 124.0 8.1 6.9 1 0 1 154.0 6.5 5.3 1 1 0 184.0 5.5 4.4 1 1 1 219.3 4.6 4.0 Converter mode of operation setup. MD2 MD1 MD0 Mode 0 0 0 Idle 0 0 1 Continuous conversion 0 1 0 Single conversion 0 1 1 Power-down 1 0 0 - 1 0 1 Capacitance system offset calibration 1 1 0 Capacitance or voltage system gain calibration 1 1 1 - Rev. 0 | Page 18 of 28 AD7747 CAP DAC A REGISTER Address Pointer 0x0B, Default Value 0x00 Capacitive DAC setup. Table 19. Cap DAC A Register Bit Map Bit Mnemonic Default Bit 7 DACAENA 0 Bit 6 - 0 Bit 5 Bit 4 Bit 3 Bit 2 DACA--6-Bit Value 0x00 Bit 1 Bit 0 Bit 1 Bit 0 Table 20. Bit 7 6 5 to 1 Mnemonic DACAENA - DACA Description DACAENA = 1 connects capacitive DACA to the positive capacitance input. This bit must be 0 for proper operation. DACA value, Code 0x00 0 pF, Code 0x3F full range. CAP DAC B REGISTER Address Pointer 0x0C, Default Value 0x00 Capacitive DAC setup. Table 21. Cap DAC B Register Bit Map Bit Mnemonic Default Bit 7 DACBENB 0 Bit 6 - 0 Bit 5 Bit 4 Bit 3 Bit 2 DACB--6-Bit Value 0x00 Table 22. Bit 7 6 5 to 1 Mnemonic DACBENB - DACB Description DACBENB = 1 connects capacitive DACB to the negative capacitance input. This bit must be 0 for proper operation. DACB value, Code 0x00 0 pF, Code 0x3F full range. Rev. 0 | Page 19 of 28 AD7747 CAP OFFSET CALIBRATION REGISTER CAP GAIN CALIBRATION REGISTER 16 Bits, Address Pointer 0x0D, 0x0E, Default Value 0x8000 16 Bits, Address Pointer 0x0F, 0x10, Default Value 0xXXXX The capacitive offset calibration register holds the capacitive channel zero-scale calibration coefficient. The coefficient is used to digitally remove the capacitive channel offset. The register value is updated automatically following the execution of a capacitance offset calibration. The capacitive offset calibration resolution (cap offset register LSB) is less than 32 aF; the full range is 1 pF. Capacitive gain calibration register. The register holds the capacitive channel full-scale factory calibration coefficient. VOLT GAIN CALIBRATION REGISTER 16 Bits, Address Pointer 0x11,0x12, Default Value 0xXXXX Voltage gain calibration register. The register holds the voltage channel full-scale factory calibration coefficient. Rev. 0 | Page 20 of 28 AD7747 CIRCUIT DESCRIPTION ACTIVE AC SHIELD CONCEPT VDD TEMP SENSOR CLOCK GENERATOR VIN(+) VIN(-) MUX 24-BIT - GENERATOR AD7747 2 SDA I C SERIAL INTERFACE DIGITAL FILTER CIN1(+) SCL CONTROL LOGIC CALIBRATION CIN1(-) SHLD RDY VOLTAGE REFERENCE CAP DAC 1 EXCITATION REFIN(+) 05469-013 CAP DAC 2 GND REFIN(-) Figure 24. AD7747 Block Diagram OVERVIEW The AD7747 core is a high precision converter consisting of a second-order (- or charge balancing) modulator and a thirdorder digital filter. It works as a CDC for the capacitive inputs and as a classic ADC for the voltage input or for the voltage from a temperature sensor. In addition to the converter, the AD7747 integrates a multiplexer, an excitation source and CAPDACs for the capacitive inputs, a temperature sensor and a voltage reference for the voltage and temperature inputs, a complete clock generator, a control and calibration logic, and an I2C-compatible serial interface. CAPACITANCE-TO-DIGITAL CONVERTER Figure 25 shows the CDC simplified functional diagram. The measured capacitance CX is connected between the - modulator input and ground. A square-wave excitation signal is applied on the CX during the conversion and the modulator continuously samples the charge going through the CX. The digital filter processes the modulator output, which is a stream of 0s and 1s containing the information in 0 and 1 density. The data from the digital filter is scaled, applying the calibration coefficients, and the final result can be read through the serial interface. The AD7747 measures capacitance between CIN and ground. That means any capacitance to ground on signal path between the AD7747 CIN pin(s) and sensor is included in the AD7747 conversion result. The parasitic capacitance of the sensor connections can easily be in the same, if not even higher, order as the capacitance of the sensor itself. If that parasitic capacitance is stable, it can be treated as a nonchanging capacitive offset. However, the parasitic capacitance of sensor connections is often changing as a result of mechanical movement, changing ambient temperature, ambient humidity, etc. These changes are seen as drift in the conversion result and may significantly compromise the system accuracy. To eliminate the CIN parasitic capacitance to ground, the AD7747 SHLD signal can be used for shielding the connection between the sensor and CIN, as shown in Figure 25. The SHLD output is basically the same signal waveform as the excitation of the CIN pin; the SHLD is driven to the same voltage potential as the CIN pin. Therefore, there is no ac current between CIN and SHLD pins, and any capacitance between these pins does not affect the CIN charge transfer. Ideally, the CIN to SHLD capacitance does not have any contribution to the AD7747 result. To get the best result, locate the AD7747 as close as possible to the capacitive sensor. Keep the connection between the sensor and AD7747 CIN pin, and also the return path between sensor ground and the AD7747 GND pin, short. Shield the PCB track to the CIN pin and connect the shielding to the AD7747 SHLD pin. In addition, if a shielded cable is used for sensor connection, the shield should be connected to the AD7747 SHLD pin. CAPDAC The AD7747 CDC full-scale input range is 8.192 pF. For simplicity of calculation, however, the following text and figures use 8 pF. The part can accept a higher capacitance on the input and the common-mode or offset (nonchanging component) capacitance can be balanced by programmable on-chip CAPDACs. CAPDAC(+) CAPACITANCE TO DIGITAL CONVERTER (CDC) CIN(+) CLOCK GENERATOR CDC CIN(-) DATA 24-BIT - MODULATOR DIGITAL FILTER CAPDAC(-) CX EXCITATION SHLD 05469-014 CX CY SHLD Figure 26. Using a CAPDAC Figure 25. CDC Simplified Block Diagram Rev. 0 | Page 21 of 28 05649-015 CIN DATA AD7747 Figure 29 shows how to shift the input range further, up to 25 pF absolute value of capacitance connected to the CIN(+). CIN(+) DATA (C X - CAPDAC(+)) - (CY - CAPDAC(-)) CIN(-) The CAPDACs have a 6-bit resolution, monotonic transfer function, are well matched to each other, and have a defined temperature coefficient. The CAPDAC full range (absolute value) is not factory calibrated and can vary up to 20% with the manufacturing process. See the Specifications section and Figure 16 of the typical performance characteristics. It is recommended to guard the unused CIN input with the active shield to ensure the best performance in terms of noise, offset, and offset drift. The CDC (without using the CAPDACs) measure the positive (or the negative) input capacitance in the range of 0 pF to 8 pF (see Figure 27). (17pF 8pF) SHLD DIFFERENTIAL CAPACITIVE CONFIGURATION When the AD7747 is used for interfacing to a differential capacitive sensor, each of the two input capacitances, CX and CY, must be less than 8 pF (without using the CAPDACs) or must be less than 25 pF and balanced by the CAPDACs. Balancing by the CAPDACs means that both CX - CAPDAC(+) and CY - CAPDAC(-) are less than 8 pF. If the unbalanced capacitance connected to CIN pins is higher than 8 pF, the CDC introduces a gain error, an offset error, and nonlinearity error. See the examples shown in Figure 30, Figure 31, and Figure 32. CIN(+) DATA CAPDIFF = 1 CIN(-) 0...8pF CDC CX 0...8pF 05469-016 SHLD 0x000000 TO 0xFFFFFF CAPDAC(+) OFF 0x800000 TO 0xFFFFFF CAPDAC(-) OFF CX 0...8pF CAPDAC(-) 0pF DATA CAPDIFF = 1 8pF CDC CAPDAC(-) OFF CY 0...8pF 05469-019 CIN(-) 8pF CDC Figure 29. Using CAPDAC in Single-Ended Configuration The AD7747 can be used for interfacing to a single-ended capacitive sensor. In this configuration the sensor should be connected to one of the AD7747 CIN pins, for example CIN(+) and the other pin should be left open circuit. Note that the CAPDIFF bit in the Cap Setup register must be set to 1 at all times for the correct operation. CIN(+) DATA CAPDIFF = 1 CX 9...25pF SINGLE-ENDED CAPACITIVE CONFIGURATION CAPDAC(+) OFF 0x000000 TO 0xFFFFFF CAPDAC(+) 17pF 05469-018 The CAPDAC can be understood as a negative capacitance connected internally to the CIN pin. There are two independent CAPDACs, one connected to the CIN(+) and the second connected to the CIN(-). The relation between the capacitance input and output data can be expressed as SHLD Figure 30. CDC Differential Input Configuration Figure 27. CDC Single-Ended Input Configuration The CAPDAC can be used for programmable shifting of the input range. The example in Figure 28 shows how to use the full 8 pF CDC span to measure capacitance between 0 pF to 16 pF. 0x000000 TO 0xFFFFFF CAPDAC(+) 17pF CIN(+) 0x000000 TO 0xFFFFFF CAPDAC(+) 8pF CIN(+) CAPDIFF = 1 DATA CAPDIFF = 1 8pF CDC CX 13...21pF CAPDAC(-) 17pF CY 13...21pF (17pF 4pF) (17pF 4pF) CAPDAC(-) 0pF CX 0...16pF SHLD SHLD 05469-017 Figure 31. Using CAPDAC in Differential Configuration Figure 28. Using CAPDAC in Single-Ended Configuration Rev. 0 | Page 22 of 28 05469-020 CIN(-) CIN(-) DATA 8pF CDC AD7747 0x000000 TO 0xFFFFFF CAPDAC(+) 17pF CIN(+) CX 9 TO 25pF 8pF CDC CAPDAC(-) 17pF CY 17pF 05469-021 (17pF 8pF) SHLD Figure 32. Using CAPDAC in Differential Configuration PARASITIC CAPACITANCE A parasitic resistance, R P2, between SHLD and ground, as well as RP3 between the CIN pin and the active shield, as shown in Figure 34, cause a leakage current, which affects the CDC result and is seen as an offset in the data. An offset calibration can be used to compensate for effect of the small leakage current caused by a resistance RP2 and RP3 200 k. See Figure 11, Figure 12, and Figure 13 in the Typical Performance Characteristics section. The CDC architecture used in the AD7747 measures the capacitance CX connected between the CIN pin and ground. Most applications use the active shield to avoid external influences during the CDC. However, any parasitic capacitance, CP, as shown in Figure 33, can affect the CDC result. DATA CIN CDC CX CP2 PARASITIC SERIAL RESISTANCE CP3 05469-041 CP1 SHLD RS CDC Figure 33. Parasitic Capacitance CX A parasitic capacitance, CP1, coupled in between CIN and ground adds directly to the value of the capacitance CX and, therefore, the CDC result is: DATA CX + CP1. An offset calibration might be sufficient to compensate for a small parasitic capacitance (CP1 1pF). For a larger parasitic capacitance, the CAPDAC can be used to compensate, followed by an offset calibration to ensure the full range of 8pF is available for the system. SHLD Figure 35. Parasitic Serial Resistance The AD7747 CDC result is affected by a resistance in series with the measured capacitance. The serial resistance should be less than 10 k for the specified performance. See Figure 14 in the Typical Performance Characteristics section. Other parasitic capacitances, such as CP2 between active shield and ground as well as CP3 between the CIN pin and SHLD, could influence the conversion result. However, the graphs in the Typical Performance Characteristics section show that the effect of parasitic capacitance of type CP2/CP3 below 250 pF is insignificant to the CDC result. Figure 7 and Figure 8 show the gain error caused by CP2. Figure 9 shows the gain error caused by CP3. CAPACITIVE GAIN CALIBRATION The AD7747 gain is factory calibrated for the full scale of 8.192 pF in the production for each part individually. The factory gain coefficient is stored in a one-time programmable (OTP) memory and is copied to the capacitive gain register at power-up or after reset. The gain can be changed by executing a capacitance gain calibration mode, for which an external full-scale capacitance needs to be connected to the capacitance input, or by writing a user value to the capacitive gain register. This change would be only temporary, and the factory gain coefficient would be reloaded back after power-up or reset. The part is tested and specified for use only with the default factory calibration coefficient. PARASITIC RESISTANCE DATA CIN CDC CX RP2 RP3 SHLD 05649-042 RP1 DATA CIN 05469-043 CIN(-) DATA CAPDIFF = 1 Parasitic resistances, as shown in Figure 34, cause leakage currents, which affect the CDC result. The AD7747 CDC measures the charge transfer between the CIN pin and ground. Any resistance connected in parallel to the measured capacitance, CX, such as the parasitic resistance, RP1, also transfers charge. Therefore, the parallel resistor is seen as an additional capacitance in the output data. A resistance in the range of RP1 10 M causes an offset error in the CDC result. An offset calibration can be used to compensate for the effect of small leakage currents. A higher leakage current to ground, RP1 10 M, results in a gain error, an offset error, and a nonlinearity error. See Figure 10 in the Typical Performance Characteristics section. Figure 34. Parasitic Resistance on CIN Rev. 0 | Page 23 of 28 AD7747 CAPACITIVE SYSTEM OFFSET CALIBRATION where: The capacitive offset is dominated by the parasitic offset in the application, such as the initial capacitance of the sensor, any parasitic capacitance of tracks on the board, and the capacitance of any other connections between the sensor and the CDC. Therefore, the AD7747 is not factory calibrated for capacitive offset. It is the user's responsibility to calibrate the system capacitance offset in the application. K is Boltzmann's constant (1.38 x 10-23). T is the absolute temperature in Kelvin. q is the charge on the electron (1.6 x 10-19 coulombs). N is the ratio of the two currents. nf is the ideality factor of the thermal diode. Any offset in the capacitance input larger than 1 pF should first be removed using the on-chip CAPDACs. The small offset within 1 pF can then be removed by using the capacitance offset calibration register. One method of adjusting the offset is to connect a zero-scale capacitance to the input and execute the capacitance offset calibration mode. The calibration sets the midpoint of the 8.192 pF range (that is, Output Code 0x800000) to that zero-scale input. Another method is to calculate and write the offset calibration register value; the LSB value is 31.25 aF (8.192 pF/217). The offset calibration register is reloaded by the default value at power-on or after reset. Therefore, if the offset calibration is not repeated after each system power-up, the calibration coefficient value should be stored by the host controller and reloaded as part of the AD7747 setup. The AD7747 uses an on-chip transistor to measure the temperature of the silicon chip inside the package. The - ADC converts the VBE to digital; the data are scaled using factory calibration coefficients. Thus, the output code is proportional to temperature. Temperature(C ) = Code - 4096 2048 The AD7747 has a low power consumption resulting in only a small effect due to the part self-heating (less than 0.5C at VDD = 5 V). If the capacitive sensor can be considered to be at the same temperature as the AD7747 chip, the internal temperature sensor can be used as a system temperature sensor. That means the complete system temperature drift compensation can be based on the AD7747 internal temperature sensor without need for any additional external components. See Figure 17 in the Typical Performance Characteristics section. EXTERNAL TEMPERATURE SENSOR INTERNAL TEMPERATURE SENSOR EXTERNAL TEMPERATURE SENSOR INTERNAL TEMPERATURE SENSOR VDD NxI CLOCK GENERATOR CLOCK GENERATOR 2N3906 VBE 24-BIT - MODULATOR DIGITAL DATA FILTER AND SCALING VOLTAGE REFERENCE The temperature sensing method used in the AD7747 is to measure a difference in VBE voltage of a transistor operated at two different currents (see Figure 36). The VBE change with temperature is linear and can be expressed as KT x ln(N ) q 24-BIT - MODULATOR DIGITAL DATA FILTER AND SCALING Figure 37. Transistor as an External Temperature Sensor Figure 36. Internal Temperature Sensor VBE = (n f ) RS2 VIN(-) VOLTAGE REFERENCE 05469-026 VBE RS1 VIN(+) 05469-027 I VDD I ... N x I The AD7747 provides the option of using an external transistor as a temperature sensor in the system. The VBE method, which is similar to the internal temperature sensor method, is used. However, it is modified to compensate for the serial resistance of connections to the sensor. Total serial resistance (RS1 + RS2 in Figure 37) up to 100 is compensated. The VIN(-) pin must be grounded for proper external temperature sensor operation. The AD7747 is factory calibrated for Transistor 2N3906 with the ideality factor nf = 1.008. See Figure 18 in the Typical Performance Characteristics section. Rev. 0 | Page 24 of 28 AD7747 The AD7747 - core can work as a high resolution (up to 21 ENOB) classic ADC with a fully differential voltage input. The ADC can be used either with the on-chip high precision, low drift, 1.17 V voltage reference, or with an external reference connected to the fully differential reference input pins. VOLTAGE INPUT VDD ANALOG TO DIGITAL CONVERTER (ADC) The voltage and reference inputs are continuously sampled by a - modulator during the conversion. Therefore, the input source impedance should be kept low. See the application example in Figure 38. CLOCK GENERATOR VIN(+) RT RTD VIN(-) DATA 24-BIT - MODULATOR DIGITAL FILTER VDD MONITOR RREF VOLTAGE REFERENCE REFIN(-) GND 05469-028 REFIN(+) Along with converting external voltages, the AD7747 - ADC can be used for monitoring the VDD voltage. The voltage from the VDD pin is internally attenuated by 6. Figure 38. Resistive Temperature Sensor Connected to the Voltage Input Rev. 0 | Page 25 of 28 AD7747 TYPICAL APPLICATION DIAGRAM 0.1F + 3V/5V POWER SUPPLY 10F 10k VDD TEMP SENSOR CLOCK GENERATOR VIN (+) 10k HOST SYSTEM AD7747 SDA VIN (-) MUX CIN1(+) 24-BIT - GENERATOR DIGITAL FILTER CIN1(-) 2 I C SERIAL INTERFACE CONTROL LOGIC CALIBRATION SHLD SCL RDY VOLTAGE REFERENCE CAP DAC 1 EXCITATION REFIN(+) REFIN(-) GND Figure 39. Basic Application Diagram for a Differential Capacitive Sensor Rev. 0 | Page 26 of 28 05469-029 CAP DAC 2 AD7747 OUTLINE DIMENSIONS 5.10 5.00 4.90 16 9 4.50 4.40 4.30 6.40 BSC 1 8 PIN 1 1.20 MAX 0.15 0.05 0.30 0.19 0.65 BSC COPLANARITY 0.10 0.20 0.09 SEATING PLANE 8 0 0.75 0.60 0.45 COMPLIANT TO JEDEC STANDARDS MO-153-AB Figure 40. 16-Lead Thin Shrink Small Outline Package [TSSOP] (RU-16) Dimensions shown in millimeters ORDERING GUIDE Model AD7747ARUZ 1 AD7747ARUZ-REEL1 AD7747ARUZ-REEL71 EVAL-AD7747EBZ1 1 Temperature Range -40C to +125C -40C to +125C -40C to +125C Package Description 16-Lead TSSOP 16-Lead TSSOP 16-Lead TSSOP Evaluation Board Z = Pb-free part. Rev. 0 | Page 27 of 28 Package Option RU-16 RU-16 RU-16 AD7747 NOTES Purchase of licensed I2C components of Analog Devices or one of its sublicensed Associated Companies conveys a license for the purchaser under the Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard Specification as defined by Philips. (c)2007 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. D05469-0-1/07(0) Rev. 0 | Page 28 of 28