SlideShare a Scribd company logo
1 of 6
FLOW CHART FOR MATER UNIT

                      START


           Initialize ports P0=o/p, P1= i/p

             Subroutine to set baud rate


            Subroutine to initialize LCD

A
               Display default msg on
                        LCD

                      EnterKe
                      y



           Subroutine to Initialize LCD


             Display Message to select
            slave select 1 : Slave1 & 2:
                      Slave2

                      EnterKe
                      y


           Subroutine Find key pressed



                           If

                                              If
Slave2 monitor &
     control
                         EnterKe                   Slave2 monitor &
                         y                              control
                     Slave 1

          Subroutine to initialize LCD


          Display Message2 to perform
             select 1: Monitor & 2:
                     Control
If Key
                                       pressed


                               Subroutine to find key
                                     pressed

                                         If

                                                                            If
 Select slave 1 in monitor
           mode                                                  Select slave 1 in control
                                                                           mode
Send Req & address to slave
            1                                                  Subroutine to Initialize LCD


 Read data sent by slave 1                                   Display Msg3 to control 1: D1
                                                            ON 2: D1 OFF, 3: D2 ON, 4: D1
                                                                         OFF
 Display received data on
                                                                 Subroutine to find key
           LCD
                                                                       pressed
                                                 Device 1 ON                 If
        EnterKe
        y
                                              Device 1 OFF                   If


            A                                    Device 2 ON                 If


                                              Device 2 OFF                   If

                                  EnterKe
                                  y
                                       Slave 2          A                EnterKe
                                                                         y
                             Subroutine to initialize LCD


                             Display Message2 to perform
                                select 1: Monitor & 2:
                                        Control

                                       If Key
                                       pressed
Subroutine to find key
                                    pressed

                                        If

                                                                          If
  Select slave 2 in monitor
            mode                                               Select slave 2 in control
                                                                         mode
Send Req & address to slave
            2                                                Subroutine to Initialize LCD


  Read data sent by slave 2                                 Display Msg3 to control 1: D1
                                                           ON 2: D1 OFF, 3: D2 ON, 4: D1
                                                                        OFF
  Display received data on
                                                                Subroutine to find key
            LCD
                                                                      pressed
                                             Device 1 ON                   If
         EnterKe
         y
                                             Device 1 OFF                  If


             A                                Device 2 ON                  If


                                             Device 2 OFF                  If

                                 EnterKe
                                 y
                                                       A               EnterKe
                                                                       y



       LCD initialize                                      Display

Load commands to accumulator
                                                Wait until LCD is ready

 Send commands to the LCD
                                             Load acc content to LCD(port 2


         Return                                            Return
Key detection


Send logic 1 to columns(P1.4-P1.6)                                 Baudrate
  and logic 0 to Rows(P1.0-P1.3)


      Copy port 1to Acc                                       Copy TH1= 0FDH



                                                             Copy SCON= 50H
            IfACC=7



 Find key by considering one                                Copy TMOD= 21H, T1
                                                            mode 2 & T2 in mode1
column at logic 1 & read port1



                                                            Copy TCON= 40H
                 If



      Add 6 to the key                                              RET



                 RET

      SEND


      Clear TI Flag


  Copy data(A) to                       Data reception
  SBUF

                                     Copy RX SBUF data to
       If TI=0
                                     ACC


                                         Clear TI Flag
      ISR RET

                                 Copy ACC content to
                                 22FH loc


                                             If
Copy 01H to 30H Loc                 Copy 30H loc data to
                                    ACC


                                                If


     RET                                 Copy RX data[2FH] to ACC



                                                If



Copy ACC content to [R0]loc                Copy [30h]=00H &
                                           R0=31H




                              RET
START

 Set baud rate

 Read Modem



      Is Msg1     Yes          Activate Relay1
      “Locke

     No

     Is Msg2      Yes          Activate Relay2
     Unlocke
     No

      Is msg3     Yes
                               Activate Relay3
        city
No

                  Yes
      Is msg3
                               Activate Relay4
     city limit
No

       Track
                  Yes          Send Location

     No
 Read Sensor



     Is helmet     Yes
     weared &                     On vehicle
     no alcohol


 No
 Off vehicle
                         Yes

         Is                     Send Location
      Accident


       End

More Related Content

Recently uploaded

Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Anamikakaur10
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
dlhescort
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
amitlee9823
 

Recently uploaded (20)

👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
 
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Falcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in indiaFalcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in india
 
PHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation Final
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876
Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876
Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Flowchart

  • 1. FLOW CHART FOR MATER UNIT START Initialize ports P0=o/p, P1= i/p Subroutine to set baud rate Subroutine to initialize LCD A Display default msg on LCD EnterKe y Subroutine to Initialize LCD Display Message to select slave select 1 : Slave1 & 2: Slave2 EnterKe y Subroutine Find key pressed If If Slave2 monitor & control EnterKe Slave2 monitor & y control Slave 1 Subroutine to initialize LCD Display Message2 to perform select 1: Monitor & 2: Control
  • 2. If Key pressed Subroutine to find key pressed If If Select slave 1 in monitor mode Select slave 1 in control mode Send Req & address to slave 1 Subroutine to Initialize LCD Read data sent by slave 1 Display Msg3 to control 1: D1 ON 2: D1 OFF, 3: D2 ON, 4: D1 OFF Display received data on Subroutine to find key LCD pressed Device 1 ON If EnterKe y Device 1 OFF If A Device 2 ON If Device 2 OFF If EnterKe y Slave 2 A EnterKe y Subroutine to initialize LCD Display Message2 to perform select 1: Monitor & 2: Control If Key pressed
  • 3. Subroutine to find key pressed If If Select slave 2 in monitor mode Select slave 2 in control mode Send Req & address to slave 2 Subroutine to Initialize LCD Read data sent by slave 2 Display Msg3 to control 1: D1 ON 2: D1 OFF, 3: D2 ON, 4: D1 OFF Display received data on Subroutine to find key LCD pressed Device 1 ON If EnterKe y Device 1 OFF If A Device 2 ON If Device 2 OFF If EnterKe y A EnterKe y LCD initialize Display Load commands to accumulator Wait until LCD is ready Send commands to the LCD Load acc content to LCD(port 2 Return Return
  • 4. Key detection Send logic 1 to columns(P1.4-P1.6) Baudrate and logic 0 to Rows(P1.0-P1.3) Copy port 1to Acc Copy TH1= 0FDH Copy SCON= 50H IfACC=7 Find key by considering one Copy TMOD= 21H, T1 mode 2 & T2 in mode1 column at logic 1 & read port1 Copy TCON= 40H If Add 6 to the key RET RET SEND Clear TI Flag Copy data(A) to Data reception SBUF Copy RX SBUF data to If TI=0 ACC Clear TI Flag ISR RET Copy ACC content to 22FH loc If
  • 5. Copy 01H to 30H Loc Copy 30H loc data to ACC If RET Copy RX data[2FH] to ACC If Copy ACC content to [R0]loc Copy [30h]=00H & R0=31H RET
  • 6. START Set baud rate Read Modem Is Msg1 Yes Activate Relay1 “Locke No Is Msg2 Yes Activate Relay2 Unlocke No Is msg3 Yes Activate Relay3 city No Yes Is msg3 Activate Relay4 city limit No Track Yes Send Location No Read Sensor Is helmet Yes weared & On vehicle no alcohol No Off vehicle Yes Is Send Location Accident End