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

How to use Watchdog in Nrf24le1?

Please provide me some details about how to implement watchdog functionality so that i can reset the entire system for avoiding software Hangs I have come up with a code that is as follows:... CLKLFCTRL|=0x01; WDSV=0x80; WDSV=0x02; since WDSV is a 16 bit register is the way I have used here correct to load a 16 bit value into that register here I am programming for a 5 sec auto reset...

  • You're using the correct values for WDSV and you write to WDSV in two operations. 0x80 first and then 0x02.

    This 16 bits word is read and written as two separate bytes, LSByte and MSByte. LSByte is read and written first.

    You need to enable the 32 kHz source by setting:
    CLKLFCTRL = 1;