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.

SN65DSI85Q1-EVM: How to read and write CSR Register using external host I2C

Part Number: SN65DSI85Q1-EVM
Other Parts Discussed in Thread: SN65DSI85

I am using SN65DSI85Q1-EVM, I want to generate LVDS pattern to test my tft lcd without host processor.

So I have write the code to read and write SCR register using I2C from microcontroller.

I am not getting acknowledge from SN65DSIQ1.

Please provide sample code in brief.

Here I have attached sample code to read single CSR register

void lvds_init(void)
{
I2C_START();

//Write Address
if(I2C_WRITE(0x5B))
{
pc.printf("\r\nNack");
}
else
{
pc.printf("\r\nAck");

// Write Sub-Address
if(I2C_WRITE(0x0A))
{
pc.printf("\r\nNack");
}
else
{
pc.printf("\r\nAck");
unsigned char data=I2C_READ();
printf("\r\nData=%02X",data);
}
}
I2C_STOP();
}

Regards

Ram