nrf52832 power consumption when disabling Twi driver (i2c)

Good morning,

It has been implemented a sleep mode to save battery when the board is not used.

To do that we follow the documentation and implemented the SystemOn mode and we've seen huge improvement in the power consumption (both in sleep and running mode)

When sleep mode is engaged all the peripheral are turned off.

To save power due to the twi driver we use the lines of code below.

Although we see good power save we think it is not enough.

The board when in sleep mode consumer around 550uA, but if the twi driver is not initialized at all, the consumption is around 280uA. So I guess there someting we can improve in the twi driver shut down sequence.

We are using nrf5 SDK 17.0.2

        /* Uninit all the TWI instances, this will put the hardware in a known state and stop any ongoing transfer, standard shutdown */
        for (uint8_t i = 0; i < I2C_BUS_N; i++)
        {
            nrf_drv_twi_disable(&busToTwiInstance[i]->twi);
            nrf_twi_mngr_uninit(busToTwiInstance[i]);
        }

Parents Reply
  • Hi,

     

    If custom design; Is this repeatable on all your boards, or just one?

      

    Luca Nisti said:
    The board without mcu consume around 200uA.

    Does this mean that you physically remove or power off the nRF?

    Luca Nisti said:

    Using the same firmware without initializing the I2C (twi0 an twi1 using easy dma) the consumption is around 250uA as expected and how we should want to have with the i2c disabled.

    Could you verify that the SDA and SCL is set high, either by pull-up (via NRF_GPIO->PIN_CNF register), or externally?

    If these pins are floating, you will see excessive current leaked.

     

    Can you please share your sdk_config.h?

    I want to explicitly see if you are using NRF_TWI or NRF_TWIM, by checking the defines "TWI0_USE_EASY_DMA" and "TWI1_USE_EASY_DMA".

    If one or both are set to '0', try setting them to '1' and see if this has any impact.

     

    Kind regards,

    Håkon

Children
Related