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 Name | Description |
---|---|
cec1736_evb.X | MPLABX project for CEC 1736 Development Board |
Setting Up the Hardware
The following table shows the target hardware for the application projects.
Project Name | Board |
---|---|
cec1736_evb.X | MPLABX project for CEC 1736 Development Board |
Setting Up CEC 1736 Development Board
- No additional setup is requred to run this demo.
Running the Application
- Build and Program the application using its IDE
- Observe the LED6 (connected to GPIO156) blink at the rate of 1 second
Board | LED Name |
---|---|
CEC 1736 Development Board | LED6 |