Check the two NOP bits in the configuration word that actually reaches the ADC. The ADS1118 can return conversion data while accepting configuration bits on DIN, but it updates the Config register only when NOP[1:0] is binary 01. The other three codes leave the configuration unchanged. A valid conversion read and a working host clock do not prove that the ADC accepted a new PGA setting.
This can happen when a driver uses one template for dummy data during reads and another for writes but forgets to change the NOP field. All-zero or all-one filler does not accidentally change the ADC configuration. A write using the same low bits can also be ignored. NOP occupies bits 2 and 1; bit 0 is reserved and reads back as one. Capture the actual DIN word rather than trusting a debug print of the desired setting.
Use a stable signal within both selected ranges. Compare a rejected configuration with a second word that uses the correct NOP code and is otherwise identical. Check the configuration readback and a newly completed conversion, not the result already being returned during the write. If the valid word still has no effect, check CS framing, bit order and subsequent transactions for an unintended overwrite. The oscillator feeds the controller, which supplies SCLK through its own divider. Verify the oscillator suffix and the serial timing independently of the ADC's configuration acceptance.
Related selection guide: MERLIN Crystal Timing: Calculating per-channel ADC128S102 throughput from SPI frames and command order | Crystal & Oscillator Handbook
Resource link: https://www.mecxtal.com.cn/en/handbook/adc128s102-sclk-channel-pipeline.html
