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.

BQ76942: Clock stretching

Part Number: BQ76942

Hi,

It is known that BQ76942 device perform clock stretching occasionaly. Is any option to avoid clock stretching when only reading cells voltages? In a datasheet I read that there is a possibilty to send a subcommand which moves data from a given register to the transfer buffer, after some time this data could be then written from the transfer buffer (without clock stretching activated). Is this correct?

Many thanks, Kind regards, Dejan.

  • Hi Dejan,

    There's not a guaranteed method to always avoid clock stretching, but two good methods to mitigate it are:

    1. Place a 2ms wait between sending a command to load data and reading the data from the transfer buffer.

    2. Table 9-2 of the TRM has a list of approximated processing times for most commands/subcommands. This can be used to fine tune the delay in Method 1 if 2ms is not as acceptable.

    Note that this isn't perfect since if the device is busy processing something else at the time, the processing time may increase and the device may end up clock stretching.

    Regards,

    Max Verboncoeur