Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

With explantion please. Problem 7 Task 1: Write an HCS12 subroutine for temperature conversion from Celsius (C) to Fahrenheit (F). Recall that the conversion formula

With explantion please. image text in transcribed
image text in transcribed
Problem 7 Task 1: Write an HCS12 subroutine for temperature conversion from Celsius (C) to Fahrenheit (F). Recall that the conversion formula is given by the expression F- C + 32 Task 2: Use the above conversion subroutine to convert the temperatures given in arrayC in the code header below. Use a loop to convert each element of arrayC and plave the results in arrayF Include derivative- specific definitions INCLUDE "derivative.inc' RoMStart EQU $4000 N EQU 10 variable/data section ORG RAMStart Originate data at address :variables definition arrayC dc. -21, 32, 45, 1120, 41. 13. -39, 100. 123. 0; To simplify the arithmetics of the division by 5, use the integer part of the division, but remember that the temperatures in arrayC are 16-bit signed integers. Please make sure that your code is compatible with the memory map below 8 bits Address RAMStart0x1000 0x1001 0x1002 0x1003 EB 20 0x1014 0x1015 0x1016 0x1017 arrayE 59 ROMStart 0x4000 0x4001

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_2

Step: 3

blur-text-image_3

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

Database Systems For Advanced Applications 17th International Conference Dasfaa 2012 Busan South Korea April 2012 Proceedings Part 1 Lncs 7238

Authors: Sang-goo Lee ,Zhiyong Peng ,Xiaofang Zhou ,Yang-Sae Moon ,Rainer Unland ,Jaesoo Yoo

2012 Edition

364229037X, 978-3642290374

More Books

Students also viewed these Databases questions