Professional Documents
Culture Documents
TP Understanding Mpi Dsi Csi 2 Dphy Interfaces
TP Understanding Mpi Dsi Csi 2 Dphy Interfaces
PUBLIC
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER W ORLD ARE TRADEMARKS OF NXP B.V.
ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RES PECTIVE OW NERS. © 2022 NXP B.V.
AGENDA
• MIPI Organization Overview
• MIPI DSI, CSI-2 & D-PHY Overview
• DSI Explained
• D-PHY Explained
• DSI System Example
• CSI-2 Explained
• CSI-2 System Example
PUBLIC 1
W H AT I S M I P I ? ! ? !
PUBLIC 2
M I P I I N T E R FA C E S F O R D I S P L AY AN D C A M E R A
A-PHY, etc.…)
CPU GPU
PUBLIC 3
M I P I D S I / C S I - 2 / D - P H Y M I S C O N C E P T I O N S / C L A R I F I C AT I O N S
PUBLIC 4
D S I : D I G I TA L D I S P L AY B AS I C S – I M A G E F R A M E
Complete Image Frame Including Blanking Pixel Data relative to Sync Signals
• HSYNC – Horizontal Sync – signals line start • VSYNC – Vertical Sync – signals Frame Start
• HBP – Horizontal Back Porch • VBP – Vertical Back Porch
• HFP – Horizontal Front Porch • VFP – Vertical Front Porch 6
PUBLIC
D S I : D I G I TA L D I S P L AY B AS I C S – H D T V E X AM P L E
Pixel Clock (PCLK) = (Pixels per Frame) * (FPS) = 2,475,000 pixels * 30 FPS = 74.25MHz
PUBLIC 7
D S I - PAR A L L E L T O S E R I A L
PUBLIC 8
D S I – V I D E O M O D E PAC K E T I Z AT I O N
PUBLIC 9
D S I : D I G I TA L D I S P L AY B AS I C S – P I X E L F O R M AT S & B I T D E P T H
• RGB – 3 separate integers (of varying bit depths) for the values of Red, Green, Blue.
• RAW – 1 integer (of varying bit depth) for the light intensity of a single pixel.
• Color space transform (ITU-R BT.709 standard) defines RGB to Y’CbCr for HDTV.
• Y’CbCr – Y′ is the luma component and CB and CR are the blue-difference and red-difference
chroma components. Chroma Subsampling allows for 30-50% bandwidth reduction over RGB.
• YUV – Effectively the same as Y’CbCr but used with older analog formats.
Transmitter Receiver
• Source synchronous physical layer which the CSI-2 and DSI Dn + Dn +
protocols both use for physical and electrical communication. Dn - Dn -
PUBLIC 11
D - P H Y L AN E I O AR C H I T E C T U R E
• Low Power (LP) mode uses traditional single ended CMOS IO buffers.
• High Speed (HS) mode uses LVDS circuitry
− 50 Ohm traces
− 100 Ohm termination resistor (disabled during LP mode)
• Single Lane IO Block Diagram Below:
TX RX
LP-TX LP-RX
LP-RX LP-TX
P Parameter Description Min Typ Max Units
HS-TX R HS-RX LP Output High 1.1 1.2 1.3 V
LP Input low level threshold (Vil) 550 mV
N
HS Common Mode Voltage 150 200 250 mV
LP-TX LP-RX
HS TX Differential Voltage 140 200 270 mV
LP-RX LP-TX HS Output High Voltage 360 mV
PUBLIC 12
D - P H Y T R AN S I T I O N F R O M L P T O H S M O D E
PUBLIC 13
D - P H Y T R AN S I T I O N F R O M H S T O L P M O D E
i.MX RT1170 EVK + 5.5” LCD Display DSI parameters for RM68200
PUBLIC 15
D - P H Y T R AN S I T I O N F R O M L P T O H S M O D E – i. M X R T 11 7 0 E X A M P L E
TCLK-TERM-EN 38ns
DATA0P
TCLK-PREPARE 38ns 95ns
TD-TERM-EN 40ns
THS-PREPARE +
157.6ns
DATA0N THS-ZERO
TCLK-ZERO Time that the transmitter drives the HS-0 state prior to starting the Clock. TCLK-ZERO + TCLK-PREPARE > 300ns TX 262ns
TCLK-PRE Time that the HS clock shall be driven by the transmitter prior to any associated Data Lane beginning the transition from LP to HS mode. TX 80ns
THS-PREPARE Time that the transmitter drives the Data Lane LP-00 Line state. Set longer than RX time to enable termination – defined as TD-TERM-EN in RX datasheet TX 41.67ns
THS-SETTLE Time interval during which the HS receiver shall ignore any Data Lane HS transitions, starting from the beginning of T HS-PREPARE. THS-SETTLE needs to be > RX
than THS-PREPARE but < THS-PREPARE + THS-ZERO
THS-ZERO Time that the transmitter drives the HS-0 state prior to transmitting the SoT sequence. TX 12ns
PUBLIC 16
D - P H Y T R AN S I T I O N F R O M H S T O L P M O D E – i. M X R T 11 7 0 E X A M P L E
TCLK-TRAIL Time that the transmitter drives the HS-0 state after the last payload clock bit of a HS transmission burst. Min: 60ns 70ns
PUBLIC 17
D S I : C L O C K S AN D B AN D W I D T H B A L A N C I N G
• BW_OUT (D-PHY) >= BW_IN (Pixel Bus)
• BW_IN = Pixel Clock * Pixel Depth
• BW_OUT = HS Bit Clock * Num. of Data Lanes
• HS Bit Clock >= Pixel Clock * Pixel Depth / Num. of Data
Lanes
• HS Bit CLK = (PCLK * bpp / # data lanes) * (DSI
Overhead) = (58.66667 * 24 / 2) * (9/8) = 792MHz
BW
BW IN OUT
• Pixel Clock: Incoming display data clock.
• HS Bit Clock: Used to generate the HS MIPI clock. Equal to
the HS bit rate of the data lanes.
• Byte Clock: Is 1/8th the data rate of the HS Bit Clock
• Escape Clock: Used for LP mode control and data
transmission. (12MHz - 20MHz)
• D-PHY HS mode speed range: 80 – 1500Mbps per lane for
NXP devices.
MIPI DSI Clock Lane scope plot using differential
PUBLIC 18
probe. (Note DDR rate = 792MHz / 2 = 396MHz)
C A M E R A S E R I AL I N T E R FA C E V E R S I O N 2 ( C S I - 2 )
• Think of it like DSI but with an additional I2C link Camera SoC
PUBLIC 19
C S I - 2 : F R A M E F O R M AT
PUBLIC 20
C S I - 2 E X AM P L E : i. M X R T 11 7 0 + O V 5 6 4 0
PUBLIC 21
JOURNEYS BY DESIRED ENGAGEMENT 60+ VIRTUAL DEMOS
Self-guided tour Focus on system solutions
Live-streaming at set times Set up along NXP verticals
Guided tours
SHOWROOM.NXP.COM
PUBLIC 22
SHOWROOM.NXP.COM
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER WORLD ARE TRADEMARKS OF NXP B.V. ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RESPECTIVE OWNERS. © 2022 NXP B.V.
D - P H Y D ATA T R AN S F E R
• The Stop State is the default state from which everything starts from or reverts back to.
• The transition between LP and HS mode incurs some “time overhead” which must be accounted
for during the initial setup.
PUBLIC 24
C S I - 2 : D ATA I N T E R L E AV I N G / V I R T U A L C H A N N E L
• Packet Types:
• Data Type
• Virtual Channel
Identifier
• Both can be mixed to
create a tree of
interleaved data and
a theoretical max of
16 images per
interface.
PUBLIC 25
C S I - 2 : I M A G E S E N S O R B AS I C S
needed?
a pixel array of 2624 columns by 1964 rows for a
total of 5,153,536 pixels. Active columns are 16 –
2607 and active lines are lines 14 - 1957 giving a
maximum useable image array of 2592 x 1944 =
•
5,038,848 active pixels.
TBD based
An ADC samples the voltage of each pixel and
outputs a digital value. This unprocessed digital
value is what is known as a RAW format. The
upon time
OV5640 has a 10-bit ADC and therefore outputs in
a native “RAW10” format.
• Image data is transferred just like raster displays –
a stream of pixel data left to right, top to bottom and
with no (X,Y) coordinate data. Active
Image
Area
PUBLIC 26