TI中文支持网
TI专业的中文技术问题搜集分享网站

BQ76PL455级联读取不到第二片的地址

您好,我们目前遇到的问题如下:

    两片BQ76PL455级联无法读取到第二片的地址,第一片可以读到。也曾怀疑是硬件菊花链问题,但是我们广播关断两片BQ76PL455均可关断,说明数据是能够传递到第二片的,所以考虑是不是软件上有问题,麻烦您指点一下,谢谢。如下是参考TI软件参考手册写的代码,

            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();

            }

Star Xu:

1)Please check SW2 setting. For stack EVM, you should set SW2 to diff mode.

2)You can download sluuba7a_bq76PL455EVM and GUI User Guide, and see section-SW2 for more details.

3)If it still doesn't work, you can take the second board as base board to check the functionality of the board.

赞(0)
未经允许不得转载:TI中文支持网 » BQ76PL455级联读取不到第二片的地址
分享到: 更多 (0)