Search found 6 matches

by geokai
Tue Mar 30, 2021 6:53 am
Forum: ESP-IDF
Topic: SPI master problem when driving ST7789,get puzzled between spi_device_polling_transmit and spi_device_queue_trans差异?
Replies: 5
Views: 3740

Re: SPI master problem when driving ST7789,get puzzled between spi_device_polling_transmit and spi_device_queue_trans

Lastest progress I tried to change PARALLEL_LINES lower than 80 lines at a time. Which means a frame should be sent with send_lines() func called 4times than the previous 2times. And each time when send_lines() function called it represented like the 2a) stage. Interval between cmd never below 4ms a...
by geokai
Mon Mar 29, 2021 3:07 pm
Forum: ESP-IDF 中文讨论版
Topic: SPI驱动问题,ST7789,spi_device_polling_transmit和spi_device_queue_trans差异?
Replies: 3
Views: 4334

Re: SPI驱动问题,ST7789,spi_device_polling_transmit和spi_device_queue_trans差异?

新的进展, 将每次写入120行修改成为每次写入<80行后,每一次写入数据前的写命令阶段的阶段都变成4ms了,而不是20us。 然后修改本例子中的传输显示数据部分send_lines(),使用了lvgl官方的esp32版本中的st7789驱动的传输显示数据部分(核心代码如下)。此时所有命令间隔均变成了20us,无论是单次写入多少行。 spi_transaction_ext_t *pTransaction = NULL; xQueueReceive(TransactionPool, &pTransaction, portMAX_DELAY); memcpy(pTransaction, &t, si...
by geokai
Sat Mar 27, 2021 2:55 pm
Forum: ESP-IDF
Topic: SPI master problem when driving ST7789,get puzzled between spi_device_polling_transmit and spi_device_queue_trans差异?
Replies: 5
Views: 3740

SPI master problem when driving ST7789,get puzzled between spi_device_polling_transmit and spi_device_queue_trans差异?

I was doing ST7789 240*240 LCD driver, which is modified from official example in "SPI_MASTER/LCD" . And the main modification is below. The LCD is working well, but the Timing Diagram puzzled me. 引脚部分 #ifdef CONFIG_IDF_TARGET_ESP32 #define LCD_HOST HSPI_HOST #define DMA_CHAN 2 #define PIN_NUM_MISO ...
by geokai
Sat Mar 27, 2021 2:25 pm
Forum: ESP-IDF 中文讨论版
Topic: SPI驱动问题,ST7789,spi_device_polling_transmit和spi_device_queue_trans差异?
Replies: 3
Views: 4334

SPI驱动问题,ST7789,spi_device_polling_transmit和spi_device_queue_trans差异?

在做ST7789 240×240的驱动,修改自官方SPI_MASTER下的LCD例子,附上主要的修改 引脚部分 #ifdef CONFIG_IDF_TARGET_ESP32 #define LCD_HOST HSPI_HOST #define DMA_CHAN 2 #define PIN_NUM_MISO -1 #define PIN_NUM_MOSI 25 #define PIN_NUM_CLK 12 #define PIN_NUM_CS 27 #define PIN_NUM_DC 33 #define PIN_NUM_RST 14 #define PIN_NUM_BCKL -1 一次刷新1...