I am trying to do something fairly simple, and I've been amazed at how difficult it has proven to be.
In my application I'd like to:
1) have a PWM at F kHz,
2) trigger an ADC sample based on the PWM, and
3) store N samples per buffer via uDMA.
I can do 1 & 2 using PWM and ADC interrupts, and it works great, but I'd prefer not to have F interrupts per second. When I try to do it with uDMA, it looks like the interrupt just happens continuously as fast as it can go. All I am doing in the ISR is clearing the ADCISC register by writing ADC_INT_DMA_SS0, and toggling a GPIO bit.
Before I post a lot of code, is there something obvious I should check? I'm really pulling my hair out.