I'm having difficulty reliably triggering the sequencer. Roughly once in every 10,000 measurements the sequence fails to run.
I'm triggering with:
AD5940_SEQMmrTrig(0);
while(!AD5940_GetMCUIntFlag())
{
// sleep
}
AD5940_ClrMCUIntFlag();
if(AD5940_INTCTestFlag(AFEINTC_0, AFEINTSRC_DATAFIFOTHRESH) == bTRUE)
{
// do stuff
} else
{
// error
}
I'm using AD5940_SEQGpioCtrlS(AGPIO_Pin2); at the top of the sequence and AD5940_SEQGpioCtrlS(0); at the end to indicate activity; MCUInt is triggered by the negative edge.
Is there a way I can see over SPI that a sequence is in progress?
Is there any form of error response if an SPI transaction fails?
Thanks
- Eric VanWyk