I am using channels 0, 1 and 2 of the AD7682 to sample analog signals. I've detected and error in the configuration of channel 2 so, to debug, I am accessing each channel without sequencer. The first word sent is the configuration and then I've always sent 0's. The readback configuration in each case is:
Channel 0: Cfg register: 0x3848 --- ReadBack value: 0x3848
Channel 1: Cfg register: 0x38C8 --- ReadBack value: 0x38C8
Channel 3: Cfg register: 0x39C8 --- ReadBack value: 0x39C8
Channels 0 and 1 are connected to analog signals while channel 3 is tied ground. Until here all configurations seems to work properly. The problem is related to channel 2 who is connected to an analog signal.
Channel 2: Cfg register: 0x3948 --- ReadBack value: 0x3CA4
As it can be seen, configuration read is different from the one written. I have no idea where can be the problem since the piece of code used to configure each case is the same.
Any idea would be appreciate.
Thank you in advance.