nRF52840 deep sleep mode?

You can use the following line of code to go into sleep mode.

NRF_POWER->SYSTEMOFF = 1;

I would also recommend checking out the NRF52840 chip documentation so you can check out the other registers. Just remember to add a 1000 ms or so delay when powering it back on so it has time to wake up. If you need anything else, let me know! I hope it works well!