Analog Devices EVAL-AD5934EB Preliminary Technical Data Download Page 20

EVAL-AD5934EB 

Preliminary Technical Data

 

Rev. PrC | Page 20 of 32 

GAIN FACTOR CALCULATION 

The code in the Evaluation Board Source Code Extract section 
for the impedance sweep is based on a single-point gain factor 
calculation, which is determined at the midpoint sweep frequency 
with a known impedance connected between VOUT and VIN. 
The gain factor for this example is calculated by exciting the 
calibration impedance using a 2 V p-p sinusoid with a frequency 
of 30.750 kHz, a PGA setting of ×1, a 100 kΩ resistor connected 
between VOUT and VIN, and a feedback resistor of 100 kΩ. 
The magnitude of the real and imaginary components at the 
calibration frequency is given by the formula: 

2

2

I

R

Magnitude

+

=

 

where 

R

 is the real component, and 

I

 is the imaginary 

component of the calibration code. 

The gain factor is then given by 

Magnitude

Magnitude

Impedance

Code

Admittance

Factor

Gain



=

⎟⎟

⎜⎜

=

=

100

1

1

 

Refer to the 

AD5934

 data sheet for more details. 

IMPEDANCE MEASUREMENT TIPS 

This section outlines some of the workarounds for using the 
AD5934 to measure impedance profiles under certain conditions. 

Calibrating the AD5934 

When calculating the calibration term (that is, the gain factor; 
see the 

AD5934

 data sheet for further details), it is important 

that the receive stage is operating in its linear region. This 
requires careful selection of the system gain settings. The 
system gain settings are 

 

Output excitation voltage range 

 

Current-to-voltage gain setting resistor 

 

PGA gain  

The gain through the system shown in Figure 27 is given by 

Gain

PGA

Z

Resistor

Setting

Gain

Range

Voltage

Excitation

Output

UNKNOWN

×

×

 

V

IN

V

DD

R

FB

ADC

LPF

Z

UNKNOWN

V

OUT

CURRENT TO VOLTAGE

GAIN SETTING RESISTOR

PGA

(X1 OR X5)

0

544

9-

02

7

 

Figure 27. AD5934 System Voltage Gain 

For example, assume the following system calibration settings: 

VDD = 3.3 V 
Gain setting resistor = 200 kΩ 
Z

UNKNOWN

 = 200 kΩ 

PGA setting = ×1 
Range 1 = 2 V p-p 

The peak-to-peak voltage presented to the ADC input is 2 V p-p. 
However, if a programmable gain amplifier setting gain of ×5  
is chosen, the voltage saturates the ADC, and, as a result, the 
calculated calibration term (that is, the gain factor) is inaccurate. 

The gain factor should be calculated when the largest response 
signal is presented to the ADC while ensuring that the signal  
is maintained within the linear range of the ADC over the 
impedance range of interest. (The reference range of the ADC  
is the supply AVDD.) 

Therefore, based on your knowledge of the unknown 
impedance span over the frequency range of interest, correctly 
configure the system gain settings (see Figure 27). These 
settings include the output excitation voltage range (Range 1, 
Range 2, Range 3, or Range 4), the current-to-voltage amplifier 
gain setting resistor, and the programmable gain amplifier 
setting (either ×1 or ×5) that precedes the ADC. 

Select a calibration impedance value that is approximately 
halfway between the limits of the unknown impedance 
(therefore, the impedance limits must be known to correctly 
calibrate the system). Then, choose a value for the I-V gain 
setting resistor that is equal to the calibration impedance. This 
results in a unity gain condition on the receive side of the 
current-to-voltage amplifier.  

For example, assume the following: 

 

The unknown test impedance limits are defined by 

220

180

UNKNOWN

Z

 

 

The frequency range of interest is 30 kHz and 32 kHz 

 

The following are the system calibration gain settings: 

VDD = 3.3 V 
Gain setting resistor (RFB) = 200 kΩ 
Z

CALIBRATION

 = 200 kΩ 

PGA setting = ×1 
Calibration frequency = 31 kHz (midpoint frequency) 

