RM0440 Rev 4 639/2126
RM0440 Analog-to-digital converters (ADC)
724
Figure 104. Example of JSQR queue of context with empty queue (case JQM=1)
1. Parameters:
P1: sequence of 1 conversion, hardware trigger 1
P2: sequence of 1 conversion, hardware trigger 1
P3: sequence of 1 conversion, hardware trigger 1
Flushing the queue of context
The figures below show the behavior of the context Queue in various situations when the
queue is flushed.
Figure 105. Flushing JSQR queue of context by setting JADSTP=1 (JQM=0).
Case when JADSTP occurs during an ongoing conversion.
1. Parameters:
P1: sequence of 1 conversion, hardware trigger 1
P2: sequence of 1 conversion, hardware trigger 1
P3: sequence of 1 conversion, hardware trigger 1
Ignored
Queue becomes empty
and triggers are ignored
because JQM=1
MS30541V1
P1 P2
P3
EMPTY
Conversion1 Conversion1
P1 P1,P2 P3P2
P1
P2 P3
EMPTY
RDY RDY
RDYConversion1
JSQR
queue
Write JSQR
Tr i g g e r 1
ADC state
ADC
J context
(returned by reading JQSR)
RDY
EMPTY (0x0000)
EMPTY
EMPTY
EMPTY
Ignored
MS30544V2
JSQR queue
Write JSQR
P1
P1
P2
EMPTY
Trigger 1
ADC state
RDY
STP
P3
P1 P3
P1, P2
RDY
P1
EMPTY
JADSTP
P3
RDY
Queue is flushed and maintains
the last active context
(P2 is lost)
JADSTART
ADC J context
(returned by reading JSQR)
Set
by S/W
Reset
by H/W
Conversion1
Reset
by H/W
Set
by S/W