FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    How to use a single-chip timer to prepare a clock program

     

    "1. The program structure adopts the main program and interrupt service subroutine structure 2. Timing interrupt program Timer 1 is in mode 1, 16 bits, and is interrupted once in 10ms 40h10ms counting unit 41h second counting unit 42h minute counting unit 43h hour counting unit Timing mode 1 is 10ms: thx = 0ech, TLX = 78h Mode 0 is 10ms: thx = 63h, TLX = 18h 3. Reference procedure ; DISPEQU0DE00H; Display subroutine entry ; ORG0000H START:AJMPMAIN ; ORG001BH; Timer 1 interrupt service AJMPTINT1; Service program entry ; ORG0030H MAIN:MOVR0,#39H; Display buffer initialization content from MCU home www.dpj100.com MAIN_ 0: MOV@R0 ,#0 INCR0 CJNER0,#44H,#0 MOVTMOD,#10H MOVIE,#10001000B MOVTH1,#0ECH; 10ms:EC78H MOVTL1,#78H SETBTR1 MAIN_ 1:LCALLDISP; Main program loop SJMPMAIN_ one ; ; Timer 1 interrupt service routine TINT1:MOVTH1,#0ECH MOVTL1,#78H PUSHACC PUSHPSW INC40H MOVA,40H CJNEA,#100,TINT1R MOV40H,#0 MOVA,41H; Second unit plus 1 INCA DAA MOV41H,A CJNEA,#60H,TINT10 MOV41H,#0 MOVA,42H; Sub unit plus 1 INCA DAA MOV42H,A CJNEA,#60H,TINT10 MOV42H,#0 MOVA,43H; Hour unit plus 1 INCA DAA MOV43H,A CJNEA,#24H,TINT10 MOV43H,#0 TINT10:MOVA,41H; Second word splitting ANLA,#0FH MOV39H,A MOVA,41H ANLA,#0F0H SWAPA MOV3AH,A MOVA,42H; Split type ANLA,#0FH MOV3BH,A MOVA,42H ANLA,#0F0H SWAPA MOV3CH,A MOVA,43H; Hour lettering ANLA,#0FH MOV3DH,A MOVA,43H ANLA,#0F0H SWAPA MOV3EH,A TINT1R:POPPSW POPACC Reti, read the full text, technical section Driving 1602 LCD by single chip microcomputer How to program clock by using single chip microcomputer timer Analysis of the execution process of single chip microcomputer instructions Test of analog watchdog of STM32 MCU ADC Process and method analysis of stm32cubemx new project, Download enthusiast app Create an electronic circle of your contacts Pay attention to wechat of electronic enthusiasts Interesting and informative information and technology dry goods Focus on enthusiast class Lock the latest course activities and technology live broadcast, which has been collected 1 person collection Share:, comment Lin Chaowen PCB Design: pads tutorial, pads video tutorial, Zheng Zhenyu teacher: Altium designer tutorial, Altium designer video tutorial, Zhang Fei actual combat electronic video tutorial, Zhu Youpeng teacher: Hisilicon hi3518e tutorial, hi3518e video tutorial, Li Zeng teacher: signal integrity tutorial, high-speed circuit simulation tutorial, Huawei Hongmeng system tutorial, harmonyos video tutorial, saisheng: EMC design tutorial, EMC video tutorial Mr. Du Yang: STM32 tutorial, STM32 video tutorial, Tang zuolin: basic C language tutorial, basic C language video tutorial, Zhang Fei: Buck Power tutorial, buck power video tutorial, punctual atom: FPGA tutorial, FPGA video tutorial, Mr. Wei Dongshan: embedded tutorial, Embedded video tutorial Zhang Xianfeng: C language basic video tutorial Xu Xiaogang: Modbus communication video tutorial Wang Zhentao: NB IOT development video tutorial mill: FPGA tutorial, zynq video tutorial c language video tutorial linux driver development video tutorial Zhu Youpeng: u-boot source code analysis video tutorial harmonyos,  Press and hold the slider and drag to the far right Learn about new features Published, relevant recommendations Driving 1602 LCD by single chip microcomputer Basic operation sequence of LCD: 1.1 read status: input: rs = L, RW = h, e = h, output d0 ~ D7 ... Published at 17:07, November 27, 2018 • 0 readings Analysis of the execution process of single chip microcomputer instructions When a general computer works, it first sends the program and data to the memory through the input interface circuit and data bus through the external equipment, and then one by one Published on November 27, 2018 16:57 • 7 readings How to change the pin of stm8s MCU to achieve the lowest power consumption In addition, when the AWU is turned on, the current becomes 200uA. If the watchdog is turned on, it becomes 500uA. These two parameters are not very good, not very Published on November 27, 2018 16:38 • 7 readings Ten common answers to single chip microcomputer programming 1. What are the advantages and disadvantages of C language and assembly language in MCU programming? A: assembly language is a kind of language that uses text mnemonics to represent machine instructions Published at 16:05, November 27, 2018 • 17 readings Realization of optical power based on GP-IB interface / single chip microcomputer system Published on November 27, 2018 at 11:45 • 16 readings Can UART communicate one to many Published at 10:16, November 27, 2018 • 68 readings The reading and writing procedures are as follows Published at 09:10, November 27, 2018 • 11 readings Stm32f103zgt6 cube library iwdg some microcontrollers cannot restart normally Published at 08:56, November 27, 2018 • 38 readings How to set the external 8m crystal oscillator of stm32f4 MCU to 168mhz Published at 08:52, November 27, 2018 • 48 readings

     

     

     

     

    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