请问一下我要如何用STM32的SMbus来送SBS command到bq78350去
例如, 送SBS command: 0x50 SafetyAlert()
我可以使用STM32的HAL library来完成吗
有没有相关的sample code?
Thanks
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.
请问一下我要如何用STM32的SMbus来送SBS command到bq78350去
例如, 送SBS command: 0x50 SafetyAlert()
我可以使用STM32的HAL library来完成吗
有没有相关的sample code?
Thanks
手册第8页
==>是指那一份手册?
例如要利用某一个SBS命令去取得相关资料,我是要依序写入
[S-Slave address-Wr] [SBS command code] [S-Slave address-Rd],
之后再去读取[Data byte] [Date byte]?
有没有相关的文作介绍?
Read Byte:
[S-Slave address-Wr] [SBS command code] [S-Slave address-Rd] [Data byte] [Date byte]
Thanks
bq78350:读取SMBus通讯格式(下划线为host侧发送的数据,黄色为bq78350返回的数据)
以下为示例读取0x4000后的64bytes:
S Addr:0x16 0x44 0x02 0x00 0x40 0xAB P
S Addr:0x16 0x44 S Addr:0x17 0x22 0x00 0x40 0x84 0x07 0x02 0x75 0x96 0x19 0x9C 0x65 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x40 0x00 0x00 0x00 0x00 0x85 P
S Addr:0x16 0x44 S Addr:0x17 0x22 0x20 0x40 0x00 0x13 0x88 0x00 0x00 0x13 0x88 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x80 P