【MCU】Chapter 1: Understanding the structure of 8051 chip

Publisher:CuriousMind123Latest update time:2024-07-24 Source: elecfansKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Chip Introduction

Internal structure of single chip microcomputer

8 major components of 8051 microcontroller
1. CPU 2. RAM 3. ROM/EPROM/FLASH 4. Timer/Counter

5.Serial port 6.Four 8-bit parallel I/O ports 7.Special function registers 8.Interrupt system

There are 21 special function registers in 8051, 5 interrupt sources and 2 interrupt priority levels.

8051 is divided into: power pin, clock pin, I/O port pin, control pin

Use 1 to represent a high level and 0 to represent a low level


Control pins:
Pin 29: PSEN Read external memory selection signal, connected to the OE (output enable) terminal of the external memory
Pin 30: ALE/PROG Function 1. Address latch enable signal function 2. Burn input terminal
Pin 31: EA/Vpp 1. Internal/external memory selection controller. High: access internal storage. Low: external storage 2. When programming EPROM, programming voltage is required

2. Operation Circuit

MCU minimum system: including clock circuit and reset circuit

1. Clock circuit: internal clock vs external clock

The recommended crystal capacitors C1C2 are 30pF. Ceramic capacitors are 40pF

Connect from XTAL2 and ground XTAL1.

Clock cycle: refers to the time it takes for a crystal oscillator to complete one oscillation. 1 clock cycle = 1/(12x10^6)s, which is about 83.3ns

Machine cycle: refers to the time it takes for the CPU to complete a basic operation. One machine cycle contains 12 clock cycles.

Instruction cycle: refers to the time it takes for a microcontroller to execute an instruction.

2. Reset circuit

Apply a high level for 2 machine cycles on the RST pin to achieve reset


Keywords:MCU Reference address:【MCU】Chapter 1: Understanding the structure of 8051 chip

Previous article:[Standard 8051] Basic knowledge of 8051 core_register related
Next article:[MCU] Chapter 2: DIY Minimized System

Recommended ReadingLatest update time:2024-11-23 11:31

The reason why the microcontroller program runs away
1. Unexpected interruption. Is an interrupt enabled, but there is no response and no clearing of the intermediate flag, causing the program to keep entering the interrupt and creating the illusion of a freeze? 2. Improper handling of interrupt variables. If you define some global variables that will be modified in in
[Microcontroller]
51 MCU Basics of IoT 08-Timer
Preface In real-time control systems, timing clocks are often needed to achieve precise delay and timing, and counting functions are often needed to count external pulses. In this section, we begin to learn the timer of the 51 single-chip microcomputer, and then start a timer to achieve a level flip once every 1S to c
[Microcontroller]
51 MCU Basics of IoT 08-Timer
RFID access control system based on 51 single chip microcomputer - LCD12864 display
1. Hardware Solution The RFID system design can be divided into hardware and software. The hardware part takes the MFRC522 radio frequency identification module as the core, and combines the main control module STC89C52 to design the system's peripheral hardware circuit to achieve control of the radio frequency card a
[Microcontroller]
RFID access control system based on 51 single chip microcomputer - LCD12864 display
Analysis of port bit operation method of AVR microcontroller
1. Conventional methods The various textbooks or programming application reference materials of AVR microcontrollers all introduce port bit operation methods, which are nothing more than macro definition and the whole and a constant OR or AND to achieve the change of a single bit state. For example: PORT&=-(1 1); is
[Microcontroller]
Analysis of port bit operation method of AVR microcontroller
Low-cost and high-precision digital constant current source based on AVR microcontroller PWM function
  With the in-depth development of electronic technology, various intelligent instruments are becoming more and more numerous, involving more and more fields, and the requirements of instruments for power supply are becoming higher and higher. Nowadays, power supply equipment has a trend towards digitalization. Howe
[Microcontroller]
Low-cost and high-precision digital constant current source based on AVR microcontroller PWM function
Design of temperature and humidity acquisition system based on 8051 microcontroller
Through the previous study, we learned how to use the serial port to send data and receive fixed-byte commands. Today, we continue to discuss the serial port application protocol, and the main focus is on how to effectively use the serial port to send data. To simplify the description, assume that we develop a tempera
[Microcontroller]
Design of temperature and humidity acquisition system based on 8051 microcontroller
51 single chip microcomputer——LED dot matrix screen
51 single chip microcomputer——LED dot matrix screen LED dot matrix screen LED dot matrix screen principle 74HC595 serial-to-parallel converter chip source code Show results Show results Routine 1: Static smiley face Example 2: Smiling face - Flat face - Crying face   LED dot matrix screen The LED do
[Microcontroller]
51 single chip microcomputer——LED dot matrix screen
Teach you how to learn microcontrollers step by step
What is a single-chip microcomputer? How should we learn single-chip microcomputers? The following Electrical Automation Technology Network Li Gong will take you to understand single-chip microcomputers, learn single-chip microcomputers, and teach you how to learn single-chip microcomputers. 1. What can you do with si
[Microcontroller]
Latest Microcontroller Articles
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号