2016-03-28 06:14 PM
Can anyone confirm that the priority of the calibration over the next injected conversion only works when the conversions are not continuous?
Ref Manual RM0313 says that a calibration cycle takes precedence over an injected conversion cycle, so a calibration request would execute when a current injected conversion completes. This does not seem to be the case when the injected conversions are continuous (JCONT=1). For a calibration to take place JCONT has to be set to zero. When the calibration cycle completes JCONT and JSWSTART have to set to one to resume injected conversions. Furthermore, when DMA is being used, the DMA appears to have executed two fetch/stores cycles during the calibration cycle, and restarting the injected scan then has the stored data out of place. So, besides stopping the injected conversions to be able to execute a calibration cycle, the DMA needs to be re-initialized before restarting the injected conversions. It appears that the calibration cycle request never sees the injected conversions as complete when JCONT=1. The Ref Manual doesn't mention the continuous conversion mode with respect to the calibration request priority. I'm wondering if maybe I missed something. #sigma-delta #calibration #sdadc