This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Are TWI manager implemented low power features?

My environment is: SDK14.1 + SD132 V5.0 + NRF52832

2 sensors(MPU9250 + LPS22HB) 1 battery gas meter (LTC2942) are mounted on TWI ( +1mA)

SPI to spi flash. (+1mA) and UART for shell. (+1mA)

I used both manager. After putting all the sensors above in low power mode. I got still ~4mA (CPU load = 0%). I use debugging to check the peripherals. TWI are both "ENABLE" constantly. Having a rough check with the source codes, it seems like TWI the is not putting the peripheral in power down mode when the transactions are finished.

Having check with other threads, all suggested using TWI0->ENABLE = 0; to turn the peripheral off.

My questions are:

  1. Is there any APIs (functions) that already provided the low power/power down with TWI manager that I missed?

  2. Is it safe to useTWI0->ENABLE = 0; together with managers? (Like if i modify the manager to disable the peripheral after transaction is finished, and enable it before transaction is started)

Or am I wrong with the concept of these manager or the way i used low power in peripherals

Parents Reply
  • I do not understand how your comment relates to the content of this question.

    The SDK is provided without any warranty, and you as a developer is always responsible to modify, test, and make sure the SDK examples and components work as expected in your product. We do our best to provide an SDK that work as described, and which include helpful modules that customers can use to avoid rewriting every piece of software in their product.

     

Children
No Data
Related