Application of 51 MCU timer mode 2 and baud rate

Publisher:星光闪耀Latest update time:2020-02-04 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere


PS: In the next issue, we will bring you some in-depth research on the communication between the two lower computers. Based on this.

[1] [2]
Reference address:Application of 51 MCU timer mode 2 and baud rate

Previous article:51 MCU timer and interrupt programming
Next article:Detailed explanation of MCS-51 interrupt-related registers, interrupt entry addresses and numbers

Recommended ReadingLatest update time:2024-11-16 13:22

Comparison of 51 MCU C and assembly instructions
1. Single instruction comparison: Byte Operations   Addition instruction Subtraction Instructions Multiplication Instructions Division Instructions Modulo instruction Bit Test Instructions _testbit_ (bit); Left shift instruction Variable = Variable 1; Right shift instruction Variable = Variabl
[Microcontroller]
Implementation of I2C bus protocol for 51 single chip microcomputer
//-----------------------Function declaration, variable definition------------------------------------------------------- #include reg51.h #include intrins.h sbit SDA=P1^0; // Make p1.0 port analog data port sbit SCL=P1^1; // Set the P1.1 port to the analog clock port #define NUM 10 // Depth of receive and sen
[Microcontroller]
C51 program for simulating RS232 serial communication with microcontroller IO port
This program has been used in one of my projects and is very stable. During the writing process, I referred to    the article http://www.51hei.com/mcu/1541.html on the 51hei website. Some subroutines are excerpted here. #include "reg52.h" #include "intrins.h"   #include "math.h"      #include "stdio.h" sbit BT_SND
[Microcontroller]
Based on 51 single chip microcomputer + LCD1602 display
LCD1602 Introduction LCD1602 related pins LCD1602 write command, write data related operation diagram According to the above timing diagram and timing parameter diagram, we can write the write command code and write data code Write command code Write Command void write_com(char command) { RS = 0;  RW = 0;
[Microcontroller]
Based on 51 single chip microcomputer + LCD1602 display
Interrupt control based on 8051 microcontroller
(1) An interrupt request is raised by the interrupt source, and the interrupt control enable control determines whether to respond to the interrupt. If the interrupt is allowed to be responded to, the CPU responds to the interrupt in the order of the set priority. If it is an interrupt of the same priority, respond to
[Microcontroller]
Design of Decimal Calculator System Based on AT89C51 Single Chip Microcomputer
This design is a decimal calculator system design based on the AT89C51 single-chip microcomputer. It can complete the keyboard input of the calculator, perform simple arithmetic operations of addition, subtraction, multiplication and division of 4-bit unsigned numbers, and display the results accordingly on the LED. I
[Microcontroller]
Design of Decimal Calculator System Based on AT89C51 Single Chip Microcomputer
【51 MCU】Timer/Counter
Changelog time Modifications 023-03-13 First draft completed TMOD is not bit-addressable, and can only be configured as a whole register. TCON is bit-addressable. It is used to control the start and stop of the timer, and to identify the overflow and
[Microcontroller]
【51 MCU】Timer/Counter
Doppler blood flow meter system based on 51 single chip microcomputer
Laser Doppler blood flowmeter is an instrument used to measure the blood flow perfusion flow and microcirculation state of tissues and micro-areas in microcirculation research. Using Doppler mobile component to measure blood cell flow is a new method of non-destructive, rapid, continuous and direct measurement of tiss
[Microcontroller]
Doppler blood flow meter system based on 51 single chip microcomputer
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

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号