Prescan config that's different than chip config
- What happens if the prescan config has different settings than the same register in the chip config?
- How long does the prescan config need to settle before the scan can/should be run?
For the ADC calibration of RD53A modules it's required to probe and read the values for Vcal_med/hi at 500/3500. These registers are in the chip config, as well as in the prescan config. When testing something I swapped these values in either case, e.g. Vcal_med at 500/3500 in chip/prescan config or vise versa. The result is reg_readmux reads some value around 2000 ADC counts, which is in the middle of these two settings. I have the suspicion that the register is read before the prescan setting is fully set.
Basically, shall a sleep function (and how long) be used for the prescan settings to take place? Or are there more elegant ways?