01.06.2014 Views

STM32W108C8

STM32W108C8

STM32W108C8

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Analog-to-digital converter<br />

<strong>STM32W108C8</strong><br />

11.1.6 ADC configuration register<br />

The ADC configuration register (ADC_CFG) sets up most of the ADC operating parameters.<br />

Input<br />

The analog input of the ADC can be chosen from various sources. The analog input is<br />

configured with the ADC_MUXP and ADC_MUXN bits within the ADC_CFG register.<br />

Table 107 shows the possible input selections.<br />

Table 107.<br />

ADC_MUXn (1)<br />

ADC inputs<br />

1. Denotes bits ADC_MUXP or ADC_MUXN in register ADC_CFG.<br />

Table 108 shows the typical configurations of ADC inputs.<br />

Table 108.<br />

Analog source at ADC GPIO pin Purpose<br />

0 ADC0 PB5<br />

1 ADC1 PB6<br />

2 ADC2 PB7<br />

3 ADC3 PC0<br />

4 ADC4 PA4<br />

5 ADC5 PA5<br />

6 No connection<br />

7 No connection<br />

8 GND Internal connection Calibration<br />

9 VREF/2 Internal connection Calibration<br />

10 VREF Internal connection Calibration<br />

11 1V8 VREG/2 Internal connection Supply monitoring and calibration<br />

12 No connection<br />

13 No connection<br />

14 No connection<br />

15 No connection<br />

Typical ADC input configurations<br />

ADC P input ADC N input ADC_MUXP ADC_MUXN Purpose<br />

ADC0 VREF/2 0 9 Single-ended<br />

ADC1 VREF/2 1 9 Single-ended<br />

ADC2 VREF/2 2 9 Single-ended<br />

ADC3 VREF/2 3 9 Single-ended<br />

ADC4 VREF/2 4 9 Single-ended<br />

ADC5 VREF/2 5 9 Single-ended<br />

ADC1 ADC0 1 0 Differential<br />

ADC3 ADC2 3 2 Differential<br />

163/215 Doc ID 018587 Rev 2

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

Saved successfully!

Ooh no, something went wrong!