Currently I'm using microchip to communicate with AD7192. I'm using all the 4 channel of AD7192 and therefore I need to switch from channel 1 to channel 4 to get analog data.
In this case, I would need to set the Configuration register of AD7192 to the respective channel or mode that we want to work in. For e.g, if I wants to read channel 1 analog reading, I would do the following steps in my microchip C firmware
- Set the Configuration register to channel 1
- Read back from Configuration register to make sure it is updated correctly
- Read back from Status register to make sure the channel is set correctly
However, I face the problem in which the configuration register is successfully update to my own setting, yet status register does not reflect to the channel setting that I've set.
Can someone advise on the above please? Thank you in advance.