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

TWI High Idle Current PAN 89

Hi guys, I'm trying to nail down this TWI issue. PAN 89 is related to TWI being used in conjunction with the GPIOTE module. However I manually wrote my own application level code to interface to the nrf_drv_twi code. So I'm not 100% sure it applies to my situation. I do use GPIOTE in a separate freeRTOS thread for interrupt sensing. Also if I comment out that GPIOTE code, there isn't a hugh effect on my idle current. Also tested with and without TWI EasyDMA.

After I place my MPU9250 in low power wake up mode, the device idles at ~600uA.

I've added the suggested code in PAN 89 and I uninit the TWI Sensor Comms when in low power. However this added code seems to have no effect. I use TWI1

void disable_sensor_comms()
{
	nrf_drv_twi_uninit( &m_twi );
	*(volatile uint32_t *)0x40004FFC = 0;
	*(volatile uint32_t *)0x40004FFC;
	*(volatile uint32_t *)0x40004FFC = 1;
}
Related