stm32 /stm32l4 /STM32L4x2 /ADC1 /ADC_SMPR1

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_SMPR1

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)SMP00 (B_0x0)SMP10 (B_0x0)SMP20 (B_0x0)SMP30 (B_0x0)SMP40 (B_0x0)SMP50 (B_0x0)SMP60 (B_0x0)SMP70 (B_0x0)SMP80 (B_0x0)SMP90 (B_0x0)SMPPLUS

SMP9=B_0x0, SMP6=B_0x0, SMP1=B_0x0, SMP5=B_0x0, SMP2=B_0x0, SMP4=B_0x0, SMP8=B_0x0, SMP3=B_0x0, SMPPLUS=B_0x0, SMP7=B_0x0, SMP0=B_0x0

Description

ADC sample time register 1

Fields

SMP0

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP1

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP2

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP3

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP4

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP5

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP6

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP7

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP8

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMP9

Channel x sampling time selection (x = 9 to 0) These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Note: Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.

0 (B_0x0): 2.5 ADC clock cycles

1 (B_0x1): 6.5 ADC clock cycles

2 (B_0x2): 12.5 ADC clock cycles

3 (B_0x3): 24.5 ADC clock cycles

4 (B_0x4): 47.5 ADC clock cycles

5 (B_0x5): 92.5 ADC clock cycles

6 (B_0x6): 247.5 ADC clock cycles

7 (B_0x7): 640.5 ADC clock cycles

SMPPLUS

Addition of one clock cycle to the sampling time To make sure no conversion is ongoing, the software is allowed to write this bit only when ADSTART= 0 and JADSTART= 0.

0 (B_0x0): The sampling time remains set to 2.5 ADC clock cycles remains

1 (B_0x1): 2.5 ADC clock cycle sampling time becomes 3.5 ADC clock cycles for the ADC_SMPR1 and ADC_SMPR2 registers.

Links

()