LPC54018 ADC Sampling rate modification issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54018 ADC Sampling rate modification issue

917 Views
Gopalvishwakarma
Contributor I

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

0 Kudos
Reply
1 Reply

904 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

I suggest you config ADC setting with config tool rather than modify code directly. If use ADC clock from syscon. config it as below.

ZhangJennie_0-1608300396860.png

 

Hope this helps,

Jun Zhang

 

0 Kudos
Reply