Hi Michael,
Thanks for the information, I would recommend you to better use the ADC_LDD component:

You can use the "StartLoopMeasurement" method of this component for a continuous conversion and depending on the number of conversions selected the Hardware Average is enabled/disabled.
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------