Question: PART A: ( C L O 2 ) - 2 5 M Q . 1 An engineer wrote an assembly language program for AVR ATmega
PART A:
Q An engineer wrote an assembly language program for AVR ATmega
microcontroller to find the average temperature for FOUR different water tanks
Tank A B C and D respectively The temperatures are recorded by sensors and
were temporarily stored in SRAM starting from memory address $Tank A:
$; Tank B: $; Tank C: $; Tank D: $ If the resulting average
temperature is a noninteger decimal number, the program will round down the
temperature to the closest integer. The result of the average temperature is then sent
to Port A for display.
Complete the assembly language program below until the average temperature
sent to Port A
I
configport: $
start: ldi low$
ldi zh high $
I
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
