Question: Introduction: Let's say you want to write code for a robotic arm controller. The controller has one motor for each of the five fingers (
Introduction: Let's say you want to write code for a robotic arm controller. The controller has one motor for each of the five fingers pinky finger thumb finger in order The hardware will use a scheme known as memorymapped IO such that the hardware intercepts accesses to memory locations and interprets them as hardware device signals rather than RAM accesses and therefore don't correspond to reads or writes in memory, which are irrelevant here The API for the arm would, minimally, satisfy the following conditions...
Write the integer to the memory location xFFEE which would close all fingers completely. Every time this occurs, the program should wait for the th of memory location xFFEE to become aka 'setting' that bit before proceeding, as a way of indicating that the robot arm has initialized all motors and is now ready to receive instructions.
Set bit number k k of memory location xFFEEC to open finger k by radians.
Set bit number k k of memory location xFFEEC to close finger k by radians.
Successive openings of the same finger would be separated by milliseconds to avoid motor slippage.
TASK PROMPT: Draw a CFG and write a program in MIPS assembly language which...
Opens the index finger completely radians
Opens the thumb exactly halfway WHILE closing the index finger also exactly halfway. Should be done in an interspersed manner, aka the thumb will open by radians, then the index finger will close by radians, then the thumb will open by some amount, then the index finger will close by the same amount, etc.
Write 'delay n as an imaginary instruction to indicate a delay of n microseconds.
For the MIPS program, use only instructions add, sub, addi, sw lw and li
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
