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

How to set nRF24LE1 into power saving register retention mode with timers off with clock source from XOSC32K ? I need the command / code to do this.

Hello,

I want to set the nrf24le1 module into register retention mode with timers ON but clock source from XOSC32K. I need this power saving code in my project. Also can I wake from the register retention mode with pinwake up? I did look into the bit setting here

0xA4 Register to be set
2:0 W/R
Set system to power down if different from 000
001: set system to DeepSleep
010: set system to Memory retention, timer off
011: set system to Memory retention, timer on
100: set system to Register retention
101: reserved
110: reserved
111: set system to standby (stop MCU clock)

But I do not know what value to write into the register and how to write into the register. There is a function to write the register.

uint8_t hal_nrf_write_reg(uint8_t reg, uint8_t value);

How do I use this to set the module into register retention mode?

Updated:

On further reading I came across this example of register retention

https://www.nordicsemi.com/eng/Nordic-FAQ/All/How-to-setup-register-retention-mode-on-the-nRF24LE1

Now it mentions that a pin wake up function can be used by setting

WUOPC0 = 0x02; 

Now my nRF24LE1 is a 24 pin package. So as per the below table.

Now how does 0x02 translate to the above thing.

Related