This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DS90UB935-Q1: DS90UB935 example code

Part Number: DS90UB935-Q1

Hi team,

customer use 935 +936 in camera project. do you have a basic exmaple code of 935 can provide them to evaluate?

customer have write a reg setting, can you help to review it to see if this is correct or need another reg settings?

thank you

#include  "ti_935_deserdes.h"
#include <linux/delay.h>

#define DEV_ADDR 0x7A //could be alias or device ID depending if run locally or remotely

void deserdes_ti_init(unsigned char i2c_dev)
{
// Set GPIO2 and GPIO3 to outputs, where GPIO2 = RESET and GPIO3 = PWDN
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x0E,0xC0);
// Set GPIO2 and GPIO3 to High - bring OVT10640 out of power down mode
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x0D,0x0C);
sleep(0.1);

// Bring GPIO3 low to place 10640 in reset
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x0D,0x08);
sleep(1);
// Bring GPIO3 high again to prepare 10640 for initialization
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x0D,0x0C);

//CSI ENABLE
// Set CSI_EN and set to continuous clock mode
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x33,0x03);
sleep(0.5);
// Set forwarding of RX port 0 to CSI output
//print "FWD_PORT0"
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x20,0x20);
sleep(0.5);

//internal frame sync
// Enable GPIO0-3 as outputs on 953
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x0E,0xF0);
// Enable Remote of GPIO0 and GPIO1 from DES
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x0D,0xF0);

//SER GPIOs as Inputs and Output to DES GPIO
//Set SER GPIO NOT as outputs
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x0D, 0x00); //no remote enable, no outputs
// Set SER GPIO0 as Input
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x0E, 0x01); //Only GPIO0 is output
// Set FC CTL for GPIO forwarding
write_serdes_rx_1bype_register(i2c_dev,DEV_ADDR,0x33, 0x05); //One GPIO forwarded and DCA CRC Enabled (by default)

}






 

  • Hello Betty,

    What are you looking to achieve in the evaluation?  Are you just trying to use the internal framesync?  If so, there is a code example in the 936 datasheet showing how to use this feature.  Any additional background on the issue would be helpful.

    Regards,

    Nick