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

  Program (starting at address $4000) to find the average

Write a program (starting at address $4000) to find the average of four 16-bit

  Write the pseudocode for an application

Write the pseudocode for an application that accepts enter eight friends' first names and displays them in alphabetical order

  Execute the command in hex and print the command

For each of the following commands, first execute the command in hex and print the command and the result. Then execute it again in binary and print it.

  Integral square root of an input number

Write a short assembly program that computes the integral square root of an input number and In this problem you will write a program that will compute the first 20 numbers in the Fibonacci sequence.

  Determine the maximum value and the minimum value

Take these three numbers determine the maximum value and the minimum value - Determine and display if the year entered is a leap year.

  Nonrecursive factorialwrite a nonrecursive version of the

nonrecursive factorialwrite a nonrecursive version of the factorial procedure that uses a loop. a wdeonote for this

  Documented assembly language program

Write a complete well documented assembly language program (starts at $C000) that counts the number of 1s in each byte in a list. The LIST_IN starts at $C100

  Write a mips assembly language program

Write a MIPS assembly language program that prompts for a user to enter a series of floating point numbers and calls read_float to read in numbers and store them in an array. Then the program should display the array content on the console window. Th..

  Implement each menu-option in a separate function

Implement each menu-option in a separate function and write a program for integer multiplication and division operations - Recode all functions utilizing the Stack Frame method

  Assignment related to arm assembly

The 8-Segment display and LEDs will show status of the safe: U: indicates safe is unlocked, L: indicates safe is locked, P: indicates safe is programming a code, C: indicates safe is confirming a new code

  Create a method called multiply

Create a method called multiply. Use it to multiply read in to integers and multiply them and the print out: 13*6 = 78(assume the ints were 3 and 6).

  Assembly-language program

Write an assembly-language program to add each element of list1 to the corresponding element of list2 and store it in the same location of list2. Use a loop.

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