MCS-51 serial interface related function registers

Publisher:诗意世界Latest update time:2017-10-14 Source: eefocusKeywords:MCS-51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1) Serial port control register SCON 

bits: SM0 SM1 SM2 REN TB8 RB8 TI RI 

SM0, SM1: Mode selection 

SM2 is used for multi-machine communication. When SM2=1, if the received 9th bit RB8 is 1, RI=1; when SM2=0, whether the received 9th bit is 0 or 1, RI=1. 



2) Power control register PCON 

bits: SMOD - - - GF1 GF0 PD IDL 

The only bit related to the serial port is SMOD. When this bit = 1, the baud rate is doubled. The remaining 4 bits are related to power control. 



3) Serial receive/transmit data buffer register SBUF (99H) 

is actually two registers sharing the same address.

Keywords:MCS-51 Reference address:MCS-51 serial interface related function registers

Previous article:An example of the working mode and baud rate calculation of the serial port of MCS-51 single-chip microcomputer
Next article:Example of MCS-51 single-chip parallel port output color light moving program

Recommended ReadingLatest update time:2024-11-17 00:19

Introduction to the Interrupt System of MCS-51 Microcontroller
The connection between the computer and the outside world is through external devices (also called peripherals, input/output devices or I/O devices). The computer and the peripherals are not directly connected, but through different interface circuits to achieve the purpose of information transmission between each othe
[Microcontroller]
Writing a clock program using a timer based on the MCS-51 microcontroller (assembly)
1. Think carefully about the good idea Writing a clock program using a timer is a headache. Put aside other fancy functions and start with the most basic time display. The rest can be dealt with later. What we generally hope is that the clock can keep timing, call the display to show the current time when needed, an
[Microcontroller]
Writing a clock program using a timer based on the MCS-51 microcontroller (assembly)
Research on Embedded Internet Technology of MCS-51 Single-Chip Microcomputer
In recent years, embedded systems represented by microcontrollers (MCU) have been widely used in industrial detection systems, intelligent instruments, security systems, smart home appliances and information appliances. If the embedded system can be connected to the Internet, users can remotely control, monitor
[Microcontroller]
Research on Embedded Internet Technology of MCS-51 Single-Chip Microcomputer
The basic components of MCS-51 microcontroller
    Figure 1 illustrates the basic composition of the MCS-51 series of microcontrollers. 1. Internal structure and function of 8051 microcontroller 1. Central processing unit CPU     (1)     Arithmetic logic unit ALU (Arithmetic Logic Unit)     2) Accumulator ACC (Accumulator)     3) Register B     4) Prog
[Microcontroller]
The basic components of MCS-51 microcontroller
What are the main logical functional components integrated into the MCS-51 series of microcontrollers?
Question: What are the main logic functional components integrated in the MCS-51 series microcontroller? What are the main functions of each logic component?  Answer: The MCS-51 microcontroller integrates several major units such as the central processing unit (CPU), program memory (ROM), data memory (RAM), timer/coun
[Microcontroller]
Introduction to MCS-51 single-chip terminal and external interrupt software programming
The MCS-51 microcontroller has multiple interrupt sources. Taking 8051 as an example, there are 5 interrupt sources, two external interrupts, two timing interrupts and one serial interrupt. In this section, we will discuss external interrupt software programming. External interrupts are interrupts caused by ext
[Microcontroller]
Introduction to MCS-51 single-chip terminal and external interrupt software programming
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号