Multiple ADC channel readings

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

Multiple ADC channel readings

1,180 次查看
sreejithmenon
Contributor I

I am using a MK22FN512 processor ( k22f family). My application requires me to monitor lot of sensors and I need to keep track of about 10 channels.But I guess K22 has 2 ADC modules with two channels each ( A and B) and only two sets of SC1 and Result registers.So if I use PDB to trigger ther modules max I can do is 4 channels. After that I will have to change the adc channels which are mapped by using channelconfig API before the next trigger to get the read the next set of sensores?

Is there a better way of doing it.In short I need to read about 10 ADC channels using k22f.I have some wiggle room for the rate at which these sensors are updated.( mostly used for monitoring and not control)

标记 (3)
0 项奖励
回复
1 回复

909 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

There is an application note AN4590 using DMA to emulate ADC flexible scan mode and AN4590SW is the related software.

Wish it helps!

Figure 2. Example process flow.PNG

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复