Question: 5. Assembly language code fragments; Assume portsfpins are initialized appropriately for the given situation, and all code fragments must be written using friendly code. 3.

5. Assembly language code fragments; Assume portsfpins are initialized appropriately for the given situation, and all code fragments must be written using friendly code. 3. Write the CortexM4 friendly code fragment to toggle the value of port F pin 3. [3} h. Write the code fragment to toggle the evennumbered hit positions of the lowest halfword in R2 if the value in R1 is negativeI otherwise toggle the evennumbered bit positions in the highest halfword in R2. The LSE in any register is hit . {7] c. Write the code fragment to initialize port E pins . 2., 4. and a for digital inputs, and pins 1. 3. and 5 for digital outputs. Pins [1 and 2 require internal pullup resistors enahledI pin 4 requires its pull-down resistor enabled, and pin 6 requires no internal resistors enabled. Use register names as ypou have in your labs. (If!)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
