09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RM0090</strong> Analog-to-digital converter (ADC)<br />

A JEOC interrupt, if enabled, is generated after all injected ADC1 channels in the group<br />

have been converted.<br />

A JEOC interrupt, if enabled, is generated after all injected ADC2 channels in the group<br />

have been converted.<br />

A JEOC interrupt, if enabled, is generated after all injected ADC3 channels in the group<br />

have been converted.<br />

If another external trigger occurs after all injected channels in the group have been<br />

converted then the alternate trigger process restarts by converting the injected ADC1<br />

channels in the group.<br />

Figure 50. Alternate trigger: injected group of each ADC<br />

1st trigger<br />

EOC, JEOC<br />

4th trigger<br />

EOC, JEOC<br />

(n)th trigger<br />

on ADC1<br />

on ADC1<br />

ADC1<br />

ADC2<br />

2nd trigger<br />

EOC, JEOC<br />

on ADC2<br />

3rd trigger<br />

11.9.5 Combined regular/injected simultaneous mode<br />

(n+1)th trigger<br />

It is possible to interrupt the simultaneous conversion of a regular group to start the<br />

simultaneous conversion of an injected group.<br />

Note: In combined regular/injected simultaneous mode, one must convert sequences with the<br />

same length or ensure that the interval between triggers is longer than the long conversion<br />

time of the 2 sequences (Dual ADC mode) /3 sequences (Triple ADC mode). Otherwise, the<br />

ADC with the shortest sequence may restart while the ADC with the longest sequence is<br />

completing the previous conversions.<br />

11.9.6 Combined regular simultaneous + alternate trigger mode<br />

Sampling<br />

Conversion<br />

It is possible to interrupt the simultaneous conversion of a regular group to start the<br />

alternate trigger conversion of an injected group. Figure 51 shows the behavior of an<br />

alternate trigger interrupting a simultaneous regular conversion.<br />

The injected alternate conversion is immediately started after the injected event. If regular<br />

conversion is already running, in order to ensure synchronization after the injected<br />

conversion, the regular conversion of all (master/slave) ADCs is stopped and resumed<br />

synchronously at the end of the injected conversion.<br />

Note: In combined regular simultaneous + alternate trigger mode, one must convert sequences<br />

with the same length or ensure that the interval between triggers is longer than the long<br />

conversion time of the 2 sequences (Dual ADC mode) /3 sequences (Triple ADC mode).<br />

Otherwise, the ADC with the shortest sequence may restart while the ADC with the longest<br />

sequence is completing the previous conversions.<br />

. . .<br />

EOC, JEOC<br />

on ADC3<br />

5th trigger (n+2)th trigger<br />

ai16061<br />

Doc ID 018909 Rev 3 284/1416

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!