MCU Learning Notes 51 MCU Basics

Publisher:书香墨意Latest update time:2016-05-17 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
In 1980, Intel withdrew the MCS-51 microcontroller. Now it has expanded to include IO ports, AD converters, PWM, WDT (watchdog), IIC, etc. MCS-51 has been discontinued.
Compatible with MCS-51 are
Atmel's AT89C5X, which is discontinued and does not support ISP download. It has been replaced by AT89S5X, which can be ISP downloaded.
SST's SST89E5X, which comes with a monitoring program and can be simply simulated.
Hongjing STC (mainland) STC89C5X supports serial port downloads

STC89C52
  1.          MCU Learning Notes 51 MCU Basics

AT indicates Atmel chip 
9 indicates flash memory
S indicates downloadable flash
LV indicates low voltage 3.3V
52 is model 2 indicates 8K ROM 
24 indicates maximum crystal oscillator 24M
P indicates dual in-line package D indicates ceramic package J indicates square package S, Q indicates surface mount package
C indicates commercial products 0~75 degrees I indicates industrial products, high point of temperature range A indicates automotive products M indicates military grade U indicates lead-free products

51 Internal structure 
        8-bit CPU 4KROM 128 bytes of RAM 4 8-bit IO ports 1 full-duplex serial port 2 16-bit timers and counters 5 interrupt sources
 
RAM is equivalent to memory. It is lost when power is off. It is used to store computing data.
ROM is equivalent to a hard disk. It is used to store programs and is not lost when power is off.
 

There are only two levels in digital circuits: high +5V and low 0V.
        RS232 level: computer serial port high -12V and low +12V. So the single-chip microcomputer and computer communication need to convert the level.




The MCS-51 series of single-chip microcomputer products include 8051, 8031, 8751, 80C51, 80C31 and other models (the first three are CMOS chips, and the last two are CHMOS chips). Their structures are basically the same, and their main difference is reflected in the configuration of the memory. The 8051 has a 4K-byte mask ROM program memory inside, the 8031 ​​has no program memory inside, and the 8751 replaces the ROM inside the 8051 with an EPROM. The 89C51 produced by ATMEL changed the EPROM into a 4K flash memory.   

The MCS-51 microcontroller is a chip that integrates the basic functional components required for a computer, such as CPU, RAM, ROM, timer/counter, and I/O lines with multiple functions. The MCS-51 microcontroller contains the following components:

◆ An 8-bit CPU;
  ◆ An on-chip oscillator and clock circuit;
  ◆ 4K bytes of ROM program memory;
  ◆ 128 bytes of RAM data memory;
  ◆ Two 16-bit timers/counters;
  ◆ Control circuits that can address 64KB external data memory and 64BK external program memory space;
  ◆ 32 programmable I/O lines (four 8-bit parallel I/O ports);
  ◆ A programmable full-duplex serial port;
  ◆ With five interrupt sources and two priority nested interrupt structures.

MCU Learning Notes 51 MCU Basics


Internal structure of MCS-51 microcontroller

 

MCS-51 microcontroller pin functions:

 

MCU Learning Notes 51 MCU Basics

MCS-51 MCU pin diagram

1 Power supply line:
  VCC: +5 V power supply. VSS: ground line. 

2 RST: Reset signal line.
  When the input reset signal continues to be high for more than two machine cycles, it is valid and is used to complete the reset initialization operation of the microcontroller.

  3 Signal pin introduction 
              P0.0 ~ P0.7: P0 port 8-bit bidirectional line. 
              P1.0 ~ P1.7: P1 port 8-bit bidirectional line. 
              P2.0 ~ P2.7: P2 port 8-bit bidirectional line. 
              P3.0 ~ P3.7: P3 port 8-bit bidirectional line.

4 XTAL1 and XTAL2: external crystal pins

5 control lines:
  (1) ALE/PROG
    (2) EA/VPP
  (3) PSEN


Keywords:MCU Reference address:MCU Learning Notes 51 MCU Basics

Previous article:Basic Analysis of 51 Single Chip Microcomputer (Based on C Language)
Next article:MCU Learning Notes Special Function Registers

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

Application of single chip microcomputer in smart rice cooker
1 Introduction   At present, most of the rice cookers on the market adopt mechanical or fixed power heating methods, which have low energy utilization rate and single function, making it difficult to meet people's growing living needs. Therefore, it is very necessary to develop a fully functional, safe and reliable m
[Microcontroller]
Some complaints about STC microcontrollers
STC 1T series MCU is the most suitable MCU IC for lighting dimming products so far. However, STC is criticized in the market. At least in some MCU forums I often visit and some QQ groups about MCU and electronic technology, STC MCU is not very optimistic. As for the reason, it is obvious to all. STC has been criticized
[Microcontroller]
Instrument cluster (bus type) solution based on Renesas MCU
Instrument panel (bus type) solution based on Renesas MCU     Instrument panel is an indispensable part of the car. Traditional instrument panel is an electromechanical analog instrument panel with low accuracy and easy to fail. It is far from meeting the requirements of high accuracy and beauty in modern cars, so dig
[Microcontroller]
Instrument cluster (bus type) solution based on Renesas MCU
Renesas Expands Ecosystem Partners for RA Series Microcontrollers
Renesas Electronics announced that the ecosystem around its Arm Cortex-M-based 32-bit RA microcontrollers now covers a wide range of areas including security, machine learning, and more. Partners include Arm, Alibaba, IAR, Qeexo, Qt, Toshiba, and wolfSSL, and the solutions provided are compatible with off-the-shelf RA
[Microcontroller]
How to further reduce the power consumption of PIC microcontrollers
The PIC series of microcontrollers produced by Microchip Corporation of the United States have been widely used in industrial control, instruments, meters, communications, home appliances, toys and other fields due to their ultra-small size, low power consumption, low cost and wide variety. Power consumption is an i
[Microcontroller]
How to further reduce the power consumption of PIC microcontrollers
Design of frequency measuring instrument based on 51 single chip microcomputer
A frequency meter is a measuring instrument that uses counting method, width measurement method and other methods to measure the frequency of a signal. It is mainly composed of four parts: time base generation circuit, signal processing circuit, result display circuit and control circuit. The actual picture is as fol
[Microcontroller]
Design of frequency measuring instrument based on 51 single chip microcomputer
What happens inside the microcontroller after it is powered on
After the microcontroller is powered on, if the crystal oscillator starts to vibrate normally, the CPU will start working under the drive of the crystal oscillator. The job of the CPU is to extract instructions from the specified place in each machine cycle, and then parse and execute them. The 51 microcontroller has
[Microcontroller]
Grayscale image chaos secure communication based on 51 single chip microcomputer
The so-called confidential communication is to prevent the secret of communication from being stolen. In the process of communication, confidential information and its transmission method are concealed to achieve the purpose of confidentiality. Chaos is a form of motion unique to nonlinear dynamic systems. Since the pr
[Microcontroller]
Grayscale image chaos secure communication 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号