COMP9032 Experiment 3

$30.00

Download Details:

  • Name: Lab3-br1k0f.zip
  • Type: zip
  • Size: 124.77 KB

Category:

Description

5/5 - (1 vote)

Tasks
Task 1 (7 marks, for week 6, due in week 7)
Implement a LED control system to repeatedly display a sequence of three patterns. The
display will be halted when the user presses a button. To ensure visibility, insert some
delay (for example, 1s) between two adjacent patterns. The clock frequency used on the
lab board is 16MHz.
Assemble your program using AVR Studio, and run it on the AVR Microcontroller Board.
Demonstrate your working program to the lab assessor.
2
Task 2 (6 marks, for week 7, due in week 8)
Based your code for Task 1, modify it by using an external interrupt to start and stop
LEDs’ display.
Assemble your program using AVR Studio, and run it on the AVR Microcontroller Board.
Demonstrate your working program to the lab assessor.
Task 3 (9 marks, for week 8, due in week 9)
Write an assembly program that performs multiplication: a = b x c, where a, b, c are all
unsigned 1-byte integers. The program takes b and c from the keypad and displays the
result on the LED bar. When there is an overflow in the calculation, the LED bar flashes
3 times.
Note: you can use the “*” key for “x” and the “#” key for “=”. For example, to get 12×9,
your input key sequence is 12*9#.
Assemble your program using AVR Studio, and run it on the AVR Microcontroller Board.
Demonstrate your working program to the lab assessor.
Note: All your programs should be well commented. Up to 2 marks will be deducted for
each program without proper and sufficient comments.