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.

BQ76952: About command-only subcommands of Bq76952

Part Number: BQ76952

Dear Ti team,

I have a question about bq76952 subcommands, how can I get the execution of command-only subcommand is completed. As RM mentioned, the subcommands with data can read the 0x3E and 0x3F until they become the originally written. What about the command-only subcommands?  how about  direct commands ?

thanks and regards,

yao

  • Hi Yao,

    There is a Software Development guide for the BQ76952 that might be helpful as it shows some waveforms for different subcommands. Subcommands typically take around 500-600us to execute (there is a table in the TRM that shows the typical timing of different subcommands), but this time can vary depending on what the firmware bandwidth is like at the moment. So there are two ways to address this:

    1) Read from 0x3E/0x3F until the subcommand written is reflected. 

    2) Use a generic wait time. Many users have reported that waiting 2ms after a subcommand is sent works well and this gives some buffer for time variation. This should also work well for the command-only subcommands.

    Best regards,

    Matt

  • Hi Matt,

    Thanks for replay, do you mean all subcommands (include both with data and command-only) can reflect the originally command to 0x3E/0x3F ?

    But when I debug the code, only command with data can read back subcommand from 0x3e, the command only subcommand may return 0x00.

    So i guess for command only subcommands, the best way is just delay enough time.

    Regards,

    Yao

  • Hi Yao,

    Yes, you are correct.

    Best regards,

    Matt