Pending Event Stuck When Disabling the ADC

If the ADC is disabled during an event-triggered conversion, the event will not be cleared.

Work around

Clear ADC.EVCTRL.STARTEI and wait for the conversion to complete before disabling the ADC.

Affected Silicon Revisions

ATtiny1617
Rev. A            
X            
ATtiny3217
Rev. A Rev. B Rev. C          
X * -