porting the AD5940 EDA_example to ADUCM3029 - AD5940 design

Dear all,

    I have recently evaluated the EDA signal using the AD5940 evaluation shield working on the ADICUP3029 base board. For my design I'm using the AD5940 to get the EDA signal.

owever when running the code the console is showing these messages (I have commented the while(1); in the void AD5940_Initialize(void) to complete the execution):

CHIPID read error:0xffff. AD5940 is not present?
Note: Current Silicon is S1
AD5940LIB Version:v0.1.6
Freq:inf

When I run the original code on the eval board ADICUP3029 eval board the console shows this messages.

Hello AD5940-Build Time:20:59:28
Note: Current Silicon is S1
AD5940LIB Version:v0.1.6
Freq:32118.214844

Then I start receiving data.

Rtia:45000.00,(Real,Image):(nan,nan)Ohm---Mag:nanOhm,Phase:nan`
Rtia:45000.00,(Real,Image):(nan,nan)Ohm---Mag:nanOhm,Phase:nan`
Rtia:37500.00,(Real,Image):(34114.08,73148.95)Ohm---Mag:80712.70Ohm,Phase:65.00`
Rtia:37500.00,(Real,Image):(34115.27,73155.49)Ohm---Mag:80719.13Ohm,Phase:65.00`
Rtia:49083.85,(Real,Image):(16159.74,113030.81)Ohm---Mag:114180.13Ohm,Phase:81.86`
Rtia:49083.85,(Real,Image):(16157.96,113058.68)Ohm---Mag:114207.47Ohm,Phase:81.87`
Rtia:12032.28,(Real,Image):(2785938.25,-2001730.75)Ohm---Mag:3430507.00Ohm,Phase:-35.7

Why the frequency is noted as inf?



