Hi Analog Team,
We are interfacing ADPD4100 with nRF52840 MCU.
We have set dcfg Register Basic Configuration as:-
{0x00B4, 0x0010},
// {0x0009, 0x0094}, // 72 frequency adj
// {0x000B, 0x02EA}, //02CA 1mhz freq adj
{0x0100, 0x0100}, // 40DA
{0x000D, 0x03EB}, // setting the sampling rate // 2710 C350 20HZ C8=5khz ,
{0x000f, 0x0006}, // (1Mhz internal low freq osc)
//{0x0020, 0x0002}, // INP sleep in1 is connected to vc1
{0x0022, 0x0003}, // gpio config pin output invert
{0x0023, 0x0002}, // gpio 0 is int x
{0x0014, 0x8000}, // interrupt enable th_fifi
{0x0021, 0x0000}, // in1 connected to the single ended
{0x0006, 0x003B}, // setting the size of fifo thrshoul
{0x0101, 0x40DA}, // setting the analog path
{0x0102, 0x0001}, // IN1 connected to channel1
{0x0103, 0x5002}, // precondition with TIAVref and vc1 sel tia +215mv
{0x0104, 0x03C0}, // 13C2// AFE trim Vref 1,265 &madulatevref1.265 ,channel1 200k
{0x0105, 0x0F0F}, //
//{0x0106, 0x1919}, //
{0x0107, 0x0108}, // number of 4 pulses
{0x0108, 0x0000}, // mode selection
{0x0109, 0x0210}, // led pulse 2micro width, offset 16microsec
{0x010A, 0x0003}, // integrator clock width 3 microsec
{0x010B, 0x0206}, // int offset 16us and led width 2us 0210
{0x010C, 0x0201},
{0x010D, 0x0099}, // CHOPE MODE 99
{0x010E, 0x0000},
{0x0110, 0x0004}, // 3 bytesom
{0x0010, 0x0000}, // time slot A enable *
Note : We are following the Driver provided on this link : adpd-drivers/adpd40xx at master · analogdevicesinc/adpd-drivers (github.com)
After doing basic configuration the led's on the adpd4100 module are glowing. Now we are trying to extract Data from the FIFO. Some random data is coming and also not refreshing. We are not able to understand the main cause.
We followed this link main.cpp firmware for FIFO reading :- adpd-drivers/main.cpp at master · analogdevicesinc/adpd-drivers (github.com)
We tried reading status of fifo using FIFO_ STATUS register, we are receiving 2200(hex) value.
Questions :-
1.) Please suggest what wrong i may be doing from the Firmware side ?
2.) Pls share something on how to read data from the FIFO ?
Thank You
Added details
[edited by: SloneShrub at 1:26 PM (GMT -5) on 15 Dec 2021]