LPC54018 ADC Sampling rate modification issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54018 ADC Sampling rate modification issue

860件の閲覧回数
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 返信

847件の閲覧回数
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 件の賞賛
返信