SPI TFT Displays: What Actually Determines Performance
Share
SPI TFT is the default choice for embedded color displays: few pins, simple driving, plenty of reference material. But many teams get a 1.3" panel working fine, then hit visible lag, color shifts, or dropped frames when they move to 2.4" or higher resolution. In most cases these aren't code problems. They come down to a handful of hard constraints in the SPI physical layer itself.
1. Bus speed is not panel throughput
A datasheet figure of 40 MHz or 62.5 MHz on SCLK is a clock ceiling, not a pixel rate. Every pixel travels as 16 bits (RGB565), so two bytes per pixel, plus command and address overhead in synchronous mode. A full refresh of a 240×240 panel needs at least 115,200 bytes; at 40 MHz that's about 23 ms on paper, but real measurement usually lands at 40–60 ms. Three things cause the gap:
- CASET and RASET are sent at the start of each frame as plain byte transfers and get no benefit from clock acceleration.
- Many MCUs can't actually reach the nominal SPI rate; the post-divider frequency often falls short of target.
- With DMA or hardware SPI, DC pin transitions must land exactly on byte boundaries. A transition in the wrong place mixes command bytes into data.
So don't judge a panel by its advertised refresh rate. Measure full-screen fill time instead. A single timed solid-color rectangle gives you the real ceiling.
2. DC timing is the main cause of dead-on-arrival first screens
SPI itself carries no "command vs. data" flag; that's what DC (A0) is for. If DC is pulled low without adequate setup time before clocking, or if GPIO-driven DC toggling inserts an extra clock, the panel parses the wrong command and shows up as an all-white screen, garbage, or only a corner rendering correctly.
A debugging order worth following: software reset, wait 120 ms, confirm COLMOD is RGB565, then run a full-screen fill test. If RGB565 gets set to RGB666 (0x70) by mistake, colors come out dark or green-tinted with no error raised, so you have to reason backward from the symptom.
3. Match resolution to bus width
SPI is a serial bus at heart. The higher the resolution, the slower the refresh at the same SCLK:
| Resolution | Frame size (RGB565) | 40 MHz theoretical | Typical measured |
|---|---|---|---|
| 128×160 | 40 KB | 8 ms | 15–20 ms |
| 240×240 | 110 KB | 23 ms | 35–50 ms |
| 240×320 | 147 KB | 30 ms | 45–65 ms |
| 320×480 | 294 KB | 60 ms | 90–130 ms |
By these numbers, a 320×480 panel over single-lane SPI has no practical value for animation; it suits static UI or low refresh rates. If you need motion, move to an 8080 parallel or RGB interface, or use a controller that supports QSPI, where four-lane mode offers roughly four times the single-lane throughput.
4. Framebuffer strategy
Most SPI TFT modules carry no display memory of their own; the controller has a single frame of GRAM, and what you write is what shows. That leaves you with two options: keep a framebuffer on the MCU, or accept tearing from writing and displaying simultaneously.
- A small MCU without PSRAM (several ESP32 variants) can't allocate 110 KB for a 240×240 framebuffer, so partial refresh is the only path.
- Boards with PSRAM can hold the buffer externally, but PSRAM bandwidth becomes the new bottleneck.
- Partial refresh — updating only changed regions — is the best value optimization. Track dirty rectangles and you'll cut average power and bus occupancy by an order of magnitude.
One caveat for controllers like the ILI9341: if a partial refresh window isn't aligned to 8 pixels horizontally, the edge can shift by a pixel. Round your dirty rectangles to multiples of 8.
5. Power, backlight, and noise
At high SPI speeds, interference bites harder than bandwidth.
- Backlight: white LED backlights typically drop 3.0–3.2 V forward and need a series current-limiting resistor or a constant-current driver. Wiring straight to 3.3 V works briefly, then degrades fast as current runs away.
- Logic level: modules are specified at 3.3 V logic, but some parts tolerate 5 V inputs. Confirm the datasheet before connecting a 5 V MCU like an Uno. A series resistor limits current; it does not shift levels.
- Decoupling: place 0.1 µF and 10 µF close to VCC and GND, and add another 0.1 µF at the module end if you're running a long flex cable. A lot of intermittent garbage-display reports resolve with shorter leads and proper decoupling.
- Cable length: SPI is single-ended. Past about 10 cm the clock edge degrades. If you need the distance, lower SCLK — it's more effective than adding a buffer.
6. Three things to check first when selecting a part
- Is there a proven init sequence? ST7789, ILI9341, and GC9A01 init tables have been validated across the open-source ecosystem many times over. Exotic controllers often mean reverse-engineering your own, and that lands directly on your schedule.
- Does it support 3-wire SPI or QSPI? Three-wire drops the DC pin and simplifies wiring but has less timing margin. QSPI meaningfully improves high-resolution refresh.
- Is the FPC strain-relieved and shielded? In production, reliability at the flex bend decides your return rate more than any chip spec.
The ceiling on SPI TFT performance is set less by the panel than by bus timing, memory, and power design. Get full-screen fill time, DC timing, and decoupling right, and most "the display is bad" conclusions turn into "the design needs adjusting."
If you want, send the model numbers and specs from your product line (sizes, controllers, resolution, interface pins). I can rewrite this with your actual parts in the tables and add internal links to the relevant collection pages.