Author Topic: S32K144 S32K ADC DMA Circular buffer  (Read 979 times)

0 Members and 1 Guest are viewing this topic.

Offline rvalenteTopic starter

  • Frequent Contributor
  • **
  • Posts: 736
  • Country: br
S32K144 S32K ADC DMA Circular buffer
« on: July 12, 2021, 07:18:19 pm »
Hello Mates,

I need to sample one channel from the S32K for 3 seconds @12bits and 5KSA/s, I did this code attached, it holds one sample value to the DMA buffer.
What I'd like to do is to have a 30KB buffer (short uints) and have it filled with sequential captures (circular buffer) but I can't find a example of how to set the DMA Modulo to do it.

I believe the eDMA from the S32K is similar to some advanced Kinetis (which I've never used)

Attached the project, its on my google drive due to size, to big for the forum rules.
https://drive.google.com/drive/folders/1EnapruXWJ5ObzDbxvx59vPCpSMc7za84?usp=sharing

Any suggestions?

Greetings, Renan
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf