The sudden entanglement between STC 1T and 12T

Publisher:chinalisaLatest update time:2018-12-13 Source: eefocusKeywords:STC  12T Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Currently, the 1T microcontroller is compatible with the traditional 12T microcontroller.


That is to say, executing general instructions will be 12 times faster, so if software delay is used, 12T and 1T are not universal and need to be changed.


However, when using the timer, we do not need to pay too much attention to the impact of IT and 12T, because it has been reflected in the initial values ​​of TH× and TL×.


About the calculation of TH×, TL× initial values:


12T MCU: x * 12/11059200 = 0.001 // 11.0592M crystal oscillator timing 1ms, then, 65536 - x is enough!


So for 1T, x * 1/11059200 = 0.001 //11.0592M crystal oscillator timing 1ms, then, 65536 - x is enough!


Keywords:STC  12T Reference address:The sudden entanglement between STC 1T and 12T

Previous article:Keil Common Mistakes
Next article:51 Tracking Car + Bluetooth

Recommended ReadingLatest update time:2024-11-16 14:52

Intelligent hearing-impaired assistant system based on STC89C52RC single-chip microcomputer control
SoC devices with multiple processing units are now an important link in the product design chain. This article evaluates the advantages and disadvantages of different processing units based on various factors, and uses the design example of a satellite radio receiver to help developers understand the complex balance
[Microcontroller]
Intelligent hearing-impaired assistant system based on STC89C52RC single-chip microcomputer control
About 1T series MCU software delay
The calculation formula for the small-scale delay of the 1T series microcontroller (us): (4*t + 10) * 1/f void delay(u8 t) {     while(--t); } Let's look at another nop related /* 1T series MCU generates a software delay of a specified number of us under 12M crystal oscillator*/ void Delay_us(unsigned char us) {
[Microcontroller]
STC12C5620AD ADC module and PWM module precautions
  The PCA module is similar to the C8051 microcontroller. The maximum duty cycle can reach 100, but the minimum duty cycle cannot be reached. Therefore, if you need to output a low level, you need to clear CCAPMn to 0 and set the pin to low. If you need to enable the PWM module again, just assign CCAPMn to CCAPM1=0x42;
[Microcontroller]
51 microcontroller-STC89C52 series learning, the first part of IO port learning
The STC89C52 series microcontroller IO port has three working modes: 1. Quasi-bidirectional port/weak pull-up (standard 8051 output mode) 2. Open drain output mode 3. Input mode Among them, P1/P2/P3/P4 are in the traditional 8051 IO port mode after power-on reset, while P0 port is an open-drain output after power-on.
[Microcontroller]
STC89C52 series microcontroller special function register table
Special Function Register Address Table MCU system management special function register MCU interrupt management special function register MCU I/O port special function register MCU serial port special function register MCU timer special function register MCU watchdog special function register M
[Microcontroller]
STC89C52 series microcontroller special function register table
STC89C52 microcontroller buzzer
buzzer How the buzzer works buzzer the difference: The "source" here does not refer to the power supply. But the source of shock. In other words, the active buzzer has an oscillation source inside, so it will sound as soon as it is powered on. There is no oscillation source inside Wuyuan, so it cannot make it chirp
[Microcontroller]
STC89C52 microcontroller buzzer
Design and implementation of DC ripple tester based on STC89C52 single chip microcomputer
0 Introduction In some actual industrial sites, DC voltages with high voltage stability requirements are often used, such as the intelligent charging power supply of the DC battery of the car, etc. However, due to the complex loads in the industrial site, there are many unstable factors that cause the voltage to fluc
[Microcontroller]
Design and implementation of DC ripple tester based on STC89C52 single chip microcomputer
Problems with STC12 models
D1 indicates STC12C5A series Because the netizen Yu Jian Zhui Meng found that his MCU recognition model was not accurate, so I realized that the algorithm was not actually correct. Then the meaning of 1 BYTE V MOD(2) SIZE(3) (IAP/STC) V=0 = C V=1 = LE MOD=10= AD MOD=01 = CCP MOD=00 = X MOD=11 = S2 SI
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components
Guess you like

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号