Post Go back to editing

AD5934(EVAL-CN0349) output frequency problem

Dear All,

I have some problem with the output frequency on my EVAL-CN0349 board. I found out this problem in connection of my other issue(Measure conductivity below 25us with EVAL-CN0349 (AD5934) ).

So I measured the output frequency on my eval board and it seems that it cannot genarate the proper output frequency. The voltage is proper. So I started to debug my code to see if I made any mistakes. I found one and corrected it, now I can set the system clock bit in the control register just fine. The start frequency code is calculated and written into the device properly. I checked it. 
I want to set 30kHz but I only get  around 6kHz in case of internal clock(today I will try to measure the output frequency at more setpoints and I will refresh this post), the frequency increment works but also not properly. The device increments the frequency but not with the given value it seems. 

I started to read some discussions on the forums and I found the next:

AD5933: Initialize With Start Frequency Command Not Working 
in which snorlax states the following:

Also make sure that the chip is not the AD5934 - the version that does not have the internal oscillator. 

 

Now these confused me. Can somebody help me to clarify this?

Is there internal 16MHz clock in the AD5934? (According to its datasheet yes, and my setup works with the internal clock setting just the frequency is not proper)

 

As the  documentation of the circuit states(http://www.analog.com/media/en/reference-design-documentation/reference-designs/CN0349.pdf ) :

 

The frequency of the clock applied to the MCLK pin is set to
1 MHz using a stable, low jitter, FXO-HC536R-1 (U6) quartz
crystal oscillator. This oscillator allows the AD5934 to excite the
conductivity cell with a frequency of 2 kHz, which is well suited
for conductivity measurements.

 

Naturally I tried the measurements with the output clock but the output frequency is not good in this case either.

 

What else could I do to correct the output frrequency, or what should I check? I have checked the following things:

-clock setting in the control register OK

-start frequency code OK

-increment frequency code OK

-start frequency and increment frequency code write to the registers OK 

 

Thanks for the help!

Parents
  • The chart is probably a good starting point, but do your own research of the matter. As your low-end frequency becomes lower the “DFT” artifacts start appearing in the data and the lower the frequency the greater the systematic error they cause (generally speaking). It is a continuum, and where those errors cross the acceptable threshold depends on your application. Personally I find the first line in the chart should be 100 KHz – 10 KHz, other ranges are OK, but probably not optimal for your specific application. You can figure out those ranges by observing the error similarly to what you have measured so far.

    If you need your microcontroller and the measurement circuit to share the power supply, the ADuM1250 are not needed at all – useful only if your measurement circuit must be galvanicly decoupled from the rest of the system, for example, if you measure the impedance of a human and want to make sure one does not get electrocuted in the unlikely event your power supply fails. You might need to be a bit more careful with your design to avoid ground loops between the microcontroller and the measurement circuit, so that the latter does not pick up excessive digital noise, but that alone hardly justifies the use of the decouples such as ADuM1250.

    The DS1077 was just a functional suggestion; there are similar parts that work with 3.3V: DS1085L for example. Using too low MCLK frequency does not make much sense unless you need really low-frequency excitation voltage – otherwise the digital approximation of the sine wave is too crude. Just get rid of U4 and U5 and feed the MCLK input from your microcontroller PWM (for 2 KHz excitation you probably still need something like 1-4 MHz to keep the excitation sine wave reasonably accurate).

Reply
  • The chart is probably a good starting point, but do your own research of the matter. As your low-end frequency becomes lower the “DFT” artifacts start appearing in the data and the lower the frequency the greater the systematic error they cause (generally speaking). It is a continuum, and where those errors cross the acceptable threshold depends on your application. Personally I find the first line in the chart should be 100 KHz – 10 KHz, other ranges are OK, but probably not optimal for your specific application. You can figure out those ranges by observing the error similarly to what you have measured so far.

    If you need your microcontroller and the measurement circuit to share the power supply, the ADuM1250 are not needed at all – useful only if your measurement circuit must be galvanicly decoupled from the rest of the system, for example, if you measure the impedance of a human and want to make sure one does not get electrocuted in the unlikely event your power supply fails. You might need to be a bit more careful with your design to avoid ground loops between the microcontroller and the measurement circuit, so that the latter does not pick up excessive digital noise, but that alone hardly justifies the use of the decouples such as ADuM1250.

    The DS1077 was just a functional suggestion; there are similar parts that work with 3.3V: DS1085L for example. Using too low MCLK frequency does not make much sense unless you need really low-frequency excitation voltage – otherwise the digital approximation of the sine wave is too crude. Just get rid of U4 and U5 and feed the MCLK input from your microcontroller PWM (for 2 KHz excitation you probably still need something like 1-4 MHz to keep the excitation sine wave reasonably accurate).

Children
No Data