AnsweredAssumed Answered

AD7124: Calibration Gets Stuck

Question asked by joshkern Employee on Apr 26, 2018
Latest reply on Apr 26, 2018 by JellenieR

I am seeing some unusual behavior when working with calibration on the EVAL-AD7124-4SDZ board. Both with internal and system calibrations, it seems as though the calibration never finishes. I infer this based on the fact that the RDY bit in the STATUS register never goes low, and the corresponding offset/gain registers are not changing from their default values. This behavior is not always reproducible, and sometimes even if it finishes, the gain/offset registers don't change values. I am using some version of the no-OS drivers that I ported to work on a Nordic processor. The general pseudo code for my routine during calibration is:

 

for channels 0 through 3

      enable active channel

      disable other 3 channels

      turn on specified calibration mode

      read status register

      while (RDY bit is high)

            read status register

 

 

So sometimes it will get stuck in that while loop, and RDY will never go high.

Outcomes