LPC54018 ADC Sampling rate modification issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC54018 ADC Sampling rate modification issue

859 次查看
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 项奖励
回复
1 回复

846 次查看
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 项奖励
回复