-
Ordering information
Call us or mail us for inquiries & availability: info@mtronixtech.com
-
Search projects by Price
-
Project Categories
- Robots and Robotics
- GSM based Projects
- GPS based Projects
- RFID based Projects
- Energy Saving
- Wireless Communication
- DTMF based proejcts
- SMS based projects
- RF Remote
- Mobile Controlled
- Power Saver
- Sensor based Projects
- Alcohol Sensor
- heartbeat Sensor
- Humidity Sensor
- Infrared Sensor
- Level Sensor
- Light Sensor
- LPG Gas Sensor
- Moisture Sensor
- Temperature Sensor
- Vibration Sensor
- Weight Sensor
-
Search projects by Application
Project Videos:
Landrover Robot Operated by Cellphone
Industrial Automation using Cellphone
Password based door locking
Automatic room light controller
Temperature controlled fan
Electronic voting machine
Search by Components
89c51 89s51 89s52 89v51RD2 555 ADC0808 ADC0809 AT24c16 AT24c64 AT89s52 Battery BC547 Bulb Buzzer Darlington Pair DC motor Decoder EEPROM Fan GPS GSM IR LED Keypad L239D LCD Display LDR LED LM35 LM358 Matrix keypad MAX232 Motor Driver MQ6 PC Interface Relay RFID Card RFID Reader RFID Tags Sim300 sim900 SR86 SR87 Stepper Motor SYHS220 TSOP1738
Assembly code for Stepper Motor
Sample code for Stepper Motor
Following code can be using for 8051 and 8052 ICs like: 89c51, 89c52, 89s51, 89s52, 89c2051.
;========================================================== ; Pin Definations ;========================================================== motor1 equ a2h ;Motor P2.2 - P2.5 motor2 equ a3h motor3 equ a4h motor4 equ a5h ;========================================================== ; Main Program starts from here ;========================================================== stepper: clr motor1 clr motor2 clr motor3 clr motor4 mov 51h,#03h stepper_loop: setb motor1 call delhalf clr motor1 call delhalf setb motor2 call delhalf clr motor2 call delhalf setb motor3 call delhalf clr motor3 call delhalf setb motor4 call delhalf clr motor4 call delhalf djnz 51h,stepper_loop ret ;========================================================== stepper_reverse: clr motor1 clr motor2 clr motor3 clr motor4 mov 51h,#03h stepper_rev_loop: setb motor4 call delhalf clr motor4 call delhalf setb motor3 call delhalf clr motor3 call delhalf setb motor2 call delhalf clr motor2 call delhalf setb motor1 call delhalf clr motor1 call delhalf djnz 51h,stepper_rev_loop ret ;===================================================== ; Program ENDS here ;=====================================================