Assignment 2 QP
Assignment 2 QP
Name: ...……………….
1 The temperature of two furnaces are being monitored by a microcomputer. A set of five (10)
readings of the first furnace, recorded by five thermal sensors, is stored at the memory
location starting at XX50H. A corresponding set of five readings from the second firnace
is stored at the memory location starting at XX60H. Each reading from the first set is
expected to be higher than the corresponding reading from the second set.
For example, the temperature reading at the location 54H is expected to be higher than
the temperature reading at the location 64H.
Write a ALP for 8085 to check whether the reading from the first set is higher set is higher
than the corresponding reading from the second set. If all reading from the first set are
higher than the corresponding readings from the second set, turn on the 𝐷0 bit of the
output PORT1. If any one of the readings from the first set is lower than the corresponding
reading of the second set, stop the process and output FFH as an emergency signal to the
output PORT1.
DATA(H):
FIRST SET: 82,89,78,8A,8F
SECOND SET:71,78,79,82,7F
2 Calculate the delay in the following loop, assuming the system clock period is 0.33𝜇𝑠. (5)
3 Calculate the 16-BIT count to be loaded in the register DE to obtain the loop delay of two (5)
seconds in LOOP2(use the clock period of one microsecond and ignore the execution of
the first instruction MVI B).