From 41cff62e42a88b5feb84730ed4cf72db7dc51291 Mon Sep 17 00:00:00 2001 From: mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> Date: Wed, 17 Jul 2024 23:40:18 +0100 Subject: [PATCH] Update esp32_i2s_parallel_dma.cpp --- src/platforms/esp32/esp32_i2s_parallel_dma.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/platforms/esp32/esp32_i2s_parallel_dma.cpp b/src/platforms/esp32/esp32_i2s_parallel_dma.cpp index a6575fd..4cc4706 100644 --- a/src/platforms/esp32/esp32_i2s_parallel_dma.cpp +++ b/src/platforms/esp32/esp32_i2s_parallel_dma.cpp @@ -241,6 +241,23 @@ Modified heavily for the ESP32 HUB75 DMA library by: unsigned int _div_num = (freq > 8000000) ? 3:5; // 8 mhz or 13mhz (eventual output after factoring in tx_bck_div_num) // Divider of 2 works theoretically with SRAM (22mhz output rate!) + /* + Page 675 of ESP-S2 TRM. + + In LCD and camera modes: + • Support to connect to external LCD, and configured as 8- ~ 24-bit parallel output mode. + + – I2S LCD accesses internal memory via DMA. + * Clock frequency should be less than 40 MHz when LCD data bus is configured as 8- ~ 16-bit parallel output. + * Clock frequency should be less than 26.7 MHz when LCD data bus is configured as 17- ~ 24-bit parallel output. + * + – I2S LCD accesses external RAM via EDMA. + * Clock frequency should be less than 25 MHz when LCD data bus is configured as 8-bit parallel output. + * Clock frequency should be less than 12.5 MHz when LCD data bus is configured as 9- ~ 16-bit parallel output. + * Clock frequency should be less than 6.25 MHz when LCD data bus is configured as 17- ~ 24-bit parallel output. + + */ + dev->clkm_conf.clkm_div_num = _div_num; dev->clkm_conf.clk_en = 1;