Microcontroller programming is a passion for all we are following this Community, but sometimes, trying to understand the peripherals of a Microcontroller is not an easy task, especially if we are in our first approach to a new module or device.
In this post you will find a document that explains in detail the DMA module for Kinetis devices and also some examples for CodeWarrior and Kinetis Design Studio using DMA and other peripherals.
The Documentation found here is:
Using DMA module in Kinetis devices (complete): Document that includes DMA module explanation: everything you need to know when using DMA and the necessary information to understand the code included (K20_DMA for CW or K20D72_DMA for KDS).
Using DMA module in Kinetis devices (example): Document that includes the necessary information to understand the code included (K20_DMA for CW or K20D72_DMA for KDS).
Attached are two folders named:
DMA examples for CW: include the DMA example projects for CW
DMA examples for KDS: include the DMA example projects for KDS.
Each folder includes 5 examples that are:
Please feel free to modify the examples; I hope this will be useful for you.
Many thanks and credits to manuelrodriguez for his valuable help developing and editing this project.
:smileyinfo:For the SPI examples it is necessary to make a bridge between MOSI and MISO pins (master loop mode is used for the example). For this the TWR Elevators were used.
In the attachments you can find some extra information when using SPI and DMA.