Simulating the ATMEGA 328 using MPLAB X

Опубликовано: 08 Март 2026
на канале: James Smith
3,958
35

The latest version of MPLAB X supports the ATMEGA 328 found on Arduino Uno boards. Here, we're going to turn on an LED connected to A0 on the Arduino (Port C, Pin 0 on the '328). I'll show you how to set up the I/O views for the debugger and simulator and how to step through the disassembled C code, side-by-side with the original C code.

[Note: I chose Port C Pin 0 on purpose as using decimal values in the register assignments would permit me to avoid hexadecimal and binary number representations.]