Copyright © 2020-2021 Shenzhen CDTech Electronics LTD. All rights reserved. Site Map Powered by iwonder.cn
An 800x480 panel looks like a specification choice until the bus budget is calculated. On an MCU-class host, framebuffer size, scan-out bandwidth and pin count settle the answer before a sample is ordered.
This guide works the numbers behind the esp32 tft display interface and the symptoms that appear once the budget is exceeded, for firmware engineers validating a display on cost-sensitive hardware.
Framebuffer size follows from width, height and bytes per pixel. An 800x480 panel holds 384,000 pixels: 768,000 bytes at RGB565 and 1,152,000 at RGB888. A 480x272 panel holds 130,560 pixels, or 261,120 bytes at RGB565. The 800x480 frame is 750 KiB, larger than the 512 KB of SRAM on an ESP32-S3.
Frame time comes from the timing totals. A typical 800x480 mode runs 1,056 clocks per line and 525 lines, so a frame is 554,400 pixel clocks. At 33.3 MHz that is 16.65 ms, or 60 Hz, and the active payload is 46.1 MB/s at RGB565. That rate, not the resolution, is what memory must sustain. A 480x272 mode needs 9.0 MHz for 60 Hz, recorded in VESA timing notation.
A 768 KB frame cannot live in 512 KB of SRAM.
Two bytes per pixel put the frame at 750 KiB, and the scan-out engine reads it continuously while the CPU prepares the next update.
The classic ESP32 has 520 KB of SRAM and no RGB LCD peripheral, so an 800x480 panel there needs an external controller with GRAM. The S3 adds a peripheral that emits RGB565, moving the question from bus existence to memory feed. One RGB565 frame is 750 KiB, leaving no SRAM copy. At 60 Hz scan-out reads 46.1 MB/s, and octal PSRAM sustains well below its 160 MB/s peak once cache misses and CPU writes share the link. At 30 Hz demand halves and the margin works; qualification usually follows JEDEC practice.
About 6.5 full frames per second at 800x480.
Forty megabits per second carries 5 MB per second, so a 768 KB RGB565 frame needs roughly 154 ms of bus time before command overhead.
SPI is byte serial, so the clock divides by eight. A 40 MHz SCK moves 5 MB/s in theory, about 4.6 MB/s with command bytes and DMA gaps. At 800x480 and RGB565, 768,000 bytes is 6.144 Mbit, or 153.6 ms at 40 MHz: 6.5 frames per second. A 480x272 frame takes 52 ms, or 19 frames per second; a 320x240 frame takes 31 ms, or 32.
Doubling to 80 MHz halves each time, but only on a short trace with a rated controller. These figures cover image replacement, not glass refresh: a controller with GRAM scans at its own fixed rate, so a static screen never flickers and only motion suffers.
Twenty pins for RGB565, before touch or storage.
Sixteen data lines, a pixel clock, two syncs and a data enable already consume most of the usable GPIO on an octal-PSRAM module.
Pin count is where the choice becomes mechanical. RGB565 needs sixteen data lines plus clock, two syncs and data enable; RGB332 needs eight and the same controls. An SPI panel needs four. Shared buses decide the rest: touch takes an I2C pair, microSD four lines, the console two, and on an S3 with octal PSRAM several pins serve the memory instead.
| Function | 16-bit RGB | 8-bit RGB | SPI panel |
|---|---|---|---|
| Pixel data | 16 | 8 | 1 (MOSI) |
| Pixel clock | 1 | 1 | 1 (SCK) |
| Sync and data enable | 3 | 3 | 0 |
| Chip select, D/C, reset | 0 | 0 | 3 |
| Touch (I2C) | 2 | 2 | 2 |
| microSD (SPI) | 4 | 4 | 4 |
| Total | 26 | 18 | 11 |
Three interfaces on one 800x480 panel isolate the transport from the glass; the clocks below represent each class rather than one controller.
| Interface | Lines | Clock | Frame payload | Frame time | Colour |
|---|---|---|---|---|---|
| SPI, 4-wire | 4 | 40 MHz | 768,000 B | 154 ms | 65,536 |
| 8-bit i80 | 12 | 20 MHz | 384,000 B | 19 ms | 256 |
| 16-bit RGB | 20 | 33.3 MHz | 768,000 B | 16.7 ms | 65,536 |
Read frame time as the floor for a full-screen change. SPI pays 154 ms because every byte crosses one wire, and only dirty rectangles reduce it. The 8-bit path is fast but carries 256 colours, enough for instrument tiles and not photographs. Sixteen-bit RGB is the only interface that replaces the whole screen at 60 Hz. On a 480x272 panel the same three land at 52 ms, 6.5 ms and 16.7 ms, and the custom LCD display range shows how much is fixed at module level.
They shrink the payload, not the scan-out clock.
A 240x80 field costs 38 KB instead of 768 KB, but an RGB panel still reads every pixel constantly at the pixel clock.
Most frames change in a small area, which is why dirty rectangles work. A 240x80 field is 19,200 pixels, or 38,400 bytes at RGB565: 7.7 ms at 40 MHz instead of 154 ms, so ten such fields fit in 77 ms.
The saving belongs to the transport. On an SPI controller with GRAM only written bytes cross the bus; a raw RGB panel reads the framebuffer continuously whether or not pixels changed, so the saving is render time and PSRAM writes, not scan-out. Overhead sets the floor, since each window needs address commands, a chip-select assertion and a DMA descriptor. Coalesce adjacent rectangles and keep the count under about ten per frame.
A seam at the write row, then contour bands.
Tearing follows the scan pointer, while visible banding appears when the memory path starves the FIFO and then whole columns repeat at the seam.
Two symptoms dominate once the budget is exceeded, and their causes differ. Tearing is a boundary between old and new content at the row the scan pointer had reached; it drifts down the screen and appears on SPI and RGB panels alike when one buffer is updated in place.
Banding is a memory problem: when DMA cannot fetch fast enough the FIFO underflows and the peripheral repeats pixels or inserts a constant colour until the next burst. Freeze the image and the tear disappears while an underrun band usually remains. Lower the pixel clock by a third; a band that shrinks points at memory, not the panel. Groups such as the Society for Information Display publish the measurement vocabulary.
Yes, if the panel controller owns the frame memory.
A raw RGB panel needs about 66 MB/s generated on the fly, so most seven-inch designs add PSRAM or move to a smart module instead.
A seven-inch 800x480 panel runs without a host framebuffer in two ways. A controller with integrated GRAM, as on an SPI module, scans the glass while host memory holds only the drawn region. A raw RGB panel instead needs line buffers that synthesise each line ahead of the scan. That route is arithmetic first: at 33.3 MHz a line's active part is 24 microseconds, so 800 pixels at two bytes demands 66 MB/s indefinitely. Two line buffers fit in SRAM; that fill rate does not.
A raw seven-inch design therefore carries PSRAM and a 30 Hz mode, or a bridge that owns the frame. The interfaces and controllers guide covers which families sit on each side.
On an MCU-class host the smart-panel versus raw-TFT decision turns on where frame memory and the scan-out engine live, because that sets pin count, RAM budget and exposure to timing. A smart panel carries a controller, GRAM and command set behind a serial interface: the host sends a rectangle fill or a bitmap and the module does the rest, so an 800x480 screen runs from a part with no PSRAM and a dozen free pins. The trade is module cost, a command set to learn and less control over frame-level effects.
A raw TFT reverses the bargain, with cheaper glass but a 20-pin bus, PSRAM, DMA descriptors and EMC work for a 33 MHz clock. Where a bridge or DSI link sits between them, the MIPI DSI specification defines the link. The crossover is usually volume and team size, and the display selection guide lists the questions that separate the cases.
Bring-up fails in two ways, and the symptoms rarely overlap. A bus fault stops the host talking to the panel: no ID response, a white or black screen, or an image that appears only at a reduced clock. A panel fault survives every bus change: dead rows, stuck pixels, uneven backlight or a colour cast that follows the glass. The order below tests the cheapest hypotheses first.
Timing tables that carry certification evidence are usually characterised against IEC methods, and the module drawing should state which revision the firmware was built from.
CDTech can review framebuffer size, bus choice and pin map against a candidate module and confirm which modes the host can sustain. Send the timing table and host part number to [email protected], or use the contact page.
Can ESP32 drive an 800x480 RGB panel?
The classic ESP32 cannot, because it has no RGB LCD peripheral and only 520 KB of SRAM. The ESP32-S3 can, using its LCD_CAM peripheral in RGB565 mode with the framebuffer in PSRAM, provided the mode is kept near 30 Hz or the interface is mostly static. A 60 Hz full-screen design leaves too little PSRAM bandwidth for the application. The alternative on any ESP32 variant is an SPI or i80 module whose controller owns the frame memory, which removes the host framebuffer entirely.
What refresh rate is realistic over SPI?
For a full-screen RGB565 update, about 6.5 frames per second at 40 MHz and 13 at 80 MHz on an 800x480 panel. Smaller panels scale directly: 19 frames per second at 480x272 and 32 at 320x240 on the same 40 MHz clock. These figures cover the time to replace the image, not the glass refresh, which a controller with GRAM handles internally at its own fixed rate. Partial updates are what make SPI feel responsive on a larger screen.
Does the ESP32 have a framebuffer?
Only the one the firmware allocates. The classic ESP32 has no display peripheral and no dedicated frame memory, so any buffer lives in its 520 KB of SRAM. The S3 adds the scan-out engine but not the memory, so an 800x480 RGB565 frame still has to sit in PSRAM at 750 KiB. Small SPI panels avoid the question because their controller holds the frame and the host only sends the regions it changes.
Which panels suit an ESP32-S3?
Panels up to roughly 480x272 suit the S3 well over RGB565 at 60 Hz, or 800x480 at 30 Hz with PSRAM. SPI modules from 2.8 to 4.3 inch suit designs that need few pins and can accept partial updates. A 7 inch 800x480 raw panel is possible but needs PSRAM, careful DMA design and a reduced frame rate. Where the product needs 60 Hz at 800x480 and a small firmware team, a smart module with its own controller is usually the lower-risk fit.
By continuing to use the site you agree to our privacy policy Terms and Conditions.