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

Will Gpiote increase the current comsuption?

Hi all!

I'm running my code based on example "ble_app_template". When advertising without doing anything else, the current comsuption is about 200 uA.

Then I added a GPIOTE event for a button(in order to go into sleep mode when pressing the button), then the current comsuption rised to 1.2 mA.

the code is :

NRF_GPIOTE->CONFIG[1] = (GPIOTE_CONFIG_POLARITY_HiToLo <<GPIOTE_CONFIG_POLARITY_Pos)| (3 << GPIOTE_CONFIG_PSEL_Pos) | (GPIOTE_CONFIG_MODE_Event <<GPIOTE_CONFIG_MODE_Pos);

NRF_GPIOTE->INTENSET =GPIOTE_INTENSET_IN1_Set <<GPIOTE_INTENSET_IN1_Pos;

And my understanding is: As what i have been told, the current comsuption about 1mA might be caused by the 16MHz clock, does is mean the code aboved open the 16MHz clock?

I'm really confused about this problem, looking forward to your reply!

Related