ADC128D818: Mode 2 operation error

Part Number: ADC128D818

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

  • Hi JH,

    Unfortunately it will be a bit hard for me to make an assessment solely based on the code snippet provided. Are you able to provide an oscilloscope or logic analyzer capture instead? This just ensures that any potential issues are isolated from the control software.

    Regards,
    Joel

  • It's best to provide a logic analyzer capture, and export it as a file. You should be able to attach it here if you save as a .zip

    Regards,
    Joel