Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Background For this homework, you wish to write a robotic arm controller. The controller has one arm and one motor for each of the five

Background For this homework, you wish to write a robotic arm controller. The controller has one arm and one motor for each of the five fingers (we will refer to the pinky as finger 0 and the thumb as finger 4, with others in order). Our hardware uses a scheme called memory-mapped I/O, whereby the hardware interprets accesses to particular memory locations as signals to the hardware device. In this case, the following I/O operations (and more) are supported:

Initialize: write a 0 to memory location 0xABCD1230. This will also close all fingers completely.

Ready: Every initialization operation must be followed by this (once) to ensure that the arm is ready to receive commands. The arm sets memory location 0xABCD1234 to at least 287 when it is ready to receive instructions. In other words, the program must wait for this location to become 287.

Open finger k by .01 radians: set bit k of memory location 0xABCD1238. Due to mechanical issues, successive openings of the same finger must be separated by at least 4 ms., to avoid motor slippage. Assignment

1. Draw a CFG and write a MIPS program to open the middle and index fingers thumb completely (i.e.,3.14 radians). To ensure smooth motion, the program will open each arm by .01 radians at a time instead of opening one finger completely and then the next. Since we dont have a way to implement time delays, you can simply write delay 4 to indicate a delay of 4 ms. Submissions without a CFG will not be graded.

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

What is the balanced scorecard? Discuss.

Answered: 1 week ago