ADC_Multiple_Channel with DMA

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

ADC_Multiple_Channel with DMA

471件の閲覧回数
Bhuvana
Contributor I

Hi,

Through DMA I'm reading adc channel 1st its working fine but in run time if I change value only 1st 8 channel is reading the correct data in remaining channels I'm not able to read the data its showing same old data only

0 件の賞賛
3 返答(返信)

461件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport
0 件の賞賛

456件の閲覧回数
Bhuvana
Contributor I

Hi @PetrS through this example only I have implemented but I have used only PDB0,ADC0 channels. Every thing is same but not able to identify the problem exactly.

0 件の賞賛

433件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

seems it is due to sample time is set to be inconsistent with PDB setting. Change ADC0 clock to run from FIRC DIV2 in Clocks tool. Set sample time = 14 in ADC component. Finally if 14 samples are read by DMA, then config 14 pretriggers in PDB0_init.

BR, Petr  

0 件の賞賛