Chapter 2
OBJECTIVES:
➢ To examine and use an AVR assembler.
➢ To examine and use an AVR simulator.
REFERENCE:
➢ Mazidi and Naimi “The AVR Microcontroller and Embedded Systems,” Chapter 2.
MATERIAL:
➢ Atmel Studio or the assembler of your choice.
WEB SITES:
➢ for Atmel Studio Software
ACTIVITY 1
Write and assemble a program to load register R20 with value $99. Then from register R20 move it to R0, R12, and R31. Use the simulator to single-step the program and examine the registers.
ACTIVITY 2
Write and assemble a program to add all the single digits of your ID number and save the result in R16. Pick 7 random numbers (all single digit) if you do not want to use your ID number. Then use the simulator to single-step the program and examine the registers.
1) Indicate the size (8- or 16-bit) of each of the following registers.
R0= R24= PORTA=
Data memory Location $300= Program memory Location $300=
2) For Question 1, indicate the largest value (in decimal) that each register can contain.
R0= R24= PORTA=
Data memory Location $300= Program memory Location $300=
3) For Question 1, indicate the largest value (in hex) that each register can contain.
R0= R24= PORTA=
Data memory Location $300= Program memory Location $300=
4) Who generates each of the following files and what is the use of each.
.asm
.lst
.obj
.eep
.hex
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- chapter 2 developmental psychology quizlet
- medical terminology chapter 2 terms
- physics chapter 2 practice test
- psychology chapter 2 quizlet
- medical terminology chapter 2 test
- medical terminology chapter 2 review
- chapter 2 medical terminology quiz
- medical terminology chapter 2 pdf
- psychology chapter 2 test
- lifespan development chapter 2 quiz
- chapter 2 lifespan development quizlet
- chapter 2 study guide answers