SNLA308A April 2019 – October 2020 DS90UB941AS-Q1 , DS90UH941AS-Q1
The example code configures the devices for splitting a 2560x720 (2x1280x720, 60 fps, 100-MHz PCLK) superframe with Left/Right 3D from a 4-Lane DSI source to two remote displays with standard 720p and 480p resolutions. The 720p display is assumed to be connected to FPD-Link Port 0, while the 480p display is assumed to be connected to FPD-Link Port 1. The example code also configures the device for cropping the Port1 video after the splitting and before forwarding the data to the 720p display.
WriteI2C (0x01,0x08) //Disable DSI
WriteI2C (0x1E,0x01) //Select FPD-Link III Port 0
WriteI2C (0x4F,0x8C) //Set DSI_CONTINUOUS_CLOCK, 4 lanes, DSI Port 0
WriteI2C (0x5B,0x07) //Force Splitter mode
WriteI2C (0x56,0x80) //Enable Left/Right 3D processing to allow superframe splitting
WriteI2C (0x32,0x00) //Set the line size to 1280(LSB)
WriteI2C (0x33,0x05) //Set the line size to 1280 (MSB)
//Crop Port0 720p image
WriteI2C (0x1E,0x01) //Select FPD-Link III Port 1
WriteI2C (0x36,0x00) //Set crop start X position to 0 (LSB)
WriteI2C (0x37,0x80) //Set crop start X position to 0 (MSB) and enable cropping
WriteI2C (0x38,0xFF) //Set crop stop X position to 1279 (LSB)
WriteI2C (0x39,0x04) //Set crop stop X position to 1279 (MSB)
WriteI2C (0x3A,0x00) //Set crop start Y position to 0 (LSB)
WriteI2C (0x3B,0x00) //Set crop start Y position to 0 (MSB)
WriteI2C (0x3C,0xCF) //Set crop stop Y position to 719 (LSB)
WriteI2C (0x3D,0x02) //Set crop stop Y position to 719 (MSB)
//Crop Port1 480p image
WriteI2C (0x1E,0x02) //Select FPD-Link III Port 1
WriteI2C (0x36,0x00) //Set crop start X position to 0 (LSB)
WriteI2C (0x37,0x80) //Set crop start X position to 0 (MSB) and enable cropping
WriteI2C (0x38,0x7F) //Set crop stop X position to 639 (LSB)
WriteI2C (0x39,0x02) //Set crop stop X position to 639 (MSB)
WriteI2C (0x3A,0x00) //Set crop start Y position to 0 (LSB)
WriteI2C (0x3B,0x00) //Set crop start Y position to 0 (MSB)
WriteI2C (0x3C,0xDF) //Set crop stop Y position to 479 (LSB)
WriteI2C (0x3D,0x01) //Set crop stop Y position to 479 (MSB)
//Program TSKIP_CNT DSI parameter on DSI Port0
WriteI2C (0x40,0x04) //Select DSI Port 0 digital registers
WriteI2C (0x41,0x05) //Select DPHY_SKIP_TIMING register
WriteI2C (0x42,0x1E) //Write TSKIP_CNT value for 300 MHz DSI clock frequency
WriteI2C (0x01,0x00) //Enable DSI