Jump to main content
Introduction
2 Overview
3 Blink an LED
4 Long and Short Button Press
5 Wake-Up On Button Press
This example demonstrates the usage of interrupts and sleep modes. In this use case, the microcontroller exits sleep on button press, turns on an LED, and goes back to sleep. On button release, it exits sleep, turns off the LED, and goes back to sleep. The LED is ON while the button is pressed, but the microcontroller can be in sleep mode.
6 Using GPIO within MCC
7 References
8 Revision History
The Microchip Website
Product Change Notification Service
Customer Support
Microchip Devices Code Protection Feature
Legal Notice
Trademarks
Quality Management System
Worldwide Sales and Service

The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.