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.

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

RM0008<br />

11.9 Dual ADC mode<br />

In devices with two ADCs or more, dual ADC mode can be used (see Figure 32).<br />

In dual ADC mode the start of conversion is triggered alternately or simultaneously by the<br />

ADC1 master to the ADC2 slave, depending on the mode selected by the DUALMOD[2:0]<br />

bits in the ADC1_CR1 register.<br />

Note:<br />

Note:<br />

In dual mode, when configuring conversion to be triggered by an external event, the user<br />

must set the trigger for the master only <strong>and</strong> set a software trigger for the slave to prevent<br />

spurious triggers to start unwanted slave conversion. However, external triggers must be<br />

enabled on both master <strong>and</strong> slave ADCs.<br />

The following six possible modes are implemented:<br />

– Injected simultaneous mode<br />

– Regular simultaneous mode<br />

– Fast interleaved mode<br />

– Slow interleaved mode<br />

– Alternate trigger mode<br />

– Independent mode<br />

It is also possible to use the previous modes combined in the following ways:<br />

– Injected simultaneous mode + Regular simultaneous mode<br />

– Regular simultaneous mode + Alternate trigger mode<br />

– Injected simultaneous mode + Interleaved mode<br />

In dual ADC mode, to read the slave converted data on the master data register, the DMA<br />

bit must be enabled even if it is not used to transfer converted regular channel data.<br />

210/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!