Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 24339

Re: AD7793 internal calibration leads to seemingly random readings

$
0
0

Thank you! Here's the code I use to carry out the calibration:

 

unsigned int command;

 

command &= ~AD7793_CONF_CHAN(0xFF);

command |= AD7793_CONF_CHAN(AD7793_CH_AIN1P_AIN1M);

SetRegisterValue(AD7793_REG_CONF, command, 2);

 

command = ( AD7793_MODE_SEL(AD7793_MODE_CAL_INT_FULL) |               AD7793_MODE_RATE(AD7793_RATE_50) );

 

SetRegisterValue(AD7793_REG_MODE, command, 2);

WaitRdy();

 

command = ( AD7793_MODE_SEL(AD7793_MODE_CAL_INT_ZERO) |               AD7793_MODE_RATE(AD7793_RATE_50) );

 

SetRegisterValue(AD7793_REG_MODE, command, 2);

WaitRdy();


Viewing all articles
Browse latest Browse all 24339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>