BQ76PL445A菊花链唤醒失败
求助,请不吝赐教。
我目前的bms从控中采用两块455a,第一块用455a用WEAKUP引脚唤醒,能采集到正确的数据;第二块455a采用菊花链唤醒,但是采样不到数据,检查发现71号引脚NPNB没有输出电平,VDIG没有5.3v电平,故判断为455a菊花链唤醒失败。
程序如下:
delayms(5); //~5ms
WakePL455();
delayms(5); //~5ms
for(nDev_ID = 0; nDev_ID < 2; nDev_ID++) {
nSent = WriteReg(nDev_ID, 12, 0x20, 1, FRMWRT_ALL_NR); // power up
delayms(100); //~100ms
}
// Mask Customer Checksum Fault bit
nSent = WriteReg(0, 107, 0x8000, 2, FRMWRT_ALL_NR); // clear all fault summary flags
// Clear all faults
nSent = WriteReg(0, 82, 0xFFC0, 2, FRMWRT_ALL_NR); // clear all fault summary flags
nSent = WriteReg(0, 81, 0x38, 1, FRMWRT_ALL_NR); // clear fault flags in the system status register
// Auto-address all boards (section 1.2.2)
nSent = WriteReg(0, 14, 0x19, 1, FRMWRT_ALL_NR); // set auto-address mode on all boards
nSent = WriteReg(0, 12, 0x08, 1, FRMWRT_ALL_NR); // enter auto address mode on all boards, the next write to this ID will be its address