I am using EVAL-CN0395-ARDZ with ADICUP360 as explained in this ADI's Wikipage:
However, I get an error that prevents the program to go into the while(1) program routine.
The error is the Initial Resistance Measurement inside 'CN0395_PowerON(SMeasvar)' function is beyond the maximum range of 62415.The reading triggers the 'ADC Data Error = ' message and prevents to enter the while(1) loop.This value is captured from the ADC AD7988 inside the CN0395 board. The value of 65535 or 0xFFFF indicates the Full Scale Range or Over-ranged condition.The Range setup is int8_t i8GainRangingIndex = AD7988_RS_RAMGE_5; (default value).
I have checked all the jumpers on the ADICUP360 and the CN0395 shield to make sure that everything is in place.
CN0395 jumpers:jumper P1 in +5Vjumper P2 in RH+
Can you please help me what went wrong with the setup?
To me it looks like a hardware issue. Which revision of the board are you using? As I recall, on the first revision, the ADN8810 IDAC was always on standby as the SB_N pin was tied to GND instead of VIO.
One thing you can try, is to check if there is any voltage on the VH testpoint. You can put a breakpoint after this line and see what happens:
Also, can you please check the value of ui16AdcData and fHeaterVoltage calculated here:
The EVAL-CN0395-ARDZ is on 08-043603 REV B Z and The ADICUP360 is REV C
Is this the first revision board?
I will try your suggestion soon.
I think CN0395 REV B should work.
The VH testpoint value is 0.1712 Volt (referenced to AGND).
ADC Reading = 2679Heater voltage = 0.16744 VWhat does these results mean?
By default VH should be 1.8V. Is by any chance the red LED DS1 turned on? If yes, this means that there is a fault.
Can you also try to measure the RH resistance across U2 without plugging in the board? It should be around 110 Ohms. If instead of 110 Ohms, you get a value in KOhms range, then it might be that the sensor got burned.
Please let me know how this goes.