rectified
[edited by: aminated at 7:14 PM (GMT 0) on 3 May 2019]
  • 0
    •  Analog Employees 
    on May 2, 2019 10:15 PM

    Hi,

    You are using an outdated version of our SDK. Please refer to our wiki page for links to the latest version: https://wiki.analog.com/resources/eval/user-guides/ad5940

  • I made my evaluation, my tests and the digital signal processing with this SDK. I want to port this version

  • ok I have tried the last library on my EVAL-AD5940ARDZ and EVAL-AD5940BioElect

    the console shows random values

    Hello AD5940-Build Time:12:15:37
    This AD594x!
    Note: Current Silicon is S1
    AD5940LIB Version:v0.2.0
    Freq:32120.105469
    Rtia:43016.64,(Real,Image):(27665.68,132192.50)Ohm---Mag:135056.45Ohm,Phase:78.18`
    Rtia:43016.64,(Real,Image):(6562.23,25433.88)Ohm---Mag:26266.81Ohm,Phase:75.53`
    Rtia:43016.64,(Real,Image):(24148.44,114399.40)Ohm---Mag:116920.35Ohm,Phase:78.08`
    Rtia:43016.64,(Real,Image):(17036.37,113494.23)Ohm---Mag:114765.74Ohm,Phase:81.46`
    Rtia:43016.64,(Real,Image):(24148.44,114399.40)Ohm---Mag:116920.35Ohm,Phase:78.08`
    Rtia:43016.64,(Real,Image):(24148.44,114399.40)Ohm---Mag:116920.35Ohm,Phase:78.08`
    Rtia:43016.64,(Real,Image):(nan,nan)Ohm---Mag:nanOhm,Phase:nan`
    Rtia:43016.64,(Real,Image):(38372.57,116209.74)Ohm---Mag:122381.20Ohm,Phase:71.73`
    Rtia:43016.64,(Real,Image):(3458.78,96813.20)Ohm---Mag:96874.96Ohm,Phase:87.95`
    Rtia:43016.64,(Real,Image):(7726.02,101468.37)Ohm---Mag:101762.08Ohm,Phase:85.65`
    Rtia:43016.64,(Real,Image):(11163.89,106765.63)Ohm---Mag:107347.72Ohm,Phase:84.03`
    Rtia:43016.64,(Real,Image):(17113.95,78813.20)Ohm---Mag:80649.91Ohm,Phase:77.75`
    Rtia:43016.64,(Real,Image):(6562.23,25433.88)Ohm---Mag:26266.81Ohm,Phase:75.53`
    Rtia:43016.64,(Real,Image):(2838.09,100123.54)Ohm---Mag:100163.76Ohm,Phase:88.38`
    Rtia:43016.64,(Real,Image):(-41541.22,62675.26)Ohm---Mag:75192.16Ohm,Phase:123.54`
    Rtia:43016.64,(Real,Image):(17066.21,100155.37)Ohm---Mag:101598.98Ohm,Phase:80.33`
    Rtia:43016.64,(Real,Image):(6562.23,25433.88)Ohm---Mag:26266.81Ohm,Phase:75.53`
    Rtia:43016.64,(Real,Image):(-52403.29,148020.09)Ohm---Mag:157022.45Ohm,Phase:109.50`
    Rtia:43016.64,(Real,Image):(-10661.91,92623.54)Ohm---Mag:93235.16Ohm,Phase:96.57`
    Rtia:43016.64,(Real,Image):(43803.61,73537.33)Ohm---Mag:85594.95Ohm,Phase:59.22`
    Rtia:43016.64,(Real,Image):(32010.51,98054.57)Ohm---Mag:103147.33Ohm,Phase:71.92`
    Rtia:43016.64,(Real,Image):(38372.57,116209.74)Ohm---Mag:122381.20Ohm,Phase:71.73`
    Rtia:43016.64,(Real,Image):(-15161.91,196123.53)Ohm---Mag:196708.72Ohm,Phase:94.42`
    Rtia:43016.64,(Real,Image):(-22323.71,95142.10)Ohm---Mag:97725.98Ohm,Phase:103.20`

  • I have  updated my library and have reached the same problem, the frequency is mentioned to be infinite.

    console:

    CHIPID read error:0xffff. AD5940 is not present?
    This AD594x!
    Note: Current Silicon is S1
    AD5940LIB Version:v0.2.0
    Freq:inf

    How this could be fixed?

  • This my output using the older version of the library (autoscale is false)

    Hello AD5940-Build Time:12:49:14
    Note: Current Silicon is S1
    AD5940LIB Version:v0.1.6
    Freq:32134.275391
    Rtia:45000.00,(Real,Image):(15766.70,112241.34)Ohm---Mag:113343.32Ohm,Phase:82.00`
    Rtia:45000.00,(Real,Image):(16029.56,111931.93)Ohm---Mag:113073.89Ohm,Phase:81.85`
    Rtia:45000.00,(Real,Image):(15776.61,112230.66)Ohm---Mag:113334.12Ohm,Phase:82.00`
    Rtia:45000.00,(Real,Image):(16123.29,111805.22)Ohm---Mag:112961.80Ohm,Phase:81.79`
    Rtia:45000.00,(Real,Image):(16294.20,111562.52)Ohm---Mag:112746.16Ohm,Phase:81.69`
    Rtia:45000.00,(Real,Image):(16301.60,111552.65)Ohm---Mag:112737.46Ohm,Phase:81.69`
    Rtia:45000.00,(Real,Image):(16260.33,111612.62)Ohm---Mag:112790.84Ohm,Phase:81.71`
    Rtia:45000.00,(Real,Image):(16327.26,111515.38)Ohm---Mag:112704.30Ohm,Phase:81.67`
    Rtia:45000.00,(Real,Image):(16258.14,111617.30)Ohm---Mag:112795.16Ohm,Phase:81.71`
    Rtia:45000.00,(Real,Image):(16317.24,111530.30)Ohm---Mag:112717.61Ohm,Phase:81.68`
    Rtia:45000.00,(Real,Image):(16309.28,111539.90)Ohm---Mag:112725.96Ohm,Phase:81.68`
    Rtia:45000.00,(Real,Image):(16291.92,111568.53)Ohm---Mag:112751.78Ohm,Phase:81.69`
    Rtia:45000.00,(Real,Image):(16329.81,111512.50)Ohm---Mag:112701.82Ohm,Phase:81.67`
    Rtia:45000.00,(Real,Image):(16275.76,111591.43)Ohm---Mag:112772.10Ohm,Phase:81.70`
    Rtia:45000.00,(Real,Image):(16350.44,111480.74)Ohm---Mag:112673.39Ohm,Phase:81.66`
    Rtia:45000.00,(Real,Image):(16305.08,111548.45)Ohm---Mag:112733.81Ohm,Phase:81.68`
    Rtia:45000.00,(Real,Image):(16328.53,111514.68)Ohm---Mag:112703.79Ohm,Phase:81.67`
    Rtia:45000.00,(Real,Image):(16340.81,111496.36)Ohm---Mag:112687.45Ohm,Phase:81.66`