“Bit Manipulation” CE262 Microprocessor System Engineering

•Microprocessor Simulator – Version 5.0 http://www.softwareforeducation.com/

•Microsoft Visual C++ 2010 Expresshttp://www.microsoft.com/visualstudio/eng/products/visual-studio-2010-express


1.Stepper motor is a DC motor that moves in discrete steps. It has multiple coils that are arranged in groups of phases. By energizing each phase in sequence, the motor will rotate one step at a time. Discuss the stepper motor theory and different types of stepper motors.

2.Describe some of the applications of stepper motors and discuss their limitations?

3.Explain different ways of driving a stepper motor?  How is full stepping different from half stepping?

4.Watch the videos entitled “Introduction” and “Bit Operations”.

5.Using the microprocessor simulator, open the program 99Step.asm. Step through its execution to understand its current operation.  Explain the operation of the program in detail. 

6.Using bit operations, write a program to spin the stepper motor using a) full stepping and b) half stepping.  

7.Simulate/Run the full stepping and half stepping individually. To run the code remember to add delays for each activation of the magnets. (may not be needed for stepping through the code)

8.Validate your design for the expected results and troubleshoot the code if any errors.  Explain the steps you took to validate your design.  Explain any errors you had and how you determined the errors and fixed them.  Take a screenshot of the modified assembly codefor full stepping and half stepping mode.  Add some screenshots for step by step execution of the code (show the motor in several different positions as the program is stepped through).