Tips and Tricks with DMA on MPC56xx
●This application note presents a set of simple examples using eDMA on MPC56xx and MPC55xx to emulate receiving and transmitting serial data over SPI and SCI. This additionally demonstrates advanced features of eDMA on these examples together with some other techniques to minimize CPU load and perform certain nontrivial tasks, such as SCI/SPI communication using eDMA and other peripherals. This does not include any software task.
●In this process seven sample applications were prepared for MPC5607B, employing various DMA channels to emulate
■SCI transmitter
■SCI receiver
■SPI master
■SPI slave
●All these examples emulate simple serial communications and thus share one technique to serialize/de-serialize data bits using unused or unusable GPIO pins. More specifically SIUL (System Integration Unit Lite) registers for serial and parallel access.
●Other techniques or eDMA features, which are used in these sample applications, include:
■Channel to channel linking
■Scatter-gather feature
■Conditional linking using eMIOS
●All these examples are compilable using standard development tools, listed below with the versions used for the testing. A simple Makefile is used to build executable for the following three compilers.
■GreenHills version 5.16
■WindRiver version 5.6.1
■CodeWarrior version 2.3
|
|
|
|
Application note & Design Guide |
|
|
|
Please see the document for details |
|
|
|
|
|
|
|
English Chinese Chinese and English Japanese |
|
07/2010 |
|
Rev. 0 |
|
AN4147 |
|
234 KB |
- +1 Like
- Add to Favorites
Recommend
All reproduced articles on this site are for the purpose of conveying more information and clearly indicate the source. If media or individuals who do not want to be reproduced can contact us, which will be deleted.