Part 3: Getting familiar with the Easy AVR v7 development board and assembly programming
- Modify your “lab0.asm” code such that a key press to any bit bi turns off all even-indexed bits if index i is even, i.e., (b0, b2, ..., b6 ). Otherwise, if index i is odd, key press turns off all odd-indexed bits, i.e., (b1, b3, ..., b7 ). Don’t forget to save the modified code.
- Assemble (Build -> Build Solution)
- Go to “Start Menu” -> “All Programs” -> “Mikroelektronika” -> “AVRFLASH Programmer” -> “AVRFLASH”.
- In the “CODE” panel, press on the “Load” button and locate the binary file “\path-to-project-directory\Debug\lab0-lastname.hex”.
- Program the microcontroller by pressing the “Write” button.
- Make sure that the code functions as expected on the board. Report what you observe.
- Copy and paste your modified code into the following answer part.
- Demonstrate your code to the instructor/TA.
- Part 3 is all done. Thanks.