Question: Create a project in Gerd's AVR simulator for the ATMEGA 328p (If needed --consult instructions in Lab 2 on Moodle or use the help provided
Create a project in Gerd's AVR simulator for the ATMEGA 328p (If needed --consult instructions in Lab 2 on Moodle or use the help provided in the program). Make sure you uncheck the Interrupts enabled and Comprehensive options.
Assemble the default program. 1. In the Main program, what address(es) in Program Memory do the labels Main and Loop refer to? 2. What is the machine code for the assembly instruction rjmp loop? 3. Explain how the machine code for rjmp loop is calculated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
