Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please add the comment to each line for both codes saying what they do. i. Add a comment to each line of code below saying

image text in transcribed

image text in transcribed

Please add the comment to each line for both codes saying what they do.

i. Add a comment to each line of code below saying what it does. ii. Run these 2 simple programs in Code Composer Studio. Take a screen capture of each being run in the debugger. iii. Comment on the efficiency (both memory space and run-time) of the integer math program vs the floating point program. Hint: The Console window in the debugger gives the code size at the bottom. You should also look at the size of the equivalent assembly code produced for each program in the Disassembly window. You may assume that it takes an average of 4-6 instruction cycles per assembly instruction to execute a) #include "msp439.h" #include #define MAX PTS 3 // IMPORTANT: PUT YOUR NAME AND ECE BOX NUMBER HERE! !! void main (void) w Give total size (1 ytes) of these variables as declared int in [MAX_PTS]; float out [MAX_PTS]: volatile int i, a, SPAN-2500, OFFSET-499, M-8; // WDTCTLWDTPW WDTHOLD; / Stop watchdog timer for (1-6; 1 #define MAX PTS 3 #define M #define SHIFT 3 #define SPAN #define OFFSET 499 8 2500 // IMPORTANT: PUT YOUR NAME AND ECE BOX NUMBER HERE! !! void main (void) Give total size int in [MAX_PTS]; int out [MAX_PTS]: volatile int i,a; Long int sum; ytes) of these variables as declare wDTCT WDTPW + WDTHOLD; // Stop watchdog tme r for (1-6; 1>SHIFT

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

Mastering Real Time Analytics In Big Data A Comprehensive Guide For Everyone

Authors: Lennox Mark

1st Edition

B0CPTC9LY9, 979-8869045706

More Books

Students also viewed these Databases questions