Hi,
I am trying to use diagnostic feature of AFE4490.
My sequence is :
1. I am waking up sensor by writing 1 at PWDN pin.
2. Soft reset the sensor.
3. Initialize afe4490. (Intialize Uart and register for interrupt).
4. Enable diagnostic mode by writing 0x000004 to control register 1.
5. after around 100ms , I am reading value from DIAG_DATA. (0x30).
now for normal case , I am getting output = 0 which is correct, but when I am shorting one LED (RED) by shorting both end of it, it's not giving any flag as 1. output is still 0.
IS there any mistake for diagnostic sequence?
In datasheet it's mentioned that we need to enable modules before starting diagnostic.Is that necessary? How do I do that?