This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ADC reads come in out of order from Driver

When reading in values from ADC under high noise conditions the ADC reads come into the handler out of order. This is causing application resets left and right, does anyone having experience dealing this this issue?

  • Unfortunately we won't be able to provide code at this time.

    We have however, after months of back and forth, determined that the system instability is likely due to a DAC being used to control the setpoint for the power supply.

    The current plan is to retest the conditions which led to out of order ADC reads. Will keep this up to date.

  • This sounds similar to the problem I once observed.
    I measured samples in two channels in "scan mode". After stopping the measurement, the samples were always correctly arranged. Next after resuming the measurement and stopping it again, I observed that the samples were swapped in places. I.e. the samples from the first channel were in the buffer in the place where the samples from the second channel should be.

    The good news is that there is quite a simple fix. Always after the first measurement (stopping SAADC) the samples in the buffer are well arranged. Therefore it is enough to re-initialize SAADC after each measurement: call uninit and init functions.

Related