The use of Kendryte K210 LCD screen on freertos

The LCD screen on the K210 is an 8-bit spi parallel interface, and the model of the screen development board used is JLT32009A, which should be available for purchase.

It should be noted that if you buy this kind of screen in a certain treasure, there will generally be a difference between 8 and 16 bits. The merchant will tell you that these are two different screens, but we will find that by checking the specifications of the screen, as long as Jumping resistors can switch between 8-bit and 16-bit. There are many resistors on the screen cable. Find R8 and R16. R8 represents an 8-bit data signal, and R16 represents a 16-bit data signal.

Then check the schematic diagram as follows:

Corresponding to project_cfg.h

#ifndef _PROJECT_CFG_H_
#define _PROJECT_CFG_H_
#include <pin_cfg.h>

#define SPI_CHANNEL 0
#define SPI_SLAVE_SELECT 3
#define __SPI_SYSCTL(x, y) SYSCTL_##x##_SPI##y
#define _SPI_SYSCTL(x, y) __SPI_SYSCTL(x, y)
#define SPI_SYSCTL(x) _SPI_SYSCTL(x, SPI_CHANNEL)
#define __SPI_SS(x, y) FUNC_SPI##x##_SS##y
#define _SPI_SS(x, y) __SPI_SS(x, y)
#define SPI_SS _SPI_SS(SPI_C

Guess you like

Origin blog.csdn.net/smile_5me/article/details/112647885