cancel
Showing results for 
Search instead for 
Did you mean: 

ADC on STM32L011 Nucleo ?

antonius
Senior

Dear STM32 Members,

I try to sample 200Hz

and I need sampling time 500uS

I used to code from :

\STM32Cube_FW_L0_V1.11.0\Projects\NUCLEO-L011K4\Examples\ADC\ADC_LowPower

My STM32L011K Nucleo setting:

CPU Clock =2MHz

ADC Clock = 2MHz

Timer = 30 kHz

 AdcHandle.Init.SamplingTime     = ADC_SAMPLETIME_12CYCLES_5;  == 6.25 uS

Is that sampling time fast enough ?

I have an array for it, how can I display it ?

Thanks guys.

1 REPLY 1

It would give you 150 sample points per 200 Hz cycle.

Send the array to a PC, via serial, or your preferred mode of connectivity, and plot them in an app of you choice/creation.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..