diff options
| author | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-17 23:40:18 +0100 |
|---|---|---|
| committer | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-17 23:40:18 +0100 |
| commit | 41cff62e42a88b5feb84730ed4cf72db7dc51291 (patch) | |
| tree | dc312ae7236940d956b8e5b9c2a26509ef6bc550 /src | |
| parent | fb9a99339b09bdde3bdb8811de70cc7f8bd23c41 (diff) | |
Update esp32_i2s_parallel_dma.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/esp32/esp32_i2s_parallel_dma.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
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; |
