Part 2: Getting familiar with the Easy AVR v7 development board
Write your answers for each question below (specify the line numbers of each question) in the following answer part.
- Power the board with a USB cable (see page 7 of the User Guide).
- Turn Easy AVR v7 on, wait until the onboard LEDs are stable, and push the reset button.
- Push the reset button at the top right corner of the Easy AVR v7 board, and write down any observable changes on the development board.
- Go to “Start Menu” -> “All Programs” -> “Mikroelektronika” -> “AVRFLASH Programmer” -> “AVRFLASH”.
- In the popped-up window select the device model as “ATmega32”.
- Erase the code sector of the memory by pressing the “Erase” button.
- Repeat step 3.
- Start the “Atmel/Microchip Studio” program on your PC.
- Load your project from the preliminary work.
- 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 works as expected on the board. Report what you observe.
- Turn Easy AVR v7’s power off. Disconnect the PC connection (from Easy AVR v7 side).
- Turn the power on again. Is your code still resident on the system?
- Go to your Lab0 directory, list the files, and check their content. What do you think these files are used for?
- Start the debugger by pressing the “Start Debugging and Break (Alt + F5)” button.
- Change the value of PIND, then check R16 and PORTB values as you debug a single step through the code. The PIND value can be changed in the "I/O" window. Are they consistent?
- Repeat steps 10-11-12-13-14 with the new value of PIND.
- Show and demo your code to the instructor/TA.
- Part 2 is all done. Thanks.