Skip to content
Display Engineer
Tool

Panel Timing Calculator

Enter the timing from your panel datasheet. Get the pixel clock, LVDS and MIPI DSI lane rates, SPI frame rate and frame buffer size, plus timing config for ESP-IDF, STM32 LTDC and Linux.

Panel

Horizontal timing · 1056 clocks per line

Vertical timing · 525 lines per frame

Some datasheets give one “blanking” value that already includes the sync pulse. If so, enter sync = 1 and back porch = blanking − 1.

esp_lcd_rgb_panel_config_t panel_config = {
    // ... data_width, pins, clk_src, fb_in_psram ...
    .timings = {
        .pclk_hz = 33264000,
        .h_res = 800,
        .v_res = 480,
        .hsync_pulse_width = 1,
        .hsync_back_porch = 45,
        .hsync_front_porch = 210,
        .vsync_pulse_width = 1,
        .vsync_back_porch = 22,
        .vsync_front_porch = 22,
    },
};

Timing fields only. Polarity, pins and data width still come from your panel datasheet and board.

How is the pixel clock calculated?

The pixel clock is the rate at which an RGB, LVDS or MIPI DSI host sends pixels to the panel, including the blanking time the panel needs between lines and frames. Each line is the active width plus the horizontal front porch, sync pulse and back porch; each frame is the active height plus the vertical front porch, sync pulse and back porch. Multiply the two totals by the refresh rate to get the pixel clock. For the Innolux AT070TN92 (7″, 800×480) the datasheet gives 1056 clocks per line and 525 lines per frame, so 60 Hz needs 1056 × 525 × 60 = 33.26 MHz, which matches its 33.3 MHz typical DCLK. Every interface figure on this page derives from that number: LVDS serializes 7 bits per pixel clock on each pair, and MIPI DSI carries pixel clock × bits per pixel across its lanes.

  • Pixel clock = (HSW + HBP + width + HFP) × (VSW + VBP + height + VFP) × refresh rate
  • LVDS = 7 × pixel clock per data pair (3 pairs for 18-bit, 4 for 24-bit)
  • MIPI DSI = pixel clock × bpp ÷ lanes (raw pixel data, before protocol overhead)
  • SPI = SPI clock ÷ (width × height × 16) frames per second at RGB565, ignoring command overhead
  • Frame buffer = width × height × bytes per pixel

These are calculations, not a guarantee that a given host can drive a given panel. Check the panel’s DCLK range and your host’s clock divider, and leave margin for overhead. MIPI DSI displays · LVDS displays · RGB displays · SPI displays

Sources

Every formula and limit used by the calculator, and where it comes from. Last reviewed 2026-11-27.

  1. 01
    Pixel clock = total width × total height × refresh rate; LTDC register mapping (value − 1)
    ST AN4861 Rev 7, §4.2.2 Table 6 and “Pixel clock computation”
  2. 02
    esp_lcd_rgb_timing_t field names; rgb_panel example (18 MHz, 800×480)
    ESP-IDF esp_lcd_panel_rgb.h and examples/peripherals/lcd/rgb_panel
  3. 03
    Device tree property names (clock-frequency, hactive, hfront-porch …)
    Linux kernel binding panel-timing.yaml
  4. 04
    LVDS: 7 bits per clock per pair; 3 pairs for 18-bit, 4 for 24-bit; 10–135 MHz
    TI SN75LVDS83B datasheet (SLLS846C), §9.1 and Features
  5. 05
    Dual-link LVDS splits odd/even pixels, halving the clock per link
    TI DS90C387 datasheet, p.1; TI SN65DSI84 datasheet §7.4
  6. 06
    SN65DSI83/84: 1–4 DSI lanes up to 1 Gbps each; LVDS 25–154 MHz
    TI SN65DSI84 datasheet (SLLSEC2H), Features
  7. 07
    MIPI DSI raw rate = pixel clock × bpp ÷ lanes; ×1.725 rule-of-thumb margin
    Espressif ESP-Techpedia “MIPI-DSI summary”; Microchip SAMA7D65 MIPI guide §5.3
  8. 08
    Bits per pixel: RGB888 24, RGB666 packed 18, RGB565 16
    Linux include/drm/drm_mipi_dsi.h, mipi_dsi_pixel_format_to_bpp()
  9. 09
    ESP32-P4 MIPI DSI: 2 lanes × 1.5 Gbps
    ESP32-P4 Series Datasheet v0.7, §4.2.1.7
  10. 10
    SPI write clock: ST7789V 66 ns (15.15 MHz), ILI9341 100 ns (10 MHz)
    Sitronix ST7789V v1.3 §7.4.3; Ilitek ILI9341 V1.11 §18.3.4
  11. 11
    AT070TN92 preset: DCLK 33.3 MHz typ., 1056 clocks/line, 525 lines
    Innolux AT070TN92 spec A070-92-TT-01, §3.3.3

Frequently asked questions

How do I calculate the pixel clock of an LCD?

Add the active width, horizontal front porch, sync width and back porch to get the total clocks per line. Do the same vertically to get total lines per frame. Pixel clock = total width × total height × refresh rate. A 7″ 800×480 panel with 1056 × 525 totals at 60 Hz needs 33.26 MHz.

Why is my refresh rate lower than 60 Hz?

If the pixel clock is fixed (for example 18 MHz on an ESP32-S3 RGB panel), larger porches mean more clocks per frame, so the frame rate drops. Use the “I know the pixel clock” mode to see the resulting refresh rate, then shorten the porches within the datasheet minimums.

When do I need dual-link LVDS?

When the pixel clock exceeds what one link can carry. The SN75LVDS83B accepts 10–135 MHz and the SN65DSI83/84 outputs 25–154 MHz per link. Dual link sends odd pixels on one link and even pixels on the other, so each link runs at half the pixel clock.

How many MIPI DSI lanes do I need?

Multiply pixel clock by bits per pixel and divide by the lane count, then compare with the per-lane limit of your host or bridge: 1.5 Gbps on the ESP32-P4 (2 lanes), 1 Gbps on the SN65DSI83/84 (up to 4 lanes). Keep headroom for protocol overhead.

Are the porch values in my datasheet min, typical or max?

Datasheets usually give all three. Start with the typical values, which is what this calculator expects. If the timing must change, stay inside the min–max range for every parameter and check that the pixel clock is still within the panel’s DCLK range.

Ask an engineer about these timings

Send your timings and host processor. We reply with matching modules, bring-up notes and a quote.

No spam. We reply from a real engineer’s inbox, usually within 12 hours.