FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    51 microcontroller's control design of traffic lights

     

    It is a 51-series microcontroller, says that the Mark logo is a key role. Below is a simulation map LED0 EQU P1 LED2 EQU P2 LED1 EQU P0 Mark Bit 00h Mark1 Bit 01h Time EQU 30H; time buffer SHI EQU 31H; Time Data Buffer! Key EQU P3.2 Key1 EQU P3.3 CTH EQU (65536-50000) / 256 CTL EQU (65536-50000) MOD 256 ORG 0000H JMP START ORG 0003H JMP INT_0 ORG 000BH JMP TIME0 ORG 0030H Start: MOV P1, # 00H MOV P0, # 0ffh MOV P2, # 0ffh Mov dptr, # ABC Mov sp, # 5fh Mov shi, # 20 MOV R0, SHI Mov R7, # 20 CLR Mark CLR Mark1 Mov TMOD, # 01H MOV TH0, # CTH; initial pointer MOV TL0, # CTL Setb EA Setb it0 Setb EX0 Setb ET0 Setb TR0 MOV Time, R0 Call Display Main: Mov led0, # 21h; North, red light CJNE R0, # 3, main Mov shi, # 04 Next: MOV R6, # 3 A1: MOV LED0, # 01h Call delay_500ms Mov led0, # 21h Call delay_500ms Djnz R6, A1 S1: JBC Mark, A2 SJMP S1 A2: MOV LED0, # 11h; bei huang deng liang Mov shi, # 20 JBC Mark, Main1 SJMP A2 MAIN1: MOV LED0, # 0CH; Xi Hong Deng Liang CJNE R0, # 3, main1 Mov shi, # 04 Next1: Mov r6, # 3 A3: MOV LED0, # 08h Call delay_500ms Mov led0, # 0ch Call delay_500ms Djnz R6, A3 S2: JBC Mark, A4 SJMP S2 A4: MOV LED0, # 0ah Mov shi, # 20 JBC Mark, Main SJMP A4 DELAY_500MS: MOV R5, # 20 K1: MOV R4, # 50 K2: MOV R3, # 250 DJNZ R3, $ Djnz R4, K2 Djnz R5, K1 RET Display: MOV A, TIME Mov b, # 10 Div AB MOVC A, @ a + dptr MOV LED2, A Mov A, B MOVC A, @ a + dptr MOV LED1, A RET ABC: DB 0C0H, 0F9H, 0A4H, 0B0H, 99H, 92H, 82H, 0F8H, 80H, 90H INT_0: PUSH ACC Push PSW Setb RS1 Setb RS0 Mov r5, # 70 K4: MOV R4, # 250 DJNZ R4, $ Djnz R5, K4 JB Key, ITT_2 Mov Time, # 20 Call Display ITT_1: MOV LED0, # 00010010B Call delay_500ms Mov led0, # 00H JNB Key, ITT_2 Call delay_500ms JB Key, ITT_1 ITT_2: JNB Key, $ POP PSW POP ACC Reti Time0: Push ACC Push PSW MOV TH0, # CTH; initial pointer MOV TL0, # CTL DJNZ R7, TIME1 Mov r7, # 20 DJNZ R0, TIME2 Setb Mark MOV R0, SHI Time2: MOV Time, R0 Call Display Time1: POP PSW POP ACC Reti 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