1.9 RTOS Timer

This example application demonstrates how to generate periodic timeout using the RTOS timer peripheral.

Description

This example application generates periodic timeout using the RTOS peripheral. The RTOS peripheral is configured to generate a periodic timeout every 1 second. A callback is registed with the RTOS timer and an LED is toggled in the callback function.

Downloading and Building the Application

To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions.

Path of the application within the repository is apps/rtos/rtos_timer/firmware .

To build the application, refer to the following table and open the project using its IDE.

Project NameDescription
cec1736_evb.XMPLABX project for CEC 1736 Development Board

Setting Up the Hardware

The following table shows the target hardware for the application projects.

Project NameBoard
cec1736_evb.XCEC 1736 Development Board

Setting Up CEC 1736 Development Board

  • No additional setup is requred to run this demo.

Running the Application

  1. Build and Program the application using its IDE
  2. Observe the LED6 (connected to GPIO156) blink at the rate of 1 second