MM - MPLAB® Xpress IDE Edition - Ep. 15 - How to Use a Direct Memory Access Controller on an MCU | Videos
MM - MPLAB® Xpress IDE Edition - Ep. 15 - How to Use a Direct Memory Access Controller on an MCU
How to use DMA. Are you looking for a "How to Program a DMA Controller on a Microcontroller" video? This video will show you how to use a PIC® MCU's Direct Memory Access (DMA) controller to access information being sent to the microcontroller using the UART protocol. The example is show in MPLAB® Xpress, but the steps apply to development using MPLAB X IDE as well.
Resources from Video:
DMA/DMX example referenced:
https://mchp.us/2wAVAGw
PIC18F25K42 Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/40001869B.pdf
MPLAB Xpress Development Environment:
https://mchp.us/2XlzCTz
Tutorial:
The MPLAB® Code Configurator has a DMA module available that allows you to quickly set up the registers and generate the necessary code. This video will also show how to see the file registers if you are using a programming device that also allows debugging. In the tutorial, we program the UART-based protocol to bring a byte of data in, and then the DMA process takes over to store the data in a file register. It also shows how to prevent the UART baud rate change problem by changing the clock source for the microcontroller. The DMA controller also allows you to move Flash memory and to move EEPROM memory.