Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( a ) In this question, you may invent your own instruction set as long as it is reasonable for your program. You should also
a In this question, you may invent your own instruction set as long as it is reasonable
for your program. You should also comment your program properly.
The City Observatory is building an automatic system to issue bad weather
warning to the citizen. There is a rainfall meter and a wind speed meter to
measure the amount of rainfall in and the wind speed in The
control and status register of rainfall meter RFCSR has the following format:
Bit Error bit, the rainfall meter is in error if bit
Bit Ready bit, bit the rainfall meter is ready
Bit Data available, bit data available in RFBR automatically
cleared when RFBR has been read
Bit Set this bit to start reading the rainfall meter.
Similarly, the control and status register of windspeed meter WSCSR:
Bit Error bit, the windspeed meter is in error if bit
Bit Ready bit, bit the windspeed meter is ready
Bit Data available, bit data available in WSBR automatically
cleared when WSBR has been read
Bit Set this bit to start reading the windspeed meter.
The buffer registers for rainfall meter and widspeed meter are RFBR and WSBR
respectively. The value return is the multiple of and For example,
if is read on the rainfall meter, the rainfall is
The segment LED display is used to display the weather condition, It is controlled
by the buffer register LEDBR. The value from to written to LEDBR will be
displayed on the LED. If the value is written, a hyphen will be displayed.
Write an assembly language program that uses Programmed to read the
rainfall and windspeed meters continuously.
If there is an error in either meter, display a on the LED. Otherwise,
bi The above program uses programmed IO If interruptdriven IO is used
instead, describe what the process will be no program needed including
how the CPU services the interrupt, information saving and return.
ii With reference to the program in part a if interrupt driven IO is used,
which part of the program will not be needed anymore.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started