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.

[参考译文] DS90UB954-Q1EVM:如何通过 DS90UB954EVB 和 DS90UB953EVB 将命令发送到 OV2718

Guru**** 2486735 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/682306/ds90ub954-q1evm-how-to-send-the-command-through-ds90ub954evb-and-ds90ub953evb-to-ov2718

器件型号:DS90UB954-Q1EVM

我将 OV2718与 DS90UB953连接、并希望通过 DS90UB954EVB 发送命令。

OV2718 I2C 地址为6C (8BIT)

OV2718寄存器为0x3013、数据为0x01

脚本的寄存器地址仅为8位。

如何发送16位(0x3013)寄存器地址?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    尊敬的 Kim:
    下面是一个示例、OVT 是传感器的远程别名地址、0x30是高8位、0x7f/80/81/82是低位地址。 值为0xc0/0x05/0xc8/0x03。

    //////////////////////////////// 示例////////////////////////////////////////////////////////////////////////
    board.WriteI2C (OVT、0x30、[0x7f、0xc0])
    board.WriteI2C (OVT、0x30、[0x80、0x05])
    board.WriteI2C (OVT、0x30、[0x81、0xc8])
    board.WriteI2C (OVT、0x30、[0x82、0x03])
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////


    此致、
    Steven