As others I struggle with hardware trigger of ADCs.
My base was NXP's example adc_etc_hardware_trigger_conv. It works as expected.
Next I tried to do the same but use ADC2 instead of ADC1. I didn't get any interrupts. I used trigger 4 instead of trigger 0 and I added an interrupt handler for ADC_ETC_ERROR. I received periodically ADC_ETC_ERROR but no ADC_ETC_IRQ0/1 as expected.
Hi Kurt Staubli,
Thank you for your interest in NXP Semiconductor products and
the opportunity to serve you.
To provide the fastest possible support, I'd like to suggest you refer to the post which is a similar question on our NXP community.
i.MXRT1060 ADC external trigger (ADC_ETC) for ADC 2
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi jeremyzhou
Thank you for your answer.
i.MXRT1060 ADC external trigger (ADC_ETC) for ADC 2
did not help me, since its solution (use XBAR1, instead of XBAR0) was already implemented in the original example adc_etc_hardware_trigger_conv and I did not change it.
Kurt
Hi Kurt Staubli,
Thanks for your reply.TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi jeremyzhou
I have solved the problem.
The orignial example is adc_etc_hardware_trigger_conv. I have just the changed files in the attachment. As hardware I am using EmbeddedArtist's RT1060 Evaluation board. The difference to NXP's evaluation board is that EA's board has much more IOs for the user.
Kurt
Thank you @kurt_staubli
It helped me with the same problem on RT1024.
Solution - change the default value of enableTSCBypass from "true" to "false";