29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

RM0008<br />

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

Table 60.<br />

ADC pins<br />

Name Signal type Remarks<br />

V REF+<br />

V DDA<br />

V REF-<br />

V SSA<br />

Input, analog reference<br />

positive<br />

Input, analog supply<br />

Input, analog reference<br />

negative<br />

Input, analog supply<br />

ground<br />

The higher/positive reference voltage for the ADC,<br />

2.4 V V REF+ V DDA<br />

Analog power supply equal to V DD <strong>and</strong><br />

2.4 V V DDA V DD (3.6 V)<br />

The lower/negative reference voltage for the ADC,<br />

V REF- = V SSA<br />

Ground for analog power supply equal to V SS<br />

ADCx_IN[15:0] Analog input signals 16 analog input channels<br />

11.3.1 ADC on-off control<br />

The ADC can be powered-on by setting the ADON bit in the ADC_CR2 register. When the<br />

ADON bit is set for the first time, it wakes up the ADC from Power Down mode.<br />

Conversion starts when ADON bit is set for a second time by software after ADC power-up<br />

time (t STAB ).<br />

You can stop conversion <strong>and</strong> put the ADC in power down mode by resetting the ADON bit. In<br />

this mode the ADC consumes almost no power (only a few µA).<br />

11.3.2 ADC clock<br />

The ADCCLK clock provided by the Clock Controller is synchronous with the PCLK2 (APB2<br />

clock). The RCC controller has a dedicated programmable prescaler for the ADC clock, refer<br />

to Low-, medium- <strong>and</strong> high-density reset <strong>and</strong> clock control (RCC) on page 74 for more<br />

details.<br />

11.3.3 Channel selection<br />

There are 16 multiplexed channels. It is possible to organize the conversions in two groups:<br />

regular <strong>and</strong> injected. A group consists of a sequence of conversions which can be done on<br />

any channel <strong>and</strong> in any order. For instance, it is possible to do the conversion in the<br />

following order: Ch3, Ch8, Ch2, Ch2, Ch0, Ch2, Ch2, Ch15.<br />

● The regular group is composed of up to 16 conversions. The regular channels <strong>and</strong><br />

their order in the conversion sequence must be selected in the ADC_SQRx registers.<br />

The total number of conversions in the regular group must be written in the L[3:0] bits in<br />

the ADC_SQR1 register.<br />

● The injected group is composed of up to 4 conversions. The injected channels <strong>and</strong><br />

their order in the conversion sequence must be selected in the ADC_JSQR register.<br />

The total number of conversions in the injected group must be written in the L[1:0] bits<br />

in the ADC_JSQR register.<br />

If the ADC_SQRx or ADC_JSQR registers are modified during a conversion, the current<br />

conversion is reset <strong>and</strong> a new start pulse is sent to the ADC to convert the new chosen<br />

group.<br />

Doc ID 13902 Rev 9 201/995

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

Saved successfully!

Ooh no, something went wrong!