Skip to content

cloudier/cs2121

Repository files navigation

cs2121

Microprocessors and Interfacing – Semester 1, 2015

Course website.

Tips

  • You can include functions and constants from a separate file using .include "myfile.asm". For an example, see the project. Use this to separate your functions in the labs from the code that uses those functions - this will allow you to reuse the functions more easily later on.
  • The instruction set is your bible. The datasheet explains how to set up different interrupts.

Labs

  1. Data Memory, Program Memory
  2. Add two 16-bit integers using registers.
  3. Add two arrays of integers and store in data memory.
  4. Convert a string to uppercase.
  5. Find the index of a character in a string.
  6. Bubble sort an array of integers.
  7. Functions, Stacks
  8. Load a string from program memory and reverse it into data memory.
  9. Find the length of the longest string in a linked list.
  10. Find the maximum and minimum signed integers in a linked list.
  11. LEDs, Buttons
  12. Display a static pattern on a series of LEDs.
  13. Display a rotating 16-bit pattern on a series of LEDs. The pattern shifts downwards every second.
  14. Display a user-entered pattern on the LEDs for a specified amount of time. The pattern is entered using two push buttons. The user must be able to queue a pattern while the previous one is displaying.
  15. Allow at least 32 patterns to be queued. If more than 4 patterns are queued, display the current pattern at twice the normal speed. If both buttons are pressed simultaneously, empty the queue and stop displaying the current pattern.
  16. LCDs, Keypad
  17. Display the binary value of numeric keypad buttons on a series of LEDs when the button is pressed.
  18. Display a message on an LCD.
  19. Create a calculator for 8-bit addition and subtraction.
  20. Extend the calculator to support 8-bit multiplication and division.
  21. PWM, Motor
  22. Measure the speed of a motor's rotation in revolutions per second using an optointerrupter.
  23. Make an LED fade in and out using PWM.
  24. Control the speed of a motor using a feedback system.

Project

Microwave emulator. Includes a user manual and design manual.

Assignment

Comparing the Instruction Set Architectures of AVR and ARM. Memory Models, Registers, Instruction Set, Data Types.

About

Microprocessors and Interfacing – Semester 1, 2015.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published