Question: ELEN 442 MICROPROCESSORS Assignment ELEM 442 May 16/2018 1. Write a PIC18Fxx2 assembly program that takes the variable A and save into B in inverted

 ELEN 442 MICROPROCESSORS Assignment ELEM 442 May 16/2018 1. Write a

ELEN 442 MICROPROCESSORS Assignment ELEM 442 May 16/2018 1. Write a PIC18Fxx2 assembly program that takes the variable A and save into B in inverted the bit order. For example, if A 110010102, then the program finishes with B 010100112. The variable A shall preserve the original value at the end of the program execution. The program shall be implemented using any of the loop and shift techniques discussed in class. 2. Write a PIC18Fxx2 assembly program that makes the calculus of the first ten (10) terms of the Fn-1 + Fn-2, with initial values F0-0, and F1:1. If the Fibonacci series. This is define by Fn following code implements de series in C language. This program calculates Fibonacci numbers within an 8-bit range. #include unsigned char fibo; //fn-2 unsigned char fibl; //En-1 unsigned char fib2; //fn unsigned char n; //series current value void main void) loop: n- 2; //the first two numbers are known, so start at n = 2 do f fib2 fibl fibo; printf ("Values: n: \%u, fn-2 : \su, fn-1 : Wu, fn: \tu ",n, fib0, fibl , fib2); n 1 //update numbers held, discarding fn-2 fib?# fibl; //first overwrite fn-2 fibl fib2; while (n

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!