Hi there,
This is a beginner question.
I am trying to configure the ADC at as low as 1000 samples/sec (I am OK with 5ksamples/sec too). I changed kADC_ClockSynchronousMode and
kADC_ClockAsynchronousMode mode. however, I could not get grasp on it. I see same sampling rate. I tried changing values of clockDividerNumber, sampleTimeNumber, ADC_CTRL_TSAMP_MASK,ADC_CTRL_ASYNMODE_MASK,ADC_CTRL_RESOL_MASK. Still I see no change in sampling rate. I see same values at MCUexpresso console. Is there any other way that I can see actual sampling rate? Previously I thought different console speed of USB shows less no. of ADC result values then I tried watching memory. I observed same no. of values over there.
Kindly guide me. or small sample code will be helpful. Many thanks,
Gopal
I suggest you config ADC setting with config tool rather than modify code directly. If use ADC clock from syscon. config it as below.
Hope this helps,
Jun Zhang