In this video and hands-on training: Building on the training
Create an AVR project in MPLAB X, the LED is now toggled every 1000 mS. In order to do
this, the PINx I/O PORT register is used, as well as a utility delay function from AVR
Libc. Finally, IO View is used to debug the MCU register settings.
- For existing AVR users used to working in Atmel Studio 7, some of the
similarities and differences with MPLAB X are emphasized.
- For existing PIC MCU users of MPLAB X, an overview of AVR bare-metal
programming references is given (listed below). For each of these references, an
attempt is made to show how each one is used in the typical process of writing
AVR code.
- ATmega324PB device datasheet
- ATmega324PB device header
file
- ATmega324PB Xplained Pro
schematic
- AVR Libc: Utility delay function
header file
Kit used in this example:
The kit used will be the ATmega324PB Xplained
Pro (ATMEGA324PB-XPRO), as well as the Atmel ICE (ATATMEL-ICE)
debugger.