nRF51 SDK - S120 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Clock Example

The Clock Example demonstrates the use of the clock peripherals. The example initializes the clock driver and configures an RTC0 tick event to toggle LED 1 (using PPI). The application then loops while toggling the state of the low-frequency clock, LFCLK, every 1000 milliseconds.

The name of the example is clock_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\clock


Test the Clock Example application by performing the following steps:

  1. Compile and program the application.
  2. Observe that LED 1 starts and stops blinking every second.