حل واجبات الجامعة العربية المفتوحة
اتصل : O544321455 - OO966544321455
واتس اب: 966544321455+
ايميل : a_al_shora@hot mail.com
سكايبي : a_al_shora
حل واجب 0.5.4.4.3.2.1.4.5.5 الجامعة العربية المفتوحة
حل واجبات الجامعة العربية المفتوحة O54.4.3.2.1.4.5.5 - OO96654.4.3.2.1.4.5.5
ايميل : a_al_shora @ h.o.t.m.ail.c.o.m
سكايبي: a_al_shora
واتس اب: OO96654.4.3.2.1.4.5.5
Supplementary material for
T224: Computers and Processors
Tutor-Marked Assignment
Question 1: (35 marks)
This question carries 35% of the assignment marks. It enables you to demonstrate your mastery of Learning Outcomes of Block 1
Some lounges in medical centers incorporate climate control, whereby a computer is used to maintain the temperature inside the lounge at a setting chosen by the patient. The climate control will be computer-controlled and will operate as follows:
- There will be a small display to show the desired temperature. It will consist of two 7-segment displays showing the digits, plus a pre-set display showing the “°C”. The desired temperature will be factory pre-set to 25 °C. The patient will be able to change this temperature by means of two buttons. Pressing the button labeled UP will cause the desired temperature to increase by 1°C and pressing the button labeled DOWN will cause the desired temperature to decrease by 1°C. The new desired temperature will be shown on the display.
- The processor in the computer will compare the temperature inside the lounge with the desired temperature, and if they are not the same it will switch on a fan to supply air of an appropriate temperature to the interior of the lounge. The processor controls the temperature of this air supply by setting a valve to a hot air supply and a valve to a cool air supply appropriately. Each of these valves has a number of settings, ranging from fully shut to fully open.
a. The processor’s task in this climate-control system includes the following items:
- Workout the valve settings.
- Switch fan on.
- Switch fan off.
- Does actual temperature equal desired temperature?
- Output the valve settings.
- Input actual temperature.
Draw the flowchart that corresponds to the above list using appropriate shapes for the boxes and drawing appropriate linking lines. Note that the flowchart includes at least one loop.
(15 marks)
b. The processor needs to find out whether the patient has pressed a button to change the desired temperature. It does this examining the state of the two buttons. If one has been pressed, the stored value for the desired temperature is changed appropriately. Draw a flowchart for this part of the total task, assuming that a button will not have been pressed more than once. (20 marks)
Question 2: (25 marks)
This question carries 25% of the assignment marks. It enables you to demonstrate your mastery of Learning Outcomes 4, 5, 10, 13 and 19 of Block 2.
In this question, all numbers are in hexadecimal.
This part of the question refers to the following subroutine for the T224 simulated processor:
load immediate r1 0000
load immediate r3 0012
load immediate rA 0500
load register-indirect via rA rB
add immediate rB 0000
jump if zero relative 0001
jump relative 0001
add immediate r1 0001
add immediate rA 0001
subtract immediate r3 0001
jump if zero relative 0001
jump relative FFF8
return
a. The subroutine includes a loop. Which register is being used as the loop counter?
(4 marks)
b. How many times in total will the set of instructions within the loop be executed?
(4 marks)
c. The loop reads successive data items from a block of locations in data memory. What are the lowest and highest addresses (in hexadecimal) of the locations in this block?
(8 marks)
d. Why is the following instruction: “add immediate rB 0000 “used? (4 marks)
e. What does the loop do? Do not give a description on an instruction-by- instruction level; give the overall task of the loop in brief. (5 marks)
Question 3: (20 marks)
(a) This part relates to the 8-bit binary code word 0101 0001
(i) Write down what this code word represents if it is the code for a text character using 7-bit ASCII code with a zero inserted in the leftmost position. (2 marks)
(ii) Work out what this code word represents if it is instead the code for a signed integer using 2’s complement representation. Show your work. (6 marks)
(b) The following two 8-bit binary code words both represent 2’s complement integers:
0101 1010
0110 1111
(i) Add these two numbers in binary. Show the carry bits in your working. (6 marks)
(ii) State if 2’s complement overflow has occurred. Justify your answer. (6 marks)
Question 4: (20 marks)
Given below the specifications of two microcontrollers:
Microcontroller A:
- The clock speed of the processor is 33.554432 MHz
- 25-bit counter/timer.
- 1024 bytes RAM.
- 256 bytes non-volatile, read-write memory.
- Watchdog timer
Microcontroller B:
- The clock speed of the processor is 131.072 KHz
- 18-bit counter/timer.
- 512 bytes RAM.
- 128 bytes non-volatile, read-write memory.
- Watchdog timer
Which microcontroller would you choose from the above two if you need to generate clock pulse every 2 seconds? (Give reasons).
حل واجبات الجامعة العربية المفتوحة
اتصل : O544321455 - OO966544321455
واتس اب: 966544321455+
ايميل : a_al_shora@hot mail.com
سكايبي : a_al_shora
حل واجب 0.5.4.4.3.2.1.4.5.5 الجامعة العربية المفتوحة
حل واجبات الجامعة العربية المفتوحة O54.4.3.2.1.4.5.5 - OO96654.4.3.2.1.4.5.5
ايميل : a_al_shora @ h.o.t.m.ail.c.o.m
سكايبي: a_al_shora
واتس اب: OO96654.4.3.2.1.4.5.5
اتصل : O544321455 - OO966544321455
واتس اب: 966544321455+
ايميل : a_al_shora@hot mail.com
سكايبي : a_al_shora
حل واجب 0.5.4.4.3.2.1.4.5.5 الجامعة العربية المفتوحة
حل واجبات الجامعة العربية المفتوحة O54.4.3.2.1.4.5.5 - OO96654.4.3.2.1.4.5.5
ايميل : a_al_shora @ h.o.t.m.ail.c.o.m
سكايبي: a_al_shora
واتس اب: OO96654.4.3.2.1.4.5.5
Supplementary material for
T224: Computers and Processors
Tutor-Marked Assignment
Question 1: (35 marks)
This question carries 35% of the assignment marks. It enables you to demonstrate your mastery of Learning Outcomes of Block 1
Some lounges in medical centers incorporate climate control, whereby a computer is used to maintain the temperature inside the lounge at a setting chosen by the patient. The climate control will be computer-controlled and will operate as follows:
- There will be a small display to show the desired temperature. It will consist of two 7-segment displays showing the digits, plus a pre-set display showing the “°C”. The desired temperature will be factory pre-set to 25 °C. The patient will be able to change this temperature by means of two buttons. Pressing the button labeled UP will cause the desired temperature to increase by 1°C and pressing the button labeled DOWN will cause the desired temperature to decrease by 1°C. The new desired temperature will be shown on the display.
- The processor in the computer will compare the temperature inside the lounge with the desired temperature, and if they are not the same it will switch on a fan to supply air of an appropriate temperature to the interior of the lounge. The processor controls the temperature of this air supply by setting a valve to a hot air supply and a valve to a cool air supply appropriately. Each of these valves has a number of settings, ranging from fully shut to fully open.
a. The processor’s task in this climate-control system includes the following items:
- Workout the valve settings.
- Switch fan on.
- Switch fan off.
- Does actual temperature equal desired temperature?
- Output the valve settings.
- Input actual temperature.
Draw the flowchart that corresponds to the above list using appropriate shapes for the boxes and drawing appropriate linking lines. Note that the flowchart includes at least one loop.
(15 marks)
b. The processor needs to find out whether the patient has pressed a button to change the desired temperature. It does this examining the state of the two buttons. If one has been pressed, the stored value for the desired temperature is changed appropriately. Draw a flowchart for this part of the total task, assuming that a button will not have been pressed more than once. (20 marks)
Question 2: (25 marks)
This question carries 25% of the assignment marks. It enables you to demonstrate your mastery of Learning Outcomes 4, 5, 10, 13 and 19 of Block 2.
In this question, all numbers are in hexadecimal.
This part of the question refers to the following subroutine for the T224 simulated processor:
load immediate r1 0000
load immediate r3 0012
load immediate rA 0500
load register-indirect via rA rB
add immediate rB 0000
jump if zero relative 0001
jump relative 0001
add immediate r1 0001
add immediate rA 0001
subtract immediate r3 0001
jump if zero relative 0001
jump relative FFF8
return
a. The subroutine includes a loop. Which register is being used as the loop counter?
(4 marks)
b. How many times in total will the set of instructions within the loop be executed?
(4 marks)
c. The loop reads successive data items from a block of locations in data memory. What are the lowest and highest addresses (in hexadecimal) of the locations in this block?
(8 marks)
d. Why is the following instruction: “add immediate rB 0000 “used? (4 marks)
e. What does the loop do? Do not give a description on an instruction-by- instruction level; give the overall task of the loop in brief. (5 marks)
Question 3: (20 marks)
(a) This part relates to the 8-bit binary code word 0101 0001
(i) Write down what this code word represents if it is the code for a text character using 7-bit ASCII code with a zero inserted in the leftmost position. (2 marks)
(ii) Work out what this code word represents if it is instead the code for a signed integer using 2’s complement representation. Show your work. (6 marks)
(b) The following two 8-bit binary code words both represent 2’s complement integers:
0101 1010
0110 1111
(i) Add these two numbers in binary. Show the carry bits in your working. (6 marks)
(ii) State if 2’s complement overflow has occurred. Justify your answer. (6 marks)
Question 4: (20 marks)
Given below the specifications of two microcontrollers:
Microcontroller A:
- The clock speed of the processor is 33.554432 MHz
- 25-bit counter/timer.
- 1024 bytes RAM.
- 256 bytes non-volatile, read-write memory.
- Watchdog timer
Microcontroller B:
- The clock speed of the processor is 131.072 KHz
- 18-bit counter/timer.
- 512 bytes RAM.
- 128 bytes non-volatile, read-write memory.
- Watchdog timer
Which microcontroller would you choose from the above two if you need to generate clock pulse every 2 seconds? (Give reasons).
حل واجبات الجامعة العربية المفتوحة
اتصل : O544321455 - OO966544321455
واتس اب: 966544321455+
ايميل : a_al_shora@hot mail.com
سكايبي : a_al_shora
حل واجب 0.5.4.4.3.2.1.4.5.5 الجامعة العربية المفتوحة
حل واجبات الجامعة العربية المفتوحة O54.4.3.2.1.4.5.5 - OO96654.4.3.2.1.4.5.5
ايميل : a_al_shora @ h.o.t.m.ail.c.o.m
سكايبي: a_al_shora
واتس اب: OO96654.4.3.2.1.4.5.5