AnsweredAssumed Answered

KE18 ADC hardware trigger

Question asked by David Sherman on Oct 15, 2018
Latest reply on Oct 16, 2018 by David Sherman

I can't seem to get the ADC to trigger from the LPIT or the FTM using the TRGMUX.  The ADC works from software triggers.  I can confirm the LPIT is running and it is triggering events, but I can't get the ADC interrupt to happen on any of the channels.  I have the pseudocode example in the KE18 manual implemented, but nothing happens.



TRGMUX0->TRGCFG[TRGMUX_ADC0_INDEX] = TRGMUX_TRGCFG_SEL0(0x07); // use LPIT ch0 for trigger source

 ADC0->SC2 |= ADC_SC2_ADTRG(1);

What am I missing?  Unfortunately, the ADC chapter is confusing on the subject of pretriggers and triggers.  I'm just trying to get the ADC to trigger at a regular interval.