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.

INA237: Writing to Config Register not working

Part Number: INA237

Team,

could you help on this?

At the moment we are experiencing Issues writing to the “CONFIG” register.

Values written to this register are obviously not stored. The strange thing is using the same write routine for other registers like “ADC_CONFIG” works just fine.

 Are issues like this known? 

Thanks

Frank

  • Hello Frank,

    Make sure the value you are writing to the CONFIG register does not have a 1 in bit 15, as this will reset the device and registers. 

    If that is not the issue, please send me a readout of all register values so that I can better analyze the situation. 

  • Hello Mitch, 
    we only set the adc_range bit. At first we got a write operation to set the register pointer, after this we read the reset value of the config register and we get as expected the reset value of 0x0000.

    We write now 0x0008 to set the adc_range bit and we also get an acknowledge by the chip but the readback is again 0x0000

    We tried the same with the adc_config register:

    At first register pointer set, then readout of reset value, now we get 0xFB68. After this we write 0xF000 to the register and the readback is as expected 0xf000. So i suppose that the general communication is working fine.

  • Hello Patrick,

    Ok, I have found the issue. The bit being set while writing 0x08 is part of the reserved bits, to change the ADCRANGE bit you need to write 0x10.