STMicroelectronics /STM32G0B0 /ADC /ADC_SMPR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as ADC_SMPR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (B_0x0)SMP10 (B_0x0)SMP20 (B_0x0)SMPSEL0 0 (B_0x0)SMPSEL1 0 (B_0x0)SMPSEL2 0 (B_0x0)SMPSEL3 0 (B_0x0)SMPSEL4 0 (B_0x0)SMPSEL5 0 (B_0x0)SMPSEL6 0 (B_0x0)SMPSEL7 0 (B_0x0)SMPSEL8 0 (B_0x0)SMPSEL9 0 (B_0x0)SMPSEL10 0 (B_0x0)SMPSEL11 0 (B_0x0)SMPSEL12 0 (B_0x0)SMPSEL13 0 (B_0x0)SMPSEL14 0 (B_0x0)SMPSEL15 0 (B_0x0)SMPSEL16 0 (B_0x0)SMPSEL17 0 (B_0x0)SMPSEL18

SMPSEL5=B_0x0, SMPSEL8=B_0x0, SMPSEL10=B_0x0, SMPSEL9=B_0x0, SMPSEL15=B_0x0, SMPSEL3=B_0x0, SMPSEL17=B_0x0, SMPSEL7=B_0x0, SMP2=B_0x0, SMPSEL13=B_0x0, SMPSEL12=B_0x0, SMPSEL11=B_0x0, SMPSEL0=B_0x0, SMPSEL6=B_0x0, SMPSEL14=B_0x0, SMPSEL18=B_0x0, SMP1=B_0x0, SMPSEL16=B_0x0, SMPSEL1=B_0x0, SMPSEL2=B_0x0, SMPSEL4=B_0x0

Description

ADC sampling time register

Fields

SMP1

Sampling time selection 1 These bits are written by software to select the sampling time that applies to all channels. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): 1.5 ADC clock cycles

1 (B_0x1): 3.5 ADC clock cycles

2 (B_0x2): 7.5 ADC clock cycles

3 (B_0x3): 12.5 ADC clock cycles

4 (B_0x4): 19.5 ADC clock cycles

5 (B_0x5): 39.5 ADC clock cycles

6 (B_0x6): 79.5 ADC clock cycles

7 (B_0x7): 160.5 ADC clock cycles

SMP2

Sampling time selection 2 These bits are written by software to select the sampling time that applies to all channels. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): 1.5 ADC clock cycles

1 (B_0x1): 3.5 ADC clock cycles

2 (B_0x2): 7.5 ADC clock cycles

3 (B_0x3): 12.5 ADC clock cycles

4 (B_0x4): 19.5 ADC clock cycles

5 (B_0x5): 39.5 ADC clock cycles

6 (B_0x6): 79.5 ADC clock cycles

7 (B_0x7): 160.5 ADC clock cycles

SMPSEL0

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL1

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL2

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL3

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL4

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL5

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL6

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL7

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL8

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL9

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL10

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL11

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL12

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL13

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL14

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL15

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL16

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL17

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

SMPSEL18

Channel-x sampling time selection These bits are written by software to define which sampling time is used. Note: The software is allowed to write this bit only when ADSTART=0 (which ensures that no conversion is ongoing).

0 (B_0x0): Sampling time of CHANNELx use the setting of SMP1[2:0] register.

1 (B_0x1): Sampling time of CHANNELx use the setting of SMP2[2:0] register.

Links

()