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.

TDES954: IIC数据获取错误问题。

Part Number: TDES954
Other Parts Discussed in Thread: TSER953,

整个链路如上图所示。下图是逻辑分析仪器捕捉的数据,上排是TDES954端监测,下排是TSER953端监测。

缩小后。

读取时序和数据不对,是否配置有问题?

我们配置如下:

/* 954 config */
tdes954_write(0x01, 0x01);//复位
delay_ms(150);
tdes954_write(0x4C, 0x01);//select port 0,依赖与硬件设计
tdes954_write(0x58, 0xfa);//i2c PASS-THROUGH 该寄存器直接导致I2c是否能通过954透传给953或者sensor

tdes954_write(0x5B, 0x36);//953 I2C ADDR
tdes954_write(0x5C, 0x36);//953 I2C ADDR

tdes954_write(0x5D, 0x20);//sensor AR0324 i2c addr
tdes954_write(0x65, 0x20);//sensor AR0324 i2c addr

tdes954_write(0x6d, 0x7c);//配置模式

tdes954_write(0x0A, 0x13);//I2C CLK
tdes954_write(0x0B, 0x25);//I2C CLK
tdes954_write(0x0C, 0x01);//enable port0


tdes954_write(0x20, 0x20);//FWD_CTL1很重要,Forwarding enabled for RX Port 0
tdes954_write(0x33, 0x03);//4 lanes



/* 953 config */
tser953_write(0x01, 0x02); //reset
delay_ms(150);
tser953_write(0x02, 0x73); //4 lanes,Continuous Clock,
tser953_write(0x03, 0x1a); //
tser953_write(0x32, 0xe9); //Back Channel Configuration

tser953_write(0x0B, 0x13); //I2C
tser953_write(0x0C, 0x26); //I2C

tser953_write(0x0E, 0xF0); //gpio output enable
tser953_write(0x0D, 0x0C); //gpio output high