Hi,
a customer needs to set up the ADC to be triggered either by timer or by SW. They keep the timer always running. When they want to trigger by SW in between, they disable conversion, re-configure for SW trigger, and enable conversion again, which works great.
However, when switching back to HW trigger, the ADC starts conversion immediately, it seems that the timer has signaled an event to trigger the ADC in the meantime, this trigger is queued and serviced immediately when the ADC conversion is enabled again.
How can the queued trigger event be cleared before enabling the ADC conversion again?
BR,
Philipp