TI中文支持网
TI专业的中文技术问题搜集分享网站

DS90UB954/DS90UB953无法读取sensor的i2c

目前用ov9734—>DS90UB953 ————————————————–>DS90UB954–>DSP

ov9734的i2c id是0x6C

配置DS90UB954如下

{0x0C, 0x81},
{0x4C, 0x01}, // Set up Port0
{0x58, 0x5e}, // Set up Back Channel Config
{0x5B, 0x30}, // Set up SER ID
{0x5C, 0x18}, // Set up SER Alias ID
{0x5D, 0x6C}, // Set up Slave/Camera ID
{0x65, 0x6C}, // Set up Slave/Camera Alias ID
{0x4C, 0x01},
{0x72, 0xED},
{0x33, 0x33}, //1 lanes
{0x1F, 0x3}, 
{0x20, 0x20} //RX0 enable

配置DS90UB953如下

{0x0E,0xC0}, // Set GPIO2 and GPIO3 to outputs, where GPIO2 = RESET and GPIO3 = PWDN
{0x0D,0x0C}, // Set GPIO2 and GPIO3 to High – bring sensor out of power down mode
{0x0D,0x08}, // Bring GPIO3 low to place sensor in reset
{0x0D,0x0C}, // Bring GPIO3 high again to prepare sensor for initialization
{0x02,0x43}, //1 lanes input

现在DSP端能读写954,953的I2C,但是用0x6c无法读到sensor的I2C,请问会是什么原因

(sensor电源,clk都正常,直接在sensor端接i2c可以读到,BTW,sensor的i2c是16bit {0x300A, 0x97})

Amy Luo:

您好, 需要在寄存器使能I2C pass-through,参考下E2E论坛的回复,我理解您的问题和链接问题类似: e2e.ti.com/…/747607

jimmy Ng:

回复 Amy Luo:

您好,

关于您提到的寄存器0x58使能I2C pass-through

如帖子所示,我已经在954里设置了0x58的为0x5e,即bit4,bit6 都已经enable了

Amy Luo:

回复 jimmy Ng:

您好,0x58 bit 7和DS90UB953 的 register0x32也都使能。

赞(0)
未经允许不得转载:TI中文支持网 » DS90UB954/DS90UB953无法读取sensor的i2c
分享到: 更多 (0)