29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RM0008<br />

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

If the injected discontinuous mode is enabled for both ADC1 <strong>and</strong> ADC2:<br />

●<br />

●<br />

When the 1st trigger occurs, the first injected channel in ADC1 is converted.<br />

When the 2nd trigger arrives, the first injected channel in ADC2 are converted<br />

● <strong>and</strong> so on....<br />

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

converted.<br />

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

converted.<br />

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

the alternate trigger process restarts.<br />

Figure 38.<br />

Alternate trigger: 4 injected channels (each ADC) in discontinuous model<br />

1st trigger<br />

3rd trigger<br />

5th trigger<br />

7th trigger<br />

Sampling<br />

JEOC on ADC1<br />

Conversion<br />

ADC1<br />

ADC2<br />

JEOC on ADC2<br />

2nd trigger<br />

4th trigger<br />

6th trigger<br />

8th trigger<br />

11.9.6 Independent mode<br />

In this mode the dual ADC synchronization is bypassed <strong>and</strong> each ADC interfaces works<br />

independently.<br />

11.9.7 Combined regular/injected simultaneous mode<br />

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

conversion of an injected group.<br />

Note:<br />

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 longest of the 2<br />

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

the longest sequence is completing the previous conversions.<br />

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

It is possible to interrupt regular group simultaneous conversion to start alternate trigger<br />

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

interrupting a regular simultaneous conversion.<br />

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

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

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

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

Note:<br />

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 longest<br />

of the 2 sequences. Otherwise, the ADC with the shortest sequence may restart while the<br />

ADC with the longest sequence is completing the previous conversions.<br />

Doc ID 13902 Rev 9 215/995

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

Saved successfully!

Ooh no, something went wrong!