Question: [ 1 5 M ] Consider the scenario where four stepper motors drive the wheels of a Mars Rover. Assume that each wheel has a
M Consider the scenario where four stepper motors drive the wheels of a Mars Rover. Assume that each
wheel has a radius of meters and all the stepper motors have a degrees stepping angle when used in
fullstep model of operation. Since all wheels are to move synchronously, all four stepper motors receive the
same excitation sequence from Port A of All unused ports are declared to be output ports and is
to be used in Mode Consider the following code executed by to carry out the above task. Answer
the following questions in the given box ONLY. Note that the circumference of a circle having radius is
Assume that a subroutine named "DELAY" is available to generate the required delay.
MODEL SMALL
DATA
FORWARD DB
BACKWARD DB
CODE
STARTUP
CR EQU CH ; Port address of Control Register
PA EQU OCOH ; Port address of Port A
MOV AL CW
OUT CR AL
MOV CX; is immediate data
MOV FORWARD, ; is immediate data
MOV BACKWARD, ; is immediate data
MOV AL
AGAIN:
MOV BL FORWARD
UP:
ROR AL
OUT PA AL
CALL DELAY
DEC BL
JNZ UP
MOV BL BACKWARD
UP:
ROL AL
OUT PA AL
CALL DELAY
DEC BL
JNZ UP
LOOP AGAIN
EXIT
END
aM What should be the value of CWin
Hexadecimal number system given in the code
for intended operation of the system, as
described?
bM Suppose and in the given
code. What is the value of in decimal number
system such that the Mars Rover traverses a
distance of meters in the forward direction
before halting?
c For the Mars Rover to traverse in the
backward direction, how should and be
related to each other? Provide the inequality.
d For the Mars Rover to traverse a distance of
meters in the backward direction before
coming to a halt, what equation in terms of
and should be satisfied? Given
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
