Question: EE 3 5 7 Lab 3 Homework Question 1 Open Lab 3 / case 3 project. In the assembly case 3 file convert C -

EE357 Lab3 Homework
Question 1
Open Lab3/case3 project.
In the assembly case3 file convert C-code to Assembly-code.
Take a screenshot of UART1 output shows that the variables of Assembly-code match the variables of C code.
Create new folder named with your ID and name then copy your project and the results to the file.
Question 2
Create an MPLAB project new project using the PIC24FJ128GA010 as microcontroller.
Add an assembly named question 2 to the source file.
In the assembly source file write the following assembly program:
.bss
.text
global _main
_main:
.end
Complete the assembly code to match the followingC-code.
int main ()
{
uint16_t a =1;
uint16_t b=1;
uint16_t c=0;
uint8_t d=0;
do
{
if )==(665
{
a=0;
b =0;
}
else
{
a=a1;
b=3**b;
c=(b-a);
}
d++;
} while (d10;
return 0 ;
}
 EE357 Lab3 Homework Question 1 Open Lab3/case3 project. In the assembly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!