FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Share a security gate control program

     

    A security door control program, using the wireless remote control mode to open the door, the stepping motor to perform an action. Using AT89C2051 microcontroller control, liweiqiang ; P3.3 connected buzzer ; P3.5 contact state of the switching signal input gate, a low-potential indicates the door is closed, the door is opened indicates a high potential ; P3.7 door remote control signal input, active low signal has doors. org 0000h ljmp start org 000bh ljmp int_0 start: mov sp, # 60h mov tmod, # 01h mov th0, # 0b0h mov tl0, # 0b8h mov r1, # 00h mov r0, # 00h setb ea setb et0 setb tr0 ; ============================================ main :; main loop start jb p3.5, kss; P35 = 0, indicates that the door has been closed down implementation. jnb 20H.0, kss; 20H.0 = 0 indicates manual lock switch at the unlock signal is detected. lcall gs; shut clr 20H.0; set 20H.0 = 0, indicates a locked door. kss: ;; manually unlock detection signal jnb p3.5, kst; if the door is manually opened from the inside lock execution flag cleared down. ajmp ddjm kst :; remote unlock detection signal jb p3.7, kmjs;? unlock signal is a low-level execution down lcall delay; delay jitter elimination jnb p3.7, kmjs; confirm whether the unlock button is released. Execution is down lcall ks; unlock setb tr0; after unlocking timing kmjs :; open timing cjne r0, # 30, main; door 15 seconds after detecting the timing status of the doors mov r0, # 00h clr tr0 ddjm: jb p3.5, $; wait for door it closed setb 20h.0; shut the door had locked the door after clearing the flag, clr tr0; stop counting jmp main; anti-back to the main program ; =========================================== int_0: push psw push aCC inc r1 cjne r1, # 14, ext inc r0 mov r1, # 00h ext: mov th0, # 0b0h mov tl0, # 0b8h pop acc pop psw reti ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; unlock subroutine ks: mov r0, # 3 loop1: mov p1, # 10101111b acall delay mov p1, # 11001111b acall delay mov p1, # 11010111b acall delay mov p1, # 10110111b acall delay djnz r0, loop1 mov p1, # 0ffh lcall delay1 lcall bz mov r1, # 00h setb tr0 RET ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; shut subroutine gs: lcall delay1 lcall delay1 lcall delay1 lcall delay1 mov r0, # 3 loop2: mov p1, # 10110111b acall delay mov p1, # 11010111b acall delay mov p1, # 11001111b acall delay mov p1, # 10101111b acall delay djnz r0, loop2 mov p1, # 0ffh lcall delay1 lcall bz lcall delay lcall bz RET ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; bz: clr p3.3 lcall delay1 setb p3.3 RET DELAY: mov r6, # 30 d1: mov r7, # 0 d2: djnz r7, d2 djnz r6, d1 RET delay1: mov r5, # 200 dd1: mov r4, # 100 dd2: mov r3, # 10 dd3: djnz r3, dd3 djnz r4, dd2 djnz r5, dd1 RET End, read full text

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us