The gain factor calculated at the midpoint frequency of 31 kHz 
can be used to calculate any impedance in the 180 kΩ to 220 Ω 
range. If the unknown impedance span or the frequency sweep 
is too large, the accuracy of the calculated impedance 
measurement degrades. In addition, if any of the calibration 
system gain settings change, you must recalibrate the AD5934 
and recalculate the gain factor (see the 

AD5934

 data sheet for 

further details). 

 

Summary of Contents for EVAL-AD5934EB

Page 1: ...AD5934 and the application software developed to interface to the device The AD5934 is a high precision impedance converter system that combines an on board frequency generator with a 12 bit 250 kSPS ADC The frequency generator allows an external complex im pedance to be excited with a known frequency The response signal from the impedance is sampled by the on board ADC and the DFT is processed by...

Page 2: ...on Descriptions 7 Getting Started 8 Setup Sequence Summary 8 Step 1 Install the Software 8 Step 2 Connect the USB Cable 9 Step 3 Verify the Links and Power Up the Evaluation Board 10 Step 4 Perform a Frequency Sweep 10 Frequently Asked Questions About Installation 13 Source Code for Impedance Sweeps 15 Evaluation Board Source Code Extract 16 Gain Factor Calculation 20 Impedance Measurement Tips 20...

Page 3: ...ound plane at a single point underneath the board LINK FUNCTIONS Table 2 Link Function Descriptions Link No Function LK1 Link 1 is used to connect the output of the optional user supplied external operational amplifier U1 to the VOUT SMB connector see Figure 1 This op amp can be used to amplify buffer the output excitation voltage from the AD5934 Link 1 is used in conjunction with Link 6 and Link ...

Page 4: ...ting amplifier user supplied which is accomplished by removing Link 6 and inserting Link 1 and Link 2 When link 6 is inserted the output of AD5934 is connected directly to the VOUT SMB connector When this link is inserted Link 1 and Link 2 must be removed When Link 6 is removed the output of the AD5934 is not connected directly to the VOUT SMB connector therefore Link 1 and Link 2 must be inserted...

Page 5: ... Pin 6 of the AD5934 or an amplified version depending on the status of LK1 LK2 and LK6 assuming the presence of a user supplied external op amp at U1 see Figure 1 VIN This connector takes the response signal current from across the impedance being analyzed ZUNKNOWN which is connected between the VIN and VOUT SMB connectors and provides a path back to the input pin VIN Pin 5 Link 7 must be inserte...

Page 6: ... LK10 LK5 C25 10µF C26 0 1µF C30 10µF C28 0 1µF C2 10µF C24 0 1µF C29 10µF C27 0 1µF LK8 LK9 C42 15pF VOUT VIN VDD_AMP R4 R3 R1 50Ω DGND CLK1 DGND VDD O P GND XTAL1 C1 0 1nF 4 3 2 DVDD_5V AVDD_SIG AVDD_REF DGND DVDD_5V LK1 DGND DGND T7 T8 SCL SDA VDD_REF AGND DGND AD820 U1 OUT LK4 R2 LK11 5VUSB NC NO CONNECT TEST IMPEDANCE FEEDBACK RESISTOR C41 Figure 2 Setup Link Position Circuit A 15 pF Capacito...

Page 7: ...VIN Input to Receive Transimpedance Amplifier Presents a virtual earth voltage of VDD 2 6 VOUT Excitation Voltage Signal Output 8 MCLK Master Clock for the System User Supplied 9 DVDD Digital Supply Voltage 10 AVDD1 Analog Supply Voltage 1 11 AVDD2 Analog Supply Voltage 2 12 DGND Digital Ground 13 AGND1 Analog Ground 1 14 AGND2 Analog Ground 2 15 SDA I2 C Data Input Open drain pins requiring 10 kΩ...

Page 8: ...ent operating system settings See the Step 2 Connect the USB Cable section 3 Ensure that the appropriate links are made throughout the evaluation board Power up the evaluation board appropriately prior to opening and running the evaluation software program See the Step 3 Verify the Links and Power Up section 4 Configure the main dialog box of the evaluation board software to run the required sweep...

