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.

[参考译文] BQ20Z95:I2C (SMBus)位序列、多字节返回接收、MCU 通信

Guru**** 2394295 points


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

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/654048/bq20z95-i2c-smbus-bit-sequences-multi-byte-return-reception-mcu-communicate

器件型号:BQ20Z95

您好!

MCU 与 IC qb20z95通信、SBS 命令 ManufacturerName (0x20)返回12个字节、但我只能接收2个字节、我该怎么办?

我的位序列:START + 0x16 + ACK + 0x20 + ACK + SR + 0x17 + ACK +返回长度字节+ ACK +返回字节1 + ACK +返回字节… +停止。
位序列符合 smbus110.pdf Page26的要求。(块读取)
但我只能接收2个字节。 为什么?

另一个问题:

BQ20Z95密封至非密封,默认非密封键为0414,3672。

我的位序列:Start+0x16+ACK+0x00+ACK+0x14+ACK+0x04+ACK+Start+0x16+ACK+0x00+ACK+0x72+ACK+0x36+ACK+Stop。 (__LW_AT__4秒内执行)

对吗?这是工程师的指导、我不知道我是否理解正确。  或 smbus110.pdf Page25。(块写入)?

谢谢

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

    以下是不带 PEC 的命令、其中:

    S:启动
    答:ACK
    N:NACK
    P:停止

    对于 ManufacturerName (0x20):

    S + 0x16 + A + 0x20 + A + S + 0x17 + A + 0x0B + A + 0x54 + A + 0x65 + A + 0x78 + A + 0x61 + 0x73 + A + 0x20 + N

    对于使用默认键取消密封:

    S + 0x16 + A + 0x00 + A + 0x14 + A + 0x04 + N
    S + 0x16 + A + 0x00 + A + 0x72 + A + 0x36 + N

    此致、
    Bryan Kahler
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Bryan、
    非常感谢您的回复。
    您已确认位序列。
    然后我仔细检查读数、尝试降低频率。 现在问题已经解决了。
    再次感谢