SlideShare a Scribd company logo
1 of 18
Presentation on
     Embedded System & Robotics




Submitted To:-         Submitted By:-
Miss Nisha Dalal       Neeraj Khatri
                       926/ECE/10
Introduction
Embedded   System:-
 ◦ Type of Computer System
 ◦ Combination of microprocessor based
   hardware & suitable software
Different Embedded Based Devices
Microprocessor
 Is   a device which performs Arithmetic & Logic Operations.
  ◦    No inbuilt RAM
  ◦    No inbuilt ROM
  ◦    No inbuilt I/O ports
  ◦    Bulkier & Expensive
Microcontroller
 isdefined as combination of Microprocessor & its external
  units.
  ◦ Inbuilt RAM
  ◦ Inbuilt ROM
  ◦ Inbuilt I/O ports
8051 Microcontroller
4-bit processor
128-byte of RAM
4-Kilobyte of onchip ROM
Two Timers
4 I/O ports
1 Serial port
6 interupts
Internal Architecture
CPU
 ◦ ALU
 ◦ CU
 ◦ MU
3   Buses
 ◦ Data bus
 ◦ Address bus
 ◦ Control bus
Pin Diagram
AT89C51    IC is a 40 pin IC.
DIP (Dual In-line package)
4 ports
2 supply pins
2 crystal pins
1 reset pin
3 control signal
Interrupts
Any    kind of emergency is called Interrupts.
 ◦ 6 interrupts
     RST                    0000H
     INT0                   0003H
     TF0                    000BH
     INT1                   0013H
     TF1                    001BH
     Serial   (TI & RI)     0023H
Project
DTMF   based ROBO Car
 ◦ On pressing 2, the robot will move forward
 ◦ On pressing 4, the robot will turn left
 ◦ On pressing 6, the robot will turn right
 ◦ On pressing 8, the robot will move
   backwards
 ◦ On pressing 5, the robot will stop
Electronics Part
1H bridge
DTMF decoder
8051 Microcontroller
Mechanical Part
Plywood  Board 9cm x 7cm
2 DC motor 12V, 100rpm
2 Simple Wheels
1 Caster Wheel
Nut & Bolts
2 Clamper
Assembly of all parts
Program
                  M1CW EQU P0.0
                  M1CCW EQU P0.1
                  M2CW EQU P0.2
                  M2CCW EQU P0.3
                  ORG 0000H

MAIN:             MOV A,P2
                  CJNE A,#0F2H,NXT1
                  AJMP FWD

NXT1:             CJNE A,#0F4H,NXT2
                  AJMP LFT

NXT2:             CJNE A,#0F8H,NXT3
                  AJMP REW

NXT3:             CJNE A,#0F6H,NXT4
                  AJMP RGT
NXT4:           CJNE A,#0F5H,MAIN
        AJMP STP

FWD:    SETB M1CCW
        SETB M2CCW
        CLR M1CW
        CLR M2CW
        AJMP MAIN

REW:    SETB M1CW
        SETB M2CW
        CLR M1CCW
        CLR M2CCW
        AJMP MAIN

RGT:    SETB M2CCW
        SETB M1CW
        CLR M2CW
        CLR M1CCW
        AJMP MAIN
LFT:   SETB M2CW
       SETB M1CCW
       CLR M2CCW
       CLR M1CW
       AJMP MAIN

STP:   MOV P0,#11111111B
       AJMP MAIN
Embedded Systems & Robotics Presentation

More Related Content

What's hot (19)

Ci
CiCi
Ci
 
74 hc153
74 hc15374 hc153
74 hc153
 
frequency counter
frequency counterfrequency counter
frequency counter
 
74ls74 d
74ls74 d74ls74 d
74ls74 d
 
Rf atp nibong tebal p00128 rev 1 30 nov2016
Rf atp nibong tebal p00128 rev 1 30 nov2016Rf atp nibong tebal p00128 rev 1 30 nov2016
Rf atp nibong tebal p00128 rev 1 30 nov2016
 
High Voltage Isolation Flyback Converter using LTspice
High Voltage Isolation Flyback Converter using LTspiceHigh Voltage Isolation Flyback Converter using LTspice
High Voltage Isolation Flyback Converter using LTspice
 
35 m hz frequency counter
35 m hz frequency counter35 m hz frequency counter
35 m hz frequency counter
 
Sereial com. ppt
Sereial com. pptSereial com. ppt
Sereial com. ppt
 
LS74
LS74LS74
LS74
 
Pll
PllPll
Pll
 
