Friday, March 23rd 2018, 6:32am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



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: 524


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.