Part Number: AM13E23019
AM13e2x TRM (Rev.A) has very limited information about the behaviour of resetting the SEQENABLE flag.
We would like to understand how the sequencer behaves when SEQENABLE flag is reset while conversion is ongoing:
- Does the ongoing sequence finish/pause/abort?
- If the sequence is not aborted immediately, what happens with the DMA trigger?
- How does it affect neighboring sequencers?
Background: In our use case, we want to call a "stop" routine at any time and after that, do not receive any new measurements from this sequence, even if HW triggers are happening. Afterwards, the "start" routine may be called to receive the fresh measurements.
Currently, the stop routine looks like:
- DL_ADC_disableSequencer
- DL_ADC_disableDMAInterrupt
- Disable DMA channel
And start routine:
- Reset and enable DMA channel to accept new sequence (addresses and size)
- DL_ADC_clearDMAInterruptStatus
- DL_ADC_enableDMAInterrupt
- DL_ADC_enableSequencer
These procedures are working as expected and were able to stop and restart the sequence during our tests. However, we are still interested in the more detailed information about the behaviour of SEQENABLE flag to analyse how robust routines are for corner cases under specific timings