Bien tan ls gioi thieu bien tan i c5 series-dienhathe.vn
Bien tan ls  gioi thieu bien tan  i c5 series-dienhathe.vnBien tan ls  gioi thieu bien tan  i c5 series-dienhathe.vn
Bien tan ls gioi thieu bien tan i c5 series-dienhathe.vn
 
000682
000682000682
000682
 
74ls390
74ls39074ls390
74ls390
 
74 hc hct393
74 hc hct39374 hc hct393
74 hc hct393
 
Gd35 manual v1.5
Gd35 manual v1.5Gd35 manual v1.5
Gd35 manual v1.5
 
Script
ScriptScript
Script
 
Sigma Presentation 4
Sigma Presentation 4Sigma Presentation 4
Sigma Presentation 4
 
Denoised
DenoisedDenoised
Denoised
 
Ditek 8FF Data Sheet
Ditek 8FF Data SheetDitek 8FF Data Sheet
Ditek 8FF Data Sheet
 

Viewers also liked

DTMF Based speed control of induction motor
DTMF Based speed control of induction motorDTMF Based speed control of induction motor
DTMF Based speed control of induction motorNiteen Shinde
 
BUCHHOLZ RELAY ON TRANSFORMER
BUCHHOLZ RELAY ON TRANSFORMERBUCHHOLZ RELAY ON TRANSFORMER
BUCHHOLZ RELAY ON TRANSFORMERALOWONLE JULIUS
 
DTMF (Mobile) Based Automation
DTMF (Mobile) Based AutomationDTMF (Mobile) Based Automation
DTMF (Mobile) Based AutomationYogesh Kumar
 
Transformer protection using microcontroller and gsm technology
Transformer protection using microcontroller and gsm technologyTransformer protection using microcontroller and gsm technology
Transformer protection using microcontroller and gsm technologyKartik Patel
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Ganesh Ram
 
DTMF base Mobile controlled appliances control
DTMF base Mobile controlled  appliances controlDTMF base Mobile controlled  appliances control
DTMF base Mobile controlled appliances controlGopal Bardhan
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Rashmi
 
20130309santo lee
20130309santo lee20130309santo lee
20130309santo leeShigeo Lee
 

Viewers also liked (20)

DTMF
DTMFDTMF
DTMF
 
Buchholz relay
Buchholz relayBuchholz relay
Buchholz relay
 
DTMF Based speed control of induction motor
DTMF Based speed control of induction motorDTMF Based speed control of induction motor
DTMF Based speed control of induction motor
 
89s52 2
89s52 289s52 2
89s52 2
 
BUCHHOLZ RELAY ON TRANSFORMER
BUCHHOLZ RELAY ON TRANSFORMERBUCHHOLZ RELAY ON TRANSFORMER
BUCHHOLZ RELAY ON TRANSFORMER
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
 
DTMF (Mobile) Based Automation
DTMF (Mobile) Based AutomationDTMF (Mobile) Based Automation
DTMF (Mobile) Based Automation
 
Circuit breakers
Circuit breakers Circuit breakers
Circuit breakers
 
Sensors
SensorsSensors
Sensors
 
Transformer protection using microcontroller and gsm technology
Transformer protection using microcontroller and gsm technologyTransformer protection using microcontroller and gsm technology
Transformer protection using microcontroller and gsm technology
 
Circuit breakers
Circuit breakersCircuit breakers
Circuit breakers
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
DTMF base Mobile controlled appliances control
DTMF base Mobile controlled  appliances controlDTMF base Mobile controlled  appliances control
DTMF base Mobile controlled appliances control
 
Dc motor
Dc motorDc motor
Dc motor
 
Relays
RelaysRelays
Relays
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Dc motor ppt
Dc motor pptDc motor ppt
Dc motor ppt
 
Evaluation
EvaluationEvaluation
Evaluation
 
20130309santo lee
20130309santo lee20130309santo lee
20130309santo lee
 

Similar to Embedded Systems & Robotics Presentation

Similar to Embedded Systems & Robotics Presentation (20)

At89 c2051 (3)
At89 c2051 (3)At89 c2051 (3)
At89 c2051 (3)
 
89 c2051
89 c205189 c2051
89 c2051
 
At89c4051
At89c4051At89c4051
At89c4051
 
Steppert Motor Interfacing With Specific Angle Entered Through Keypad
Steppert Motor Interfacing With Specific Angle Entered Through KeypadSteppert Motor Interfacing With Specific Angle Entered Through Keypad
Steppert Motor Interfacing With Specific Angle Entered Through Keypad
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
LM358 dual operational amplifier
LM358 dual operational amplifierLM358 dual operational amplifier
LM358 dual operational amplifier
 
