Getting Started with GPIO (General Purpose Input/Output) Examples (MPLAB® X) Using the ATmega4809 Microcontroller
This repository contains examples of bare metal source code for General Purpose Input/Output (GPIO) as described in the TB3229 - Getting Started with General Purpose Input/Output (GPIO) document from Microchip. The repository contains three MPLAB® X projects:
- Blink an LED: This use case shows how to toggle a pin connected to an LED (for more details, see Blink an LED)
- Long and Short button press: This project uses a pin as input to distinguish between a long and short button press, defined by a delay threshold (for more details, see Long and Short button press)
- Wake-Up On Button Press: Exits Sleep on button press, turns on an LED and goes back to Sleep. On button release, exits Sleep, turns off the LED and goes back to Sleep (for more details, see Wake-Up On Button Press)
More details and code examples on the ATMEGA4809 can be found at the following links:
- ATMEGA4809 Product Page
- ATMEGA4809 Code Examples on GitHub
- ATMEGA4809 Project Examples in START
- Getting Started with General Purpose Input/Output (GPIO)
- MPLAB® X IDE v6.15 or newer
- MPLAB® XC8 v2.45 or newer
- ATmega_DFP v3.1.264 or newer