Hello. I'm researches the power consumption in System Off mode for nRF52810 chip. I use the next code to enter to System Off:
static void PrepareWakeUpPin (uint8_t pin_num, nrf_gpio_pin_sense_t pin_active)
{
nrf_gpio_cfg_sense_input(pin_num, NRF_GPIO_PIN_PULLUP, pin_active);
}
/**
* Description: This function is used to end active processes and enter the chip into System Off mode
(Will be wake up only by Reset or Active state at SPI's CS pin).
* Input parameters: sleep_cause - Reason for going to sleep.
* Return perematers: none.
**/
void EnterToSleep (cause_of_sleep_t sleep_cause)
{
switch (sleep_cause)
{
case SLEEP_BY_SPI_CMD: //If this function called from SPI handler - end all proccess and go to sleep
{
ret_code_t err_code;
NRF_LOG_FINAL_FLUSH(); //Flushing all log data from log queue before resseting/going to sleep
SPI_Deinit(); //Deiniting SPI module to disable EasyDMA for success going to System Off mode (Sleep mode)
BLE_Disable();
bsp_board_leds_off();
// Prepare wakeup pin.
PrepareWakeUpPin(APP_SPIS_CS_PIN, NRF_GPIO_PIN_SENSE_LOW); //Configure SPI chip select pin for wakeuping
// Go to system-off mode (this function will not return; wakeup will cause a reset).
err_code = sd_power_system_off();
APP_ERROR_CHECK(err_code);
}
case UNKNOWN_SLEEP_CAUSE:
default:
break;
}
}
Chip is goes to System Off and average consumption measured by UNI-T UT181A (UTM1181A) is about 0.2 μA (It's okay).
But, if you look at the consumption graph (recorded by UNI-T) in the System Off mode, then you can see current surges from 0.7 to 0.28 μA. What can they be caused by? And is it possible to drop the consumption down to 0.7μA?
