Hello,
First, I am using the IMXRT 1160 controller.
My target is to be able to sample an external signal continuously at a pre-defined sampling rate. (In the range of 100 kHz)
I am working on the lpadc_high_sample_rate_example supplied in the SDK examples as my starting point. In this example, DMA module is only transferring a fixed number of readings from the ADC RESFIFO to some buffer. I want this process to work in a continuous manner. I tried to modify the code by placing the DMA transfer commands (functions) in a while loop. What I am getting is the following:
DMA reads 1000 readings first, then there are 1000 null (zero) readings, then it reads another 1000 readings, and this goes forever..
Any idea about how to make the DMA do continuous transfers, so that I obtain a continuous signal sampling?
Thank you in advance,
Regards,
Houssein