Example of adc16 with hardware trigger

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

Example of adc16 with hardware trigger

845 次查看
davepfaltzgraff
Senior Contributor I

I would like like to use a hardware input to trigger an ADC conversion. As I understand the manual, this could be either through the PDB or directly with the ADHWT input, but I'm not able to make the full connection.

 

My design has a front end with a peak detector that gives a rising edge when the peak is found. I know I could use that edge as an interrupt to generate a software trigger and achieve the same result. But, if possible, I'd like the hardware to initiate that process and thus save the interrupt latency time.

 

Is there an example that would show me the way?

 

Thanks

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

457 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello David,

Which chip do you use ?

For example the frdmk64, you can find the adc_hw_trigger demo here :

...\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps , under it , there have the PDB trigger ADC demo code .

pastedImage_0.png

Hope it helps


Have a great day,

Alice

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

0 项奖励
回复

457 次查看
davepfaltzgraff
Senior Contributor I

Hi Alice,

Thanks for the pointer. I am using the FRDM-K22F and see that there a corresponding example there. I'll look into it.

Dave

0 项奖励
回复