ADC_Multiple_Channel with DMA

cancel
Showing results for 
Search instead for 
Did you mean: 

ADC_Multiple_Channel with DMA

74 Views
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 Kudos
3 Replies

59 Views
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 Kudos

36 Views
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 Kudos