Other Parts Discussed in Thread: BQ76PL455A
Hi
Can you please kindly help me on a quick question from HELLA? They’re working on the pre-research BMS project with BQ76PL455 and have some questions and they’re pushing for an answer. The topology is daisy chain, and they can read the first chip device address however they fail to read the second chip’s address. Is it because they’re using a broadcast command? Attached is their code as below, can you please help on this case?
Write_Broadcast(0xF2,0x10,0x10E0,2); //Fully Enable Differential Interfaces and Select Auto-Addressing Mode
Write_Broadcast(0xF1,0x0E,0x10,1); //Configure the bq76PL455A-Q1 device to use auto-addressing to select address
Write_Broadcast(0xF1,0x0C,0x08,1); //Configure the bq76PL455A-Q1 device to enter auto-address mode
Write_Broadcast(0xF1,0x0A,0x00,1);
Write_Broadcast(0xF1,0x0A,0x01,1);
Write_Reg(0x81,0x00,0x0A,0x00,1);
UART_receive_array(4);
Alarm_led1_on();
if(Receive_Buffer[1] == 0x00)
{
Alarm_led2_on();
}
else
{
Alarm_led2_off();
}
Write_Reg(0x81,0x01,0x0A,0x00,1);
UART_receive_array(4);
if(Receive_Buffer[1] == 0x01)
{
Alarm_led3_on();
}
else
{
Alarm_led3_off();
}