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

anable/disable peripherals on nRF9160 DK

Hi,

I'm in the process of evaluating the nRF9160 DK and this I want to be able to control the diferent peripherals on the DK so I can reduce as much as I can the current consumption since my system is going to be powered by batteries.

I have to read and analog input and activate/deactivate some digital outputs, but I only have to do this every 15 minutes, the rest of the time I need the mcu to be on idle and the modem offline so that I can save energy. And every hour I have to connect the modem to the net to check if there is any messages.

 I have an application that just reads an analog input and it consumes 0.5mA, and that is only because I am using the serial port to see the values.

I have another application to activate and deactivate 2 DOs and I am meassuring ~8,8mA. That is what it should be? there is a big difference between this and the analog inpot aplication.

Any way, I need to disable the gpio peripheral in order to decrease that current when the system is on idle, currently I'm using k_Sleep(10000) every time I change the DO's state and during that time the current doesn't go down.

I would appreciate your help?

Kind regards,

Ainara

Related