Tuesday, March 20th 2018, 4:57am UTC+1

You are not logged in.

  • Login
  • Register



Date of registration: Mar 14th 2017

Posts: 4


Thursday, March 8th 2018, 1:58pm

SPI and DMA with ILI9341

hello I need to optimize writing with a 320x240 display and I have to use DMA with 8bit SPI communication and ILI9341 controller. I'm using
#include "GUIDRV_FlexColor.h" and #define COLOR_CONVERSION GUICC_565.
I have configured the functions
   PortAPI.pfWrite8_A0 = write_a0; // A0 = command, A1 = parameter
   PortAPI.pfWrite8_A1 = write_a1;
   PortAPI.pfWriteM8_A0 = writeM_a0;
   PortAPI.pfWriteM8_A1 = writeM_a1;
   PortAPI.pfRead8_A0 = read_a0;
   PortAPI.pfRead8_A1 = read_a1;
   PortAPI.pfReadM8_A0 = readM_a0;
   PortAPI.pfReadM8_A1 = readM_a1;
  GUIDRV_FlexColor_SetFunc (pDevice, & PortAPI, GUIDRV_FLEXCOLOR_F66709, GUIDRV_FLEXCOLOR_M16C0B8)

up to this point everything works fine but I do not know how to configure DMA to go fast with SPI writing.
I think I understand that the blocks of multiple bytes are 498 bytes.
I'm using a pic32mz and harmony 2.01.

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 512


Thursday, March 8th 2018, 3:13pm


Unfortunately, I have no experience with the DMA and the SPI on PIC32MZ.

Maybe others in this forum.

I suggest to contact Microchip and ask them if they can help with this topic.