SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances (7)

Tuning of pid
Tuning of pidTuning of pid
Tuning of pid
 
Storage of finished food product
Storage of finished food productStorage of finished food product
Storage of finished food product
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Class 39 final control elements - actuators
Class 39   final control elements - actuatorsClass 39   final control elements - actuators
Class 39 final control elements - actuators
 
Subversion
SubversionSubversion
Subversion
 
Moore and Mealy machines
Moore and Mealy machinesMoore and Mealy machines
Moore and Mealy machines
 
IEC 61131-3 PLC Programming Languages: Beyond Ladder Logic
IEC 61131-3 PLC Programming Languages:  Beyond Ladder LogicIEC 61131-3 PLC Programming Languages:  Beyond Ladder Logic
IEC 61131-3 PLC Programming Languages: Beyond Ladder Logic
 

Dernier

PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTARPEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
doktercalysta
 
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
nafizanafzal
 
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di PasuruanObat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Jakarta Wa 085176963835 Apotek Jual Obat Cytotec Di Jakarta
 
Future of Trade 2024 - Decoupled and Reconfigured - Snapshot Report
Future of Trade 2024 - Decoupled and Reconfigured - Snapshot ReportFuture of Trade 2024 - Decoupled and Reconfigured - Snapshot Report
Future of Trade 2024 - Decoupled and Reconfigured - Snapshot Report
Dubai Multi Commodity Centre
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312
LR1709MUSIC
 
What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...
srcw2322l101
 

Dernier (20)

MEANING AND CHARACTERISTICS OF TAXATION.
MEANING AND CHARACTERISTICS OF TAXATION.MEANING AND CHARACTERISTICS OF TAXATION.
MEANING AND CHARACTERISTICS OF TAXATION.
 
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTARPEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
 
Global Internal Audit Standards 2024.pdf
Global Internal Audit Standards 2024.pdfGlobal Internal Audit Standards 2024.pdf
Global Internal Audit Standards 2024.pdf
 
wagamamaLab presentation @MIT 20240509 IRODORI
wagamamaLab presentation @MIT 20240509 IRODORIwagamamaLab presentation @MIT 20240509 IRODORI
wagamamaLab presentation @MIT 20240509 IRODORI
 
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
 
Should Law Firms Outsource their Bookkeeping
Should Law Firms Outsource their BookkeepingShould Law Firms Outsource their Bookkeeping
Should Law Firms Outsource their Bookkeeping
 
Innomantra Viewpoint - Building Moonshots : May-Jun 2024.pdf
Innomantra Viewpoint - Building Moonshots : May-Jun 2024.pdfInnomantra Viewpoint - Building Moonshots : May-Jun 2024.pdf
Innomantra Viewpoint - Building Moonshots : May-Jun 2024.pdf
 
Beyond Numbers A Holistic Approach to Forensic Accounting
Beyond Numbers A Holistic Approach to Forensic AccountingBeyond Numbers A Holistic Approach to Forensic Accounting
Beyond Numbers A Holistic Approach to Forensic Accounting
 
How Do Venture Capitalists Make Decisions?
How Do Venture Capitalists Make Decisions?How Do Venture Capitalists Make Decisions?
How Do Venture Capitalists Make Decisions?
 
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di PasuruanObat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
Unlocking Growth The Power of Outsourcing for CPA Firms
Unlocking Growth The Power of Outsourcing for CPA FirmsUnlocking Growth The Power of Outsourcing for CPA Firms
Unlocking Growth The Power of Outsourcing for CPA Firms
 
Future of Trade 2024 - Decoupled and Reconfigured - Snapshot Report
Future of Trade 2024 - Decoupled and Reconfigured - Snapshot ReportFuture of Trade 2024 - Decoupled and Reconfigured - Snapshot Report
Future of Trade 2024 - Decoupled and Reconfigured - Snapshot Report
 
PitchBook’s Guide to VC Funding for Startups
PitchBook’s Guide to VC Funding for StartupsPitchBook’s Guide to VC Funding for Startups
PitchBook’s Guide to VC Funding for Startups
 
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In HarareTop^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312
 
stock price prediction using machine learning
stock price prediction using machine learningstock price prediction using machine learning
stock price prediction using machine learning
 
What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...
 
Daftar Rumpun, Pohon, dan Cabang Ilmu (2024).pdf
Daftar Rumpun, Pohon, dan Cabang Ilmu (2024).pdfDaftar Rumpun, Pohon, dan Cabang Ilmu (2024).pdf
Daftar Rumpun, Pohon, dan Cabang Ilmu (2024).pdf
 
Stages of Startup Funding - An Explainer
Stages of Startup Funding - An ExplainerStages of Startup Funding - An Explainer
Stages of Startup Funding - An Explainer
 

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