Hi, I need to take samples periodically (@11050 Hz, 16-bit, differential between pins ADC0_DP0 and ADC0_DM0), and store it into a double buffer, in order to run DSP algorithms like FFT on one of these buffers while DMA writes into the other.
I'm trying to use PDB to trigger ADC0 to take samples and put them in a buffer using eDMA.
I used an application note AN4688 "Sampling Audio with ADC on Kinetis KwikStik", detailing step by step how to implement them using low level blocks: Init_eDMA, Init_ADC and Init_PDB.
I did it exactly as the guide said and I cannot manage the ADC to run nor enter to any of those interrupts. Can you tell me if there is something I am doing wrong, please?
I dumped some code and the Processor Expert code in the zip archive attached.
I also attached the AN4688 Application Note.
Original Attachment has been moved to: adc-dma-pdb.zip