Hello!
Question 1:
My IIC configuration is as follows
I call this function to read and write IIC
Now encountered such a problem: if I only configuration, namely just call twi_master_init initialized to the IIC, but no IIC bus communication (i.e., don't call twi_master_transfer), the standby power consumption in the normal range (around dozens of UA), but after the initialization, IIC communication, using twi_master_transfer standby at this time (not to carry on the IIC communication) power consumption increases to more than 600 UA.
Question 2:
My SPI configuration
I call this function to read and write to the device
Now encountered such a problem: if I only configuration, namely just call spim_init initialized to the SPI bus, but don't use SPI bus communication (i.e., don't call Spim_dma_read_write), the standby power consumption in the normal range (around dozens of UA), but after the initialization, SPI communication, using Spim_dma_read_write standby at this time (not the SPI communication) power consumption increases to around 1000 UA.
There is only one CPU (52840) on my device, all the peripherals have been removed. The bluetooth is in broadcasting (the radio interval of 1s). May I ask why this is caused?
My basic SDK package is: nrf5_sdk_15.0.0 _a53641a\examples ble_peripheral ble_app_ancs_c\pca10056\s140\arm5_no_packs
1. As shown in the IIC in the screenshot, what should I do with IIC's uninit operation?(after I used it, I configured the IIC pin as the GPIO default setting and called the nrf_gpio_cfg_default function, but no effect, the power consumption was still high).
2. After I used the spi, I called the nrfx_spim_uninit function, but the power consumption did not decrease.If you do not reinitialize the SPI at this point, it cannot be used.
Please give me some advice on the above two questions, thank you?