Hey everyone,
still having problems with calibration of AFE4300. Gonna measure impedance in FWR mode, my schematic has 2 references resistors, 99.7 Ohms and 997 Ohms.
When my afe4300 starts, I prepare registers to calibrate the board
write_register(ADC_CONTROL_REGISTER1,0x4120); //Differential measurement mode, 32 SPS write_register(MISC_REGISTER1,0x0000); write_register(MISC_REGISTER2,0xFFFF); write_register(DEVICE_CONTROL1,0x6006); //Power up BCM signal chain write_register(VSENSE_MUX,0x0201); //VSENSERN0 - VSENSERP1 write_register(VSENSE_MUX,0x0202); //VSENSERN1 - VSENSERP1 write_register(ISW_MUX,0x0408); //VSENSEP0 - VSENSEN1 write_register(ISW_MUX,0x0408); //IOUTP0 - IOUTN1 write_register(IQ_MODE_ENABLE,0x0000); write_register(WEIGHT_SCALE_CONTROL,0x0000); write_register(BCM_DAC_FREQ,0x0020); //0x0040 write_register(DEVICE_CONTROL2,0x0000); write_register(ADC_CONTROL_REGISTER2,0x0063); //ADC selects output of BCM-I output write_register(MISC_REGISTER3,0x0030);
How can I get the ADC code of each references resistor?
I guess I need to read_register(ADC_DATA_RESULT) twice, but where I have to put it? After the 1st ISW_MUX and the 2nd ISW_MUX?