Tool/software:
Hello,
My customer has an issue with the ADC128D818 not working in Mode 2.
When controlled with the code below, both Internal/External references operate normally in Mode 1.
However, in mode 2, both Internal/External references return 0.
--------------------------------------------------------------------------------------------
HAL_VAL_SENSOR0_EN(1); // power on
HAL_Delay(100); // wait power on (100 ms)
tmp_drv_adc_write(0x00, 0x80); // reset device
tmp_drv_adc_write(0x07, 0x01); // Continuous Conversion
//tmp_drv_adc_write(0x0B, 0x03); // set external reference, mode1
tmp_drv_adc_write(0x0B, 0x05); // set external reference, mode2
//tmp_drv_adc_write(0x0B, 0x04); // set internal reference, mode2
//tmp_drv_adc_write(0x0B, 0x02); // set internal reference, mode1
tmp_drv_adc_write(0x00, 0x01); // start
tmp_drv_adc_read(0x20);
tmp_drv_adc_read(0x21);
----------------------------------------------------------------------------------------------
Please advise on the cause and solution of this issue
Thank you.
JH