新接触一款锂电池管理芯片BQ40Z50-R1,但不知道该如何写BQ40Z50寄存器命令和采集内部数据,请指导!!
BQ40Z50是不是通过IIC与单片机通信的呀?并且能够将其内部的电压、电流、温度等数据传输给单片机的?
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.
新接触一款锂电池管理芯片BQ40Z50-R1,但不知道该如何写BQ40Z50寄存器命令和采集内部数据,请指导!!
BQ40Z50是不是通过IIC与单片机通信的呀?并且能够将其内部的电压、电流、温度等数据传输给单片机的?
请参考附件的技术参考文档,里面有详细的介绍。
如果想控制CHG/DSG的驱动,用单片机无法单独控制,只能通过PRES管脚控制同时打开或者关闭。不知道你需要控制这两个引脚起什么作用呢?
我的硬件电路设计就是要实现CHG和DSG的同时打开或者关闭,那PRES管脚怎么需要MSP430单片机发送什么指令来控制CHG和DSG的同时打开或者关闭呢?而且CHG和DSG的状态或者PRES的状态我通过哪个指令可以读到?
麻烦请问一下 为什么我在技术文档里一直找不到器件地址和读写地址 还是SMBUS通讯不需要读写地址 直接发送和读取寄存器的起始地址就可以了?
Write to DF example:
Assuming: data1 locates at address 0x4000 and data2 locates at address 0x4002.
Both data1 and data2 are U2 type.
To update data1 and data2, send an SMBus block write with command = 0x44
block = starting address + DF data block
= 0x00 + 0x40 + data1_LowByte + data1_HighByte + data2_LowByte + data2_HighByte
To read the DF, send an SMBus block write to the ManufacturerBlockAccess(), followed by the starting
address, then send an SMBus block read to the ManufacturerBlockAccess(). The return data contains the
starting address followed by 32 bytes of DF data in Little Endian.
Read from DF example:
Taking the same assuming from the read DF example, to read DF,
a. Send SMBus write block with command 0x44, block = 0x00 + 0x40
b. Send SMBus read block with command 0x44
The returned block = a starting address + 32 bytes of DF data
= 0x00 + 0x40 + data1_LowByte + data1_HighByte + data2_LowByte + data2_HighByte....
data32_LowByte + data32_HighByte