Part Number: ADS124S06
Hello,
I'm trying to perform a self offset calibration on ADS124S06 but it seems that nothing is happening. I was expecting see, for example, a rising and fallings edges on pin DOUT/~DRDY, but it didn't occurs. I have already tested the same functionality in a onrmal (single) convertion on channels AIN0 and AIN1 and it works.
I was also expecting a change on offset calibration registers, but I read them before and after the self calibration and they remain the same.
Does anyone have a clue on what I may be doing wrong?
Please see below the code snippet that I'm using:
To perform the tests, I'm using a osciloscope to watch ADS pins, and executing the code step by step on debug mode. During debug, I am taking care to stop the code before rising the CS signal from ADS.
on ADS124S06.c file ...
void ADS124S06_sendCommand(unsigned char op_code)
{
ADS124S06_CS(LO);
xferByte(op_code); // this line simple send a byte on SPI (this is working!)
ADS124S06_CS(HI); ---> breakpoint here!!!
return;
}
on main.c file ..
unsigned char vucData[14];
...
ADS124S06_readRegs(OFCAL0_ADDR_MASK, 6, vucData);
ADS124S06_sendCommand(SFOCAL_CMD);
ADS124S06_readRegs(OFCAL0_ADDR_MASK, 6, vucData);
..