This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AFE4404EVM: Incorrect data from AFE4404

Part Number: AFE4404EVM
Other Parts Discussed in Thread: AFE4404

Hello,

I'm controlling AFE4404 EVM with an Arduino. I can write and read from the registers so I2C works. Hovewer when I read the data after ADC_RDY interrupt the data I get is incorrect. I attached some data values I got from the AFE4404(the values are:LED2VAL,LED3VAL,LED1VAL,ALED1VAL,LED2-ALEDVAL,LED1-ALED1VAL;     where every row is a new sample). As you can see the data sunddenly decreese to a really low value. I checked the device with AFE4404 EVM software and I get correct values and waveform. 

I think I missing something. Do I need to do something with the data after get it from the AFE?

16771336,16747197,16772469,16773040,24037,16776859;
16772389,16747766,16772611,16773458,24071,16776623;
16772338,16748569,16772906,16773636,24105,84;
16772997,16749341,16773679,16773097,23706,16776998;
16772706,16749071,16773355,16773651,24050,881;
16773088,16748867,16774506,16773206,22971,763;
16772834,16749632,16773858,16773402,24139,1917;
16773365,16749362,16774634,16773151,23692,1657;
16773391,16749603,16775202,16773133,24950,1798;
16773505,16748885,16772950,16773093,26003,16776796;
16772775,16747208,16772666,16772775,25492,16776314;
16773932,16748385,16772578,16773128,25218,16776685;
16773222,16749117,16771811,16772878,24952,16776932;
16773757,16749347,16772192,16773331,24444,16776478;
16774179,16748825,16771972,16773095,25635,16775997;
16774181,16749172,16771523,16772876,25832,16775268;
16774762,16748932,16771612,16773469,24333,16775659;
16774504,16750153,16772147,16773346,24363,16776636;
16774939,16750325,16772405,16772647,24857,16776979;
16775139,16751202,16772525,16772667,24055,16777121;
16775521,16751536,16772658,16773474,24107,16776517;
16775638,16751324,16772882,16773166,23387,16777179;
16775697,16751763,16773079,16773516,23813,567;
16776008,16752563,16773114,16772799,23457,16777133;
16776665,16753545,16773738,16773413,23613,591;
16776800,16753409,16773940,16772694,22390,2066;
207,16754160,16774626,16773244,22904,2159;
16776514,16753475,16773527,16772624,24527,16776274;
16775706,16751316,16770883,16773116,22367,16773654;
16775058,16751679,16768715,16773453,22704,16772689;
16775620,16752953,16767744,16772936,24239,16771865;
16776851,16752667,16766621,16773129,23395,16770531;
16776765,16753672,16766440,16773433,22353,16769430;
16775828,16753523,16765284,16773304,22680,16768869;
16776776,16753705,16764145,16772987,24133,16768508;
493,16754233,16764099,16773489,21884,16767989;
81,16754392,16764186,16772816,22973,16768521;
905,16755635,16764477,16773415,21415,16768608;
647,16755898,16764805,16772449,21888,16769365;
1272,16756023,16765116,16772804,22622,16768744;
1537,16757119,16765099,16773636,21536,16769565;
1825,16757720,16766402,16772824,21038,16770419;
2549,16758247,16765807,16773241,22629,16770418;
2929,16757743,16767191,16773169,21885,16770823;
3230,16759155,16767151,16772985,21072,16771722;
2722,16759184,16767895,16772984,22099,16773139;
3956,16759518,16768729,16773302,21546,16771665;
3967,16759398,16766724,16772866,21682,16768967;
3205,16758081,16763373,16773067,22287,16766673;
3530,16759207,16760504,16773021,21819,16764476;
4084,16758751,16759974,16773093,22648,16763556;
3211,16758789,16758259,16773142,22353,16762473;
3724,16758460,16757996,16773212,21675,16761317;
4183,16759678,16757229,16773167,21526,16760635;
4078,16759970,16756400,16772685,22110,16760726;
5244,16760220,16756122,16773337,22032,16759918;
4900,16760581,16756584,16772634,21968,16760587;
4880,16761171,16757318,16772943,21930,16762244;
5996,16761771,16757217,16772773,20451,16761229;
6479,16761920,16758010,16773454,20105,16761756;
6184,16763771,16757977,16773276,21375,16762366;
6246,16762921,16758194,16773050,20894,16763366;
7295,16762971,16759281,16773077,21344,16763003;
7434,16763828,16758953,16772718,20033,16763996;
7678,16764134,16760055,16773314,20237,16764513;
7700,16765009,16761272,16772774,18842,16765144;
7849,16765091,16761760,16772943,19298,16766495;
8102,16765967,16761876,16772839,19184,16765791;
8108,16765077,16760176,16773253,21526,16762391;
7306,16763542,16756511,16773303,20022,16759410;
7096,16764836,16752998,16773411,21858,16756901;
8712,16763745,16752302,16773225,20356,16755105;
7767,16764777,16750613,16772820,22180,16754971;
8806,16763610,16750507,16772887,19315,16753641;
8257,16764211,16749397,16773009,21829,16753253;
9304,16765110,16748147,16773305,19955,16752013;
8233,16764568,16748495,16773346,19355,16752431;
9436,16765846,16748183,16773059,21307,16752206;
8829,16765668,16749480,16773078,19460,16753793;
9986,16766901,16749422,16772940,20188,16754124;
10048,16766997,16750239,16773413,20668,16753977;
10441,16767804,16750088,16773086,19972,16755087;
10481,16768022,16751308,16773197,19611,16755812;
11177,16768069,16751884,16773140,20936,16756165;
11393,16768309,16752728,16773327,20049,16757026;
11753,16768700,16753425,16772803,20154,16757898;
11515,16769731,16754557,16773554,19448,16758962;
12205,16770466,16755191,16773060,20095,16759522;
12357,16770577,16756560,16773047,19996,16761191;
12411,16770711,16756832,16773025,18472,16761378;
11528,16770650,16756685,16773314,20617,16759813;
11970,16768777,16751721,16773164,20217,16753815;
12303,16769151,16748537,16773519,20291,16751892;
11962,16769305,16747080,16773006,20674,16750662;
11893,16768895,16745728,16773762,20687,16750049;
12662,16769820,16746050,16773065,19475,16748992;
12622,16768566,16745404,16773076,21098,16749255;
12704,16769380,32192,16773066,20484,16748322;
13131,16770080,32514,16773274,19019,16748112;
13277,16769871,16745047,16773144,20001,16749694;
13670,16770763,16745446,16772802,19653,16749339;
13693,16771257,16746034,16773426,20357,16751455;
14147,16770885,16747724,16772808,20407,16751544;
15104,16772360,16748428,16773004,19019,16752690;
14139,16772661,16748811,16773253,19121,16753397;
15006,16772831,16749745,16772866,20076,16754700;
15092,16773149,16750549,16773583,19287,16755168;
15667,16773996,16751417,16772624,17817,16756189;
15503,16773800,16752440,16772852,17980,16756248;
15552,16774653,16753201,16773519,18491,16758213;
15879,16774699,16754301,16772701,18255,16759396;
16006,16775189,16755105,16773691,18420,16759333;
16134,16775500,16755846,16772805,17722,16759646;
15409,16773798,16752598,16772653,19400,16754436;
14902,16772705,16747471,16773480,19734,16750945;
15029,16772454,16745961,16772994,19175,16748896;
14675,16773119,32336,16773064,20051,16748490;
15386,16772489,32282,16772776,20293,16747317;
15662,16773279,31061,16773139,19564,16747060;
14917,16773206,30601,16772870,19439,16746095;
15018,16773263,30053,16773557,18486,16745656;
16054,16773994,29554,16772796,18256,16745434;
16112,16774175,29852,16772470,18016,16746160;
16121,16774291,30406,16773536,18772,16746001;
16651,16775640,31149,16772822,17476,16747492;
16283,16775274,31670,16773382,18942,16747165;
16912,16776158,31912,16772838,17294,16748559;
16644,16776126,32549,16773632,18102,16748100;
16705,16776110,16745120,16772770,16972,16749515;
16707,16776037,16745487,16773431,18166,16750889;
17525,332,16747336,16772843,17984,16751150;
18070,708,16747328,16773143,17021,16751586;
17535,420,16748752,16773160,16925,16753171;
17201,1077,16749304,16773038,17648,16754275;
18027,484,16750222,16773372,15784,16752547;
16266,16777143,16746811,16772901,19196,16747673;
16460,16774248,28955,16773114,19905,28639;
15487,16772595,22312,16772819,19517,23665;
13355,16769610,16203,16772911,21189,17971;
11195,16767175,11399,16773373,23616,12543;
9643,16762607,5618,16772905,26579,7442;
7320,16754686,16777202,16773081,16751532,16775394;

The data comes from: VALUE=((V_code[2]<<16) | (V_code[1]<<8) | (V_code[0]))&0xFFFFFF;

Thanks in advance, Joan