nRF51 SDK - S210 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
WDT Example

The WDT Example demonstrates the usage of the watchdog peripherals.

When the application starts, all LEDs are turned on one after the other. When all LEDs are lit, user input ("feeding the watchdog") is required to avoid system reset.

Pressing Button 1 triggers feeding the watchdog. The watchdog time-out is two seconds. Therefore, it should be fed at least once every two seconds.

The name of the example is wdt_pca10028. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\Nordic\nrf51\examples\peripheral\wdt

Testing

Test the WDT Example application by performing the following steps:

  1. Compile and program the application.
  2. Observe that the system is starting up and the LEDs are turned on.
  3. Feed the watchdog by pressing Button 1.
    • If the watchdog is fed regularly, all LEDs remain turned on.
    • If the watchdog is not fed within two seconds, the watchdog timer will expire and the system will be reset.