1.3 HTM (Hibernation Timer) Timeout
This example application demonstrates how to generate periodic timeout using the Hibernation timer peripheral.
Description
This example application generates periodic timeout using the Hibernation peripheral. The Hibernation peripheral is configured to generate a timeout after 1 second. A callback is registered with the Hibernation timer peripheral. In the callback an LED is toggled and the timer period is re-configured to generate another timeout after 1 second thereby resulting in a periodic toggling of LED every 1 second.
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/htm/htm_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 required 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 |