4CCS1CS1 Computer Systems Assignment

Assignment Help Assembly Language
Reference no: EM132413527

4CCS1CS1 - Computer Systems - Kings College London

Base Task: Simple Morse Code

For the program that you will turn in, you will use the circuit that you made in lab 4 to broadcast a short message via Morse code on the LEDs.

What is Morse code? Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer without special equipment.

Your base program will blink a 3 letter sequence in Morse code on the LEDs. You three letter sequence is the first three letters of your first name.

• For expample, Charles Babbage's code would be CHA.

If your first name is less than three characters, you should use the first 3 characters of your first name concatenated with your surname.
So that we can perceive the Morse code, we will use a unit length of 200 milliseconds (ms). This means the duration of a dot is 200 ms, and a dash is 600 ms.

Make sure that:
1. Your program is called morse.s.
2. Your program writes the Morse code sequence to the PB0 pin of PORTB. This is the same set-up as in the other programs you wrote in Lab 4.
3. Your program will continually loop through the 3-letter sequence.
4. Assume that there is no word break after your 3 letters, just repeat the 3-letter sequence.

For example, if your sequence was ABC, then your program would run as follows: 1.Turn ON the LED for 200 ms for the first dot of the letter A
2. Turn OFF the LED for 200 ms for the inter-part space of the letter A
3. Turn ON the LED for 600 ms for the first dash of the letter A
4. Turn OFF the LED for 600 ms for the inter-letter space between the letters A and B
5. Turn ON the LED for 600 ms for the first dash of the letter B
6. and so forth
7. Until the last dot of letter C
8. Turn OFF the LED for 600 ms for the final inter-letter space.
9. Loop back to the beginning of the Morse code sequence

Challenge Task: Odd, Even, modulo 5
Extend your morse.s program as follows.
• The morse code sequence should loop 50 times (1-50).
• On odd iterations (1, 3, 5, , 49) your three characters should be displayed in their normal order.
- e.g. ABC
• On even iterations (2, 4, 6, , 50) your three characters should be displayed in reverse order.
- e.g. CBA
Using comments, you should explain how you have implemented the check of whether the iteration is even or odd. Once you have this behaviour working, you should again extend your program as follows.
On iterations that are divisible by 5 (5, 10, 15, , 50) your program should display a '5' after what would normally
be displayed on that iteration.
- e.g. ABC5 or CBA5

Just for fun: LED blinking
Only attempt this challenge if you have completed the previous tasks. This section is worth no marks, but it is your chance to practice and show off your skills!
Once the morse code sequence has terminated, your LEDs should display a repeating pattern.
It is up to you to create a pattern for the LEDs. The more technically impressive the pattern the better!
For example, you could implement a ping-pong like pattern, where only a single LED is on at a time, and it appears to move back and forth across the LEDS.
• 1000 → 0100 → 0010 → 0001 → 0010 → 0100 → 1000 → ...
You should not submit your work for this task.

Attachment:- Computer Systems.rar

Reference no: EM132413527

Questions Cloud

How the principles of servant leadership are evident : Examine how the principles of servant leadership are evident in that chosen culture and in that chosen religion. In an essay (1,250-1,500 words).
Calculate the base case cash flow and npv : What is the break-even point? Calculate the base case cash flow and NPV What is the sensitivity of NPV to changes in the sales figures
What similarities do you see across religious traditions : Review the discussion on the concept of service and leadership in four religious traditions. What similarities and differences do you see across the four.
After-tax cash flow analysis : Economic analysis: is this a fundamentally sound investment?
4CCS1CS1 Computer Systems Assignment : 4CCS1CS1 Computer Systems Assignment Help and Solution, Kings College London - Assessment Writing Service - use the circuit that you made in lab 4 to broadcast
Provide a complete algebraic formulation for the problem : Each day q1 tons of freight arrive by sea in Japan bound for in-country regions i = 1 . . . , 150. Provide a complete algebraic formulation for the problem
Define variables that impede adoption of servant leadership : Identify at least two culturally specific variables that impede the adoption of servant leadership within one specific cultural perspective.
Why did nokia and alcatel-lucent merge : Why did Nokia and Alcatel-Lucent merge? Is their merger likely to be successful? What was the impact on the stock price?
Minimum possible correlation between the stock : If this transaction reduces the risk of his portfolio, what is the minimum possible correlation between the stock he shorted and his original portfolio?

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd