Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6

Level 2
10 replies posted 5 replies posted 5 questions asked
Level 2

Hi all,

I'm using CYBLE-416045-02 mcu and in my application I'm displaying output in ili9341 320x240 lcd using Spi. But due to other tasks data transfer speed is not enough.

Hence we decided to use Dma peripheral to flush the  data into to lcd through spi. But I dont know how should I manage the cmd/data pin of the lcd as this pin needs to be clear for sending command byte and set when sending data bytes. So my question is how to solve this problem and please provide me an sample project if you have where lcd is getting driven using Dma through spi.


1 Solution
Moderator First question asked 1000 replies posted 750 replies posted

Hi AyKo_4382201​,

We don't have a sample project as per your request but this is possible. For initiating a SPI transfer you can do the following:

1. Set or clear DC pin using firmware appropriately based on if it is command or data.

2. Set up the source and destination of the DMA transfer.

3. Enable the Tx Channel DMA to trigger the DMA.

DMA is typically triggered using the TX FIFO level of the SPI.

You can refer the code example for SPI master - DMA  :

PSoC Creator:  https://www.cypress.com/documentation/code-examples/ce221120-psoc-6-mcu-spi-master

ModusToolbox 2.x : GitHub - cypresssemiconductorco/mtb-example-psoc6-spi-master-dma: This example demonstrates the use ...

Would it be possible for you to evaluate the performance of parallel interface using Segger emWin Graphics library?

GitHub - cypresssemiconductorco/emwin: Segger emWin graphics library for PSoC 6 MCU devices




View solution in original post

3 Replies
Top labels