At89c2051 Data sheet
At89c2051 Data sheetAt89c2051 Data sheet
At89c2051 Data sheet
 
PowerMate15 Technical Specification
PowerMate15 Technical SpecificationPowerMate15 Technical Specification
PowerMate15 Technical Specification
 
Atmel.ppt
Atmel.pptAtmel.ppt
Atmel.ppt
 
8051.pdf
8051.pdf8051.pdf
8051.pdf
 
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
 
Stepper speed control
Stepper speed controlStepper speed control
Stepper speed control
 
Altistart 48 user manual
Altistart 48 user manualAltistart 48 user manual
Altistart 48 user manual
 
Altistart 48 user manual
Altistart 48 user manualAltistart 48 user manual
Altistart 48 user manual
 
89c5131datasheet
89c5131datasheet89c5131datasheet
89c5131datasheet
 
Allchips Panansonic Grid eye datasheet
Allchips Panansonic Grid eye datasheetAllchips Panansonic Grid eye datasheet
Allchips Panansonic Grid eye datasheet
 
Lista brazo robotico
Lista brazo roboticoLista brazo robotico
Lista brazo robotico
 
Lista brazo robotico
Lista brazo roboticoLista brazo robotico
Lista brazo robotico
 
At 89c51
At 89c51At 89c51
At 89c51
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheet
 

Recently uploaded

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Embedded Systems & Robotics Presentation

  • 1. Presentation on Embedded System & Robotics Submitted To:- Submitted By:- Miss Nisha Dalal Neeraj Khatri 926/ECE/10
  • 2. Introduction Embedded System:- ◦ Type of Computer System ◦ Combination of microprocessor based hardware & suitable software
  • 4. Microprocessor  Is a device which performs Arithmetic & Logic Operations. ◦ No inbuilt RAM ◦ No inbuilt ROM ◦ No inbuilt I/O ports ◦ Bulkier & Expensive
  • 5. Microcontroller  isdefined as combination of Microprocessor & its external units. ◦ Inbuilt RAM ◦ Inbuilt ROM ◦ Inbuilt I/O ports
  • 6. 8051 Microcontroller 4-bit processor 128-byte of RAM 4-Kilobyte of onchip ROM Two Timers 4 I/O ports 1 Serial port 6 interupts
  • 7. Internal Architecture CPU ◦ ALU ◦ CU ◦ MU 3 Buses ◦ Data bus ◦ Address bus ◦ Control bus
  • 8. Pin Diagram AT89C51 IC is a 40 pin IC. DIP (Dual In-line package) 4 ports 2 supply pins 2 crystal pins 1 reset pin 3 control signal
  • 9. Interrupts Any kind of emergency is called Interrupts. ◦ 6 interrupts  RST 0000H  INT0 0003H  TF0 000BH  INT1 0013H  TF1 001BH  Serial (TI & RI) 0023H
  • 10. Project DTMF based ROBO Car ◦ On pressing 2, the robot will move forward ◦ On pressing 4, the robot will turn left ◦ On pressing 6, the robot will turn right ◦ On pressing 8, the robot will move backwards ◦ On pressing 5, the robot will stop
  • 11. Electronics Part 1H bridge DTMF decoder 8051 Microcontroller
  • 12. Mechanical Part Plywood Board 9cm x 7cm 2 DC motor 12V, 100rpm 2 Simple Wheels 1 Caster Wheel Nut & Bolts 2 Clamper
  • 13.
  • 15. Program M1CW EQU P0.0 M1CCW EQU P0.1 M2CW EQU P0.2 M2CCW EQU P0.3 ORG 0000H MAIN: MOV A,P2 CJNE A,#0F2H,NXT1 AJMP FWD NXT1: CJNE A,#0F4H,NXT2 AJMP LFT NXT2: CJNE A,#0F8H,NXT3 AJMP REW NXT3: CJNE A,#0F6H,NXT4 AJMP RGT
  • 16. NXT4: CJNE A,#0F5H,MAIN AJMP STP FWD: SETB M1CCW SETB M2CCW CLR M1CW CLR M2CW AJMP MAIN REW: SETB M1CW SETB M2CW CLR M1CCW CLR M2CCW AJMP MAIN RGT: SETB M2CCW SETB M1CW CLR M2CW CLR M1CCW AJMP MAIN
  • 17. LFT: SETB M2CW SETB M1CCW CLR M2CCW CLR M1CW AJMP MAIN STP: MOV P0,#11111111B AJMP MAIN