Figure 76. Example Of Jsqr Queue Of Context With Empty Queue (Case Jqm=0); Figure 77. Example Of Jsqr Queue Of Context With Empty Queue (Case Jqm=1) - ST STM32L4x6 Reference Manual

Table of Contents

Advertisement

RM0351
It is recommended to manage the queue overflows as described below:
After each P context write into JSQR register, flag JQOVF shows if the write has been
ignored or not (an interrupt can be generated).
Avoid Queue overflows by writing the third context (P3) only once the flag JEOS of the
previous context P2 has been set. This ensures that the previous context has been
consumed and that the queue is not full.
Queue of context: Behavior when the queue becomes empty
Figure 76
empty in both cases JQM=0 or 1.

Figure 76. Example of JSQR queue of context with empty queue (case JQM=0)

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
Note:
When writing P3, the context changes immediately. However, because of internal
resynchronization, there is a latency and if a trigger occurs just after or before writing P3, it
can happen that the conversion is launched considering the context P2. To avoid this
situation, the user must ensure that there is no ADC trigger happening when writing a new
context that applies immediately.

Figure 77. 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
and
Figure 77
show the behavior of the context Queue when the Queue becomes
DocID024597 Rev 3
Analog-to-digital converters (ADC)
457/1693
540

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32L4x6 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF