| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Clock Example
This information applies to the nRF51 Series only.

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.

You can find the source code and the project file of the example in the following folder: `<InstallFolder>\examples\peripheral\clock`

# Testing

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.