Skip to main content

Command Palette

Search for a command to run...

CSI-2 (Camera Serial Interface 2)

Published
โ€ข3 min read

๐Ÿ“˜ CSI-2 (Camera Serial Interface 2)

1) Concept

CSI-2 is a high-speed serial interface used to transfer image data from a camera sensor to a processor (MCU/SoC/ISP). The โ€œ2โ€ indicates that it is the second-generation camera interface standard defined by the MIPI Alliance.

Image Sensor โ†’ (CSI-2) โ†’ SoC / ISP

CSI-2 is widely used in smartphones, drones, automotive cameras, and industrial vision systems.


2) Why CSI-2? (Compared to SPI / Parallel Interfaces)

InterfaceCharacteristicsDrawbacks
Parallel (DVP, etc.)Transfers multiple bits at onceRequires many pins, complex PCB routing
SPI / QSPIUses fewer pinsBandwidth too low for high-resolution video
โœ… CSI-2High bandwidth with few pinsRequires PHY + protocol understanding

CSI-2 allows high-resolution, high-FPS video transfer while keeping pin count low.


3) Signal Structure

CSI-2 is transported over MIPI D-PHY or C-PHY. The most common is D-PHY.

Signal LanePurpose
Clock Lane (1 differential pair)Timing reference for data transfer
Data Lanes (1โ€“4 differential pairs)Carries image data

Example physical wiring:

CLK+   CLK-
DATA0+ DATA0-
DATA1+ DATA1-
...

These are differential pairs, which provide:

  • High noise immunity

  • Stable operation at multi-Gbps speeds


4) Two Operating Modes (LP vs HS)

CSI-2 alternates between two signaling modes:

ModeSpeedPurpose
LP (Low-Power) ModeMbps-levelSensor configuration & control
HS (High-Speed) ModeGbps-levelActual frame data transmission

Flow:

Configure camera โ†’ LP mode
Start streaming โ†’ HS mode
End frame โ†’ back to LP mode

5) Data Format (Packet-Based Transmission)

CSI-2 does not transmit raw bit streams. It sends packets:

[Header] [Payload (pixel data)] [CRC/ECC]

This allows:

  • Data integrity checking

  • Lane alignment and frame reconstruction


6) Common Pixel Formats

FormatMeaning
RAW1010-bit per pixel raw sensor output
RAW1212-bit per pixel raw data
YUV422Semi-processed color output
RGB888Fully expanded color data

Most sensors output RAW10 / RAW12, which the ISP converts later.


7) What the Processor Must Handle (Important in Practice)

On the SoC side, the CSI-2 receiver and image pipeline must be configured:

  1. Number of data lanes

  2. Virtual channel selection

  3. Pixel format configuration

  4. Enable CSI-2 receiver hardware

  5. Route frames to ISP or DMA โ†’ Framebuffer / Memory

CSI-2 is not just wiring โ€” it requires:

  • CSI Receiver hardware block

  • Driver configuration

  • Image pipeline setup


8) Summary

CSI-2 is a high-speed serial camera interface using differential lanes.
It switches between low-power mode for configuration and high-speed mode for streaming.
Image data is transmitted as packets (RAW/YUV/RGB), which the SoC receives and processes through its CSI receiver and ISP pipeline.