Page 9: ... Error Message STEP 2 CONNECT THE USB CABLE Plug one end of the USB cable into the computer USB hub and connect the other end to the AD5934 evaluation board USB socket see J1 in Figure 37 A message may appear informing you that a USB device has been detected on the host computer and that new hardware has been found see Figure 10 05449 010 Figure 10 USB Device Detected by Host Computer The Found Ne...

Page 10: ...terface panel along with a frequency sweep impedance profile for a 200 kΩ resistive impedance note that RFB 200 kΩ This section describes how to set up a typical sweep across a 200 kΩ impedance when RFB 200 kΩ using the installed AD5934 software The theory of operation and the internal system architecture of the AD5934 device are described in detail in the AD5934 data sheet This is available at ww...

Page 11: ... is accurately measured calibration impedance connected between the VIN and VOUT pins of the AD5934 The choice of calibration impedance topology for example R1 in series with C1 R1 in parallel with C1 etc depends on the application in question However you must ensure that each component of the measured calibration impedance is entered correctly into each chosen topology component text box see Arro...

Page 12: ...or example if you change the output excitation range PGA gain etc after the system has been calibrated that is after the gain factor s have been calculated it is necessary to recalculate the gain factor s in order to sub sequently obtain accurate impedance measurement results The gain factor s calculated in software are not programmed into the AD5934 RAM and are only valid when the evaluation soft...

Page 13: ...uced through the output amplifiers the receive I V amplifier the low pass filter etc along with the phase through the impedance ZØ being analyzed which is connected between VOUT and VIN Pin 6 and Pin 5 of the AD5934 The phase of the system must be calibrated using a resistor before any subsequent impedance phase ZØ measurement can be calculated You need to perform the calibration with a resistor i...

Page 14: ...e AD5934 device drivers have not been installed to the correct registry and therefore cannot be correctly located by the install wizard To reinstall the device drivers right click My Computer and then left click Properties On the Hardware tab choose Device Manager Expand Other devices see Figure 24 Right click USB Device and then left click Uninstall Driver Unplug the evaluation board and wait app...

Page 15: ... the flowchart will be explained with the help of Visual Basic code extracts The evaluation board source code Visual Basic is available upon request from the Analog Devices Technical Support Center The firmware code C code which is downloaded to the USB microcontroller connected to the AD5934 implements the low level I2 C signal control that is read and write vendor requests The Evaluation Board S...

Page 16: ...p frequency Dim Increment As Long used as a temporary counter Dim i As Integer used as a temporary counter in max min mag phase loop Dim xy As Variant used in the stripx profile Dim varray As Variant Dim Gainfactor as double either a single mid point calibration or an array of calibration points Dim TempStartFrequency As Double Dim StartFrequencybyte0 As Long Dim StartFrequencybyte2 As Long Dim St...

Page 17: ...ts in the sweep Frequency StartFrequency the sweep starts from here PROGRAM 30K Hz to the START FREQUENCY register DDSRefClockFrequency 16E6 Assuming a 16M Hz clock connected to MCLK StartFrequency 30E3 frequency sweep starts at 30K Hz TempStartFrequency StartFrequency DDSRefClockFrequency 16 2 27 dial up code for the DDS TempStartFrequency Int TempStartFrequency 30K Hz 3D70A3 hex StartFrequencyby...

Page 18: ...Register H80 H10 msDelay 2 this is a user determined delay dependant upon the network under analysis 2ms delay Start the frequency sweep Start Frequency Sweep WritetToControlRegister H80 H20 Enter Frequency Sweep Loop ReadbackStatusRegister PortRead HD H8F ReadbackStatusRegister ReadbackStatusRegister And H4 mask off bit D2 i e is the sweep complete Do While ReadbackStatusRegister 4 And Increment ...

Page 19: ... this is determined at calibration see gain factor section and Datasheet Impedance 1 Magnitude GainFactor Write Data to each global array MagnitudeArray IndexArray Impedance PhaseArray IndexArray sweep_phase ImagineryDataArray IndexArray ImagineryData code IndexArray Magnitude RealDataArray IndexArray RealData Increment Increment 1 increment was set to number of increments of sweep at the start Fr...

