1.14 Timer32 Periodic Timeout

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

Description

This example application generates periodic timeout using the TIMER32 peripheral. The TIMER32 peripheral is configured to generate a periodic timeout every 1 second. A callback is registered with the TIMER32 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/timer32/tmr32_periodic_timeout/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.XMPLABX project for CEC 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