Lab 13: Introduction to Assembly
Lab Code
Each link will take you to the GitHub source for any code associated with the circuits in this lab.
Upload to Arduino from Atmel Studio
- Go to device manager and see what port the Arduino is connected to
- Go to tools > external tools
- Name: Upload to Arduino
- Command: navigate to C:\Program Files (x86)\arduino-nightly-windows\arduino-nightly\hardware\tools\avr\bin\avrdude.exe
- Under argument, copy/paste the following text (change the -PCOM4 to represent the number of the COM port that the Arduino is connected to):
-C"C:\Program Files (x86)\arduino-nightly-windows\arduino-nightly\hardware\tools\avr\etc\avrdude.conf" -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(TargetName).hex":i
- Select “use output window”
- When you want to upload to the Arduino…
- First, build the file and ensure there are no issues in your code
- Then, go to tools, Upload to Arduino
Resources
Watch/read the following resources prior to the first lab. This information will teach you how to use lab equipment and provide suggestions and technical tips for successfully completing the lab.
- Textbook: Chapters 7 and 19
- PDF: AVR Instruction Set Manual
- Website: Microchip Studio software download page
- Website: How to program Arduino from Microchip Studio (this works for both Atmel Studio and Microchip Studio)
- Website: AVR Delay Loop Calculator
This lab is licensed under creative commons as CC-BY-SA-NC. For more information, visit creativecommons.org.