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

The Timer Example demonstrates the use of the timer peripherals. This example replaces the less accurate busy delay in the Blinky Example with a more accurate hardware timer based delay.

When the application starts, some GPIO pins are configured as outputs to drive the LEDs. The applications then loops while toggling the state of one of the LEDs every 500 milliseconds.

The name of the example is timer_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\timer

Testing

Test the Timer Example application by performing the following steps:

  1. Compile and program the application.
  2. Observe that the LEDs state is changed every 500 milliseconds.