Microcontroller Simulator Task 9 - Electronics Tutorials

Stepper MotorOpen a new window or tab containing the Simulator.

Copy the example code from below and paste it into the simulator code editing area.

Click on STEPPER and select PORTB to make the motor visible.

Press F8 or click the "A" button to assemble the code and then run the program.

Please answer the reviseOmatic questions on this topic.


TASK:
Alter the code so the motor runs backwards.
Alter the code so the motor runs in half steps.

start:
        movw    0x1
        movwr   portb
        nop
        nop

        movw    0x2
        movwr   portb
        nop
        nop

        movw    0x4
        movwr   portb
        nop
        nop

        movw    0x8
        movwr   portb

        jmp     start

Topics:

01-nop-jmp   02-LEDs   03-Heater   03-Tlight   04-SevSeg   05-Delay   06-H-Bridge   07-Interrupts   08-Gray   09-Stepper   doc   hex-num   index  

Flash:

sim  

PDF:

Microcontroller Simulator  

DOC:

Microcontroller Simulator   Microcontroller Simulator.   Microcontroller with Harvard Architecture  

Images:

architecture   assem-H-Bridge   assem-Heater-FC   assem-Heater   assem-Stepper   assem-TLIGHT-grid   Gray   pinout   sim-leds   sim-sev-seg-design   sim-sev-seg   sim-traffic  

 

Privacy Policy, © Copyright, Contact Information and Disclaimers

Site highly rated by Schoolzone.co.uk

Valid XHTML 1.0 Transitional

Valid CSS!