Page 20: ...2 V p p The peak to peak voltage presented to the ADC input is 2 V p p However if a programmable gain amplifier setting gain of 5 is chosen the voltage saturates the ADC and as a result the calculated calibration term that is the gain factor is inaccurate The gain factor should be calculated when the largest response signal is presented to the ADC while ensuring that the signal is maintained withi...

Page 21: ... Resistance Value Typ Range 1 2 V p p 200 Ω Range 2 1 V p p 2 4 kΩ Range 3 0 4 V p p 1 0 kΩ Range 4 0 2 V p p 600 Ω Therefore to accurately calibrate the AD5934 to measure small impedances it is necessary to reduce the signal current by sufficiently attenuating the excitation voltage and to account for the output series resistance value ROUT by factoring it into the gain factor calculation see the...

Page 22: ...DDS core and DAC which together generate the excitation signal used to measure the impedance ZUNKNOWN The DDS core has a 27 bit phase accumulator allowing subhertz 0 1 Hz frequency resolution The output of the phase accumulator is connected to the input of a read only memory ROM The digital output of the phase accumulator is used to address individual memory locations in the ROM The digital conten...

Page 23: ...es the 1024 samples required for the single point DFT to cover an integer number of periods of the current excitation frequency SAMPLES SPAN ENTIRE EXCITATION PERIOD SAMPLE WINDOW DFT ASSUMES A PERIODIC SAMPLE SET 05449 029 Figure 29 Sample Set Spanning the Entire Excitation Period SAMPLES DO NOT SPAN ENTIRE EXCITATION PERIOD DFT ASSUMES A PERIODIC SAMPLE SET 05449 030 Figure 30 Sample Set not Spa...

Page 24: ...er ADC conversion clock speed and the upper excitation limit is now restricted to 7 8125 kHz Measuring Higher Excitation Frequencies The AD5934 is specified to a typical system accuracy of 0 5 within the frequency range of 1 kHz up to 100 kHz assuming the AD5934 system is calibrated correctly for the impedance range being tested The lower frequency limit is determined by the value of the system cl...

Page 25: ...s on the transmit and receive sides of the AD5934 the low pass filter and the impedance connected between the VOUT and VIN pins of the AD5934 The parameters of interest for many users of the AD5934 are the magnitude of the impedance ZUNKNOWN and the impedance phase ZØ The measurement of the impedance phase ZØ is a two step process The first step involves calculating the AD5934 system phase The AD5...

Page 26: ...rd phase angle is dependant on the sign of the real and imaginary components see Table 7 for a summary Figure 34 System Phase Response vs Capacitive Phase Table 7 Phase Angle 100 90 80 70 60 50 0 40 30 20 10 PHASE Degrees 0 15k 30k 45k 60k 75k 90k 105k 120k FREQUENCY Hz 05449 035 Real Imaginary Quadrant Phase Angle Degrees Positive Positive First π 180 tan 1 R I Positive Negative Second π 180 tan ...

Page 27: ...Preliminary Technical Data EVAL AD5934EB Rev PrC Page 27 of 32 EVALUATION BOARD SCHEMATIC 05449 036 Figure 36 Schematic ...

Page 28: ...EVAL AD5934EB Preliminary Technical Data Rev PrC Page 28 of 32 05449 037 Figure 37 Schematic ...

Page 29: ...Preliminary Technical Data EVAL AD5934EB Rev PrC Page 29 of 32 05449 038 Figure 38 05449 039 Figure 39 Schematic ...

Page 30: ...EVAL AD5934EB Preliminary Technical Data Rev PrC Page 30 of 32 ORDERING INFORMATION ORDERING GUIDE Model Description EVAL AD5934EB Evaluation Board ESD CAUTION ...

Page 31: ...Preliminary Technical Data EVAL AD5934EB Rev PrC Page 31 of 32 NOTES ...

Page 32: ...934EB Preliminary Technical Data Rev PrC Page 32 of 32 NOTES 2005 2007 Analog Devices Inc All rights reserved Trademarks and registered trademarks are the property of their respective owners EB05449 0 7 07 PrC ...

Reviews: