I2C bus held high after L96 hot/warm/cold reset & exit backup mode

We notice that the I2C bus (SDA at least) is pulled high by the L96 after sending a hot, warm or cold reset command (and also after powering VCC to exit backup mode). Measuring with an oscilloscope, the pull occurs about 30 ms after the reset command is sent, and lasts 85 ms. For power-on VCC, the pull occurs a bit later, after 133 ms. This is unfortunate as it prohibits the use of the the bus during this time period. We use VCC to enter and exit.backup mode periodically.

Could you please advise if this is to be expected and if it is possible to avoid? We are using firmware L96NR01A03SC.

Hi arurke
IIC communication itself has a pull-up resistor. If no operation is performed, it will be a high level. Is there any problem with this?
image

Hi George,

Indeed, but the problem is that L96 pulls the bus high so that no other devices can pull it down. To reproduce:

  1. Have I2C bus with L96 in backup mode and another I2C device
  2. Poll the I2C device every 25 ms successfully
  3. Power on L96 VCC to exit backup mode
  4. Polling of I2C device fails about 130 ms after step 3. Failures lasts about 85 ms, before operating normally again. Note that the bus is always high during the failures.
  5. Note the same behavior when using any reset-command

Below is a voltage measurement of SDA during a warm-reset via command. The bus is at 3.3 V so that the pulling of the bus is visible. The first dips in the voltage is the warm-reset-command. About 35 ms later, the bus is pulled to 2.8 V. During this period, the bus is not usable. After 130 ms, the pull is released and bus can be used normally.

image

A friendly bump on my own thread. And a shameless ping to @george.gao in case you have more input.

Hi arurke
I2C communication requires a startup time each time it is started. This time is not clearly defined, but it will be around 100ms. It is recommended to delay for a while after each module startup before processing I2C communication.
I will send you the agreement document via message.

Hi @george.gao , a quick follow-up: Is this the expected/desired behavior, or something that you might address in future firmware updates?

Hi arurke
The L96 project has been discontinued and this function will not be optimized in the future.

1 Like