Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ECE 37 sensors, Sensor A and Sensor B, at opposte am reads an 8-bit temperature value from 7. A weather station has two temperature se

image text in transcribed
ECE 37 sensors, Sensor A and Sensor B, at opposte am reads an 8-bit temperature value from 7. A weather station has two temperature se ends of a town. Each hour a control program reads an 8-bit the value in a 24 element byte array called TEMPA. At the same A and puts Sensor element byte the f time it reads an 8-bit temperature value from Sensor B and puts the value in a array called TEMPB. After 24 hours, the control program cals a procedure to generate a rounded average for each pair of hourly readings and puts rounded average for each pair of hourly temperatures, the mainline program passes a pair of values to a procedure that does the actual computation. The procedure passes each hourly average back to the mainline to be put in the TEMPAV array Also, if an average value is 32 degrees or less, the procedure will write a value of OxFF to a memory location called FREZWARN. The averages for the past 24 hours and, if appropriate, a Freeze Warning will be shown on the evening weather report 7a Using STANDARD PROGRAM STRUCTURES shown in Chapter 3, write the ITHM for the mainline section of the program. Include the steps required to pass the required parameters to the procedure, call the procedure for each pair of values, and store the returned average value in the TEMPAV array Assume he stack and R13 have a procedure as needed lready been initialized and that you will save registers in the ECE 37 sensors, Sensor A and Sensor B, at opposte am reads an 8-bit temperature value from 7. A weather station has two temperature se ends of a town. Each hour a control program reads an 8-bit the value in a 24 element byte array called TEMPA. At the same A and puts Sensor element byte the f time it reads an 8-bit temperature value from Sensor B and puts the value in a array called TEMPB. After 24 hours, the control program cals a procedure to generate a rounded average for each pair of hourly readings and puts rounded average for each pair of hourly temperatures, the mainline program passes a pair of values to a procedure that does the actual computation. The procedure passes each hourly average back to the mainline to be put in the TEMPAV array Also, if an average value is 32 degrees or less, the procedure will write a value of OxFF to a memory location called FREZWARN. The averages for the past 24 hours and, if appropriate, a Freeze Warning will be shown on the evening weather report 7a Using STANDARD PROGRAM STRUCTURES shown in Chapter 3, write the ITHM for the mainline section of the program. Include the steps required to pass the required parameters to the procedure, call the procedure for each pair of values, and store the returned average value in the TEMPAV array Assume he stack and R13 have a procedure as needed lready been initialized and that you will save registers in the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago