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
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 .
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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