FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Four working patterns of the timing counter in the single chip microcomputer

     

    "The timing / counter in the single chip microcomputer can have a variety of uses. It needs to be set by the control word in the way of timing / counter. There are two special function registers related to timing / counting in single chip microcomputer, tmod and TCON., Tmod and TCON are names. When we write programs, we can directly use this name to specify them. Of course, we can also directly use their addresses 89h and 88H to specify them (in fact, the name is to directly use the address. The assembly software can translate it for you). Tmod is divided into two parts, each with 4 bits. Used to control T1 and t0 respectively. TCON is also divided into two parts. The upper 4 bits are used for timing / counter and the lower 4 bits are used for interrupt (TF1 and 0 are here). Tr0 (1) is called the operation control bit. When it is 1, the switch can be closed and the counting pulse can come over. Setb and CLR can be set to start / close the counter / timer. Four working modes of timer / counter Mode 0 It is a 13 bit counter, which consists of the lower 5 bits of TL (1 / 0) and the 8 bits of th (0 / 1). At this time, the upper 3 bits of TL (1 / 0) are not used. M1 and M0: there are four working modes of timing / counter, which are controlled by m1m0. Two bits are exactly four combinations. C / T: if C / T is 0, it is used as a timer (switch up). If C / T is 1, it is used as a counter (switch down). Gate: gate is not followed by an OR gate. When gate = 0, as long as Tr1 = 0, the switch is closed When gate = 1, the switch closing is not only controlled by Tr1, but also by INT1 pin. Both are high-level counting pulses. Mode 1 Working mode 1 is a 16 bit timing / counting mode. Just set M1 and M0 to 01. Other characteristics are the same as working mode 0. Mode 2 How to automatically load preset numbers. After overflow, the switch between the high and low eight bits of T (0 / 1) is opened, and the preset number placed in the high eight bits enters the low eight bits to start the second round, which is completed by the hardware. The cost is half the count range. Mode 3 The timer / counter is divided into 2 independent timer / counters. (Tr1 at the bottom) Tl0 can form an 8-bit timer or counter, while Th0 can only be used as a timer. TLO uses t0 status control bits C / T, gate, tr0 and INT0, while Th0 uses T1 status control bit Tr1. Generally, t0 can work in mode 3 only when T1 operates in mode 2 (when used by baud rate generator). Timing / counting range of timer / counter Working mode 0: 13 bit timing / counting mode, so it can count up to the 13th power of 2, that is, 8192 times. Working mode 1: 16 bit timing / counting mode, so it can count up to the 16th power of 2, that is, 65536 times. Working mode 2 and working mode 3 are both 8-bit timing / counting modes. Therefore, the 8th power of 2 can be counted at most, that is, 256 times. Preset value calculation: subtract the required counting times from the maximum counting quantity., Read the full text, technical section How to use programmable ramp generator peripherals to create reference signals and timing sources Analysis of four working modes of timing counter in single chip microcomputer How to debug interrupt in STM32 single chip microcomputer How to adjust the relationship between flash and clock rate in STM32 single chip microcomputer Download the enthusiast app based on the setting of MSP430 system clock low power consumption mode 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 in the live broadcast of the latest course activities and technologies and collect them 0 collections 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 DAC chip ad5760 debugging oscilloscope test did not return data Published at 09:29, November 6, 2018 • 2 readings How to use programmable ramp generator peripherals to create reference signals and timing sources Programmable ramp generator (PRG) (provided on several 8-bit PIC Microcontrollers recently launched by microchip) is a highly flexible Published at 09:15, November 6, 2018 • 0 readings STM32 advanced timer generates PWM wave, and the first pulse width is very long Published at 08:45, November 6, 2018 • 25 readings STM32 timer configuration Published at 08:38, November 6, 2018 • 28 readings Design of intelligent monitoring system for battery temperature Published at 15:34, November 5, 2018 • 73 readings Easy programming for wireless remote control Published at 15:26, November 5, 2018 • 16 readings Infrared remote control system based on single chip microcomputer Published at 15:22, November 5, 2018 • 16 readings Analysis of internal composition and application principle of 51 single chip microcomputer STC89C52: 8kflash, 512 byte ram, 32 IO ports, 3 timers, 1 UART, 8 interrupts Published at 15:22, November 5, 2018 • 27 readings Learn various configuration modes of FPGA with vivado MCU is based on flash structure, so MCU is powered on and runs directly from local flash. But the FPGA of SRAM architecture is Published at 15:12, November 5, 2018 • 96 readings Selected MCU interview questions

     

     

     

     

    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