FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    8279 Display the design and program source code of electronic clock

     

    share to Be Be Be Be You can see how the clock program is designed. Z8279 EQU 08701H 8279 Status / Command Port Address D8279 EQU 08700H 8279 Data Port Address LedMod Equ 00H 八 输入 八 八 八 显示 ; External decoding key scanning mode, double key interlock LEDFEQ EQU 2FH Scan rate LEDCLS EQU 0C1H Clear Display RAM Ledwr0 EQU 80h ; Set the display RAM address to be written ORG 0000H AJMP START ORG 001BH ; INT T1 entry address AJMP INT_T1 ORG 0040HSTART: Mov sp, # 60h LCALL INIT8279 Initialization 8279 Mov R3, # 0h ;Time Mov r2, # 0h ;Minute Mov r1, # 0h ;second Mov r6, # 0h Sign Mov TMOD, # 10h Mov TL1, # 00H 50 ms time constant Mov TH1, # 04ch MOV R0, # 20 Setb TR1 Setb ET1 Setb EA Allow interrupt Wait: CJNE R6, # 0ffh, wait LCALL Display Mov R6, # 0 SJMP WAIT INIT8279: 8279 Initialization Push DPH Save the site PUSH DPL PUSH ACC LCALL DELAY Delay Mov dptr, # z8279 Mov A, # ledmod 8279 work mode Movx @ DPTR, A Mov A, # ledfeq Key keyboard scan rate Movx @ DPTR, A Mov A, # ledcls Clear LED display Movx @ DPTR, A LCALL DELAY Delay POP ACC Restore the site POP DPL POP DPH RET Show the character subsystem ; Enter R4, Location R5, Value DILD: Push DPH Save the site PUSH DPL PUSH ACC Mov A, # ledwr0 ; Set the display start address Add A, R4 Add position offset Mov dptr, # z8279 Movx @ DPTR, A Set the display location MOV DPTR, # ledseg Settings Display Constant Table Start Location Mov A, R5 MOVC A, @ a + dptr Character Mov dptr, # d8279 Movx @ DPTR, A ;Display Data POP ACC Restore the site POP DPL POP DPH Retdelay: Delay subroutine PUSH 0 Save the site Push 1 MOV 0, # 0hdelay1: Mov 1, # 0h DJNZ 1, $ Djnz 0, Delay1 POP 1 Restore the site POP 0 RET INT_T1: ; Int_t1 interrupt service subroutine Push DPH Protection site PUSH DPL PUSH ACC Push PSW CLR TR1 Mov TL1, # 00H 50ms timing constant Mov TH1, # 4ch Setb TR1 DJNZ R0, EXIT ; Judgment millisecond = 0 MOV R0, # 20 Delay 1 Second Mov r6, # 0ffh 秒 秒 标 CJNE R1, # 59h, second; judgment second = 59 Mov r1, # 99h CJNE R2, # 59h, minute; judgment = 59 Mov r2, # 99h CJNE R3, # 23h, hour; judgment = 23 Mov R3, # 99hr: Mov A, R3 Add A, # 1 ; Time plus 1 DA A MOV R3, Aminute: Mov A, R2 Add A, # 1 ; DA A MOV R2, ASECOND: Mov A, R1 Add A, # 1 ; Second plus 1 DA A MOV R1, AEXIT: POP PSW Restore the site POP ACC POP DPL POP DPH Reti Interrupt to return Display: Mov A, R3 ANL A, # 0fh MOV R5, A Mov R4, # 6 LCALL DISLED Show an hour to low Mov A, R3 SWAP A ANL A, # 0fh MOV R5, A Mov r4, # 7 LCALL DISLED Show an hour high Mov A, R2 ANL A, # 0fh MOV R5, A Mov r4, # 3 LCALL DISLED Show a minute lower position Mov A, R2 SWAP A ANL A, # 0fh MOV R5, A Mov r4, # 4 LCALL DISLED Show a minute high Mov A, R1 ANL A, # 0fh MOV R5, A Mov R4, # 0 LCALL DISLED Show second low Mov A, R1 SWAP A ANL A, # 0fh MOV R5, A Mov R4, # 1 LCALL DISLED Show the second high RET Ledseg: DB 3FH, 06H, 5BH, 4FH, 66H, 6DH, 7DH, 07H; '0, 1, 2, 3, 4, 5, 6, 7' DB 7FH, 6FH, 77H, 7CH, 39H, 5EH, 79H, 71H; '8, 9, A, B, C, D, E, F' DB 6DH, 02H, 08H, 00h, 59H, 0FH, 76H; 'u, -, _,, i, o, p,' End [1] [2], read the 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