ADC_Multiple_Channel with DMA

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

ADC_Multiple_Channel with DMA

488 次查看
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 回复数

478 次查看
PetrS
NXP TechSupport
NXP TechSupport
0 项奖励

473 次查看
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 项奖励

450 次查看
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 项奖励