51 MCU Basics (2)

Publisher:心灵舞动Latest update time:2015-10-12 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
fill in the blank

1. When the MCS-51 pin ALE is valid, it means that the (    low 8 bits    ) address is sent stably from the P0 port.

2. The stack of MCS-51 is  an area temporarily allocated in the (   on-chip  ) data memory by the software to fill in the stack pointer.  

3. When using 8751 and #EA=1, and the program memory address is less than (    1000H     ), the on-chip ROM is accessed.

4. In the MCS-51 system, when the #PSEN signal is valid, it means that the CPU wants to read information from the (    external program     ) memory.

5. MCS-51 has 4 groups of working registers, and their address range is (   00H~1FH   ).

6. The data memory in the range of 20H~2FH in the MCS-51 chip can be addressed by both byte and    bit     .

7.   When RS1 RS0=10 in PSW, the address of R2 is (    12H     ).

8.   When RS1 RS0=11 in PSW, the address of R2 is (    1AH     ).

9. After the microcontroller system is reset, (PSW) = 00H, so the current register of the on-chip RAM register area is the (    0    )th group, and the unit addresses of the 8 registers are (   00H   )~(   07H    ).

10. After reset, PC is (   0000H    ).

11. One machine cycle = (   12   ) oscillation periods = (    6    ) clock cycles.

12. The content of PC is (   the address of the instruction to be executed   ).

13. In the MCS-51 microcontroller, if a 6MHz crystal oscillator is used, one machine cycle is (    2us    ).

14. In the internal RAM, the bit address is 30H, and the byte address of the byte where the bit is located is (    26H   ).

15. If the content in A is 63H, then the value of the P flag is (    0    ).

16. After the 8051 microcontroller is reset, the address of the storage unit corresponding to R4 is (    04H  ). Because PSW = ( 00H  )  when powered on  , the current working register area is the (   0   )th group of working register area.      

17. When using the 8031 ​​chip, the #EA pin needs to be connected to a (    low    ) level because there is no (   program   ) memory inside the chip.

18. The lower 128 units of on-chip RAM can be divided into  three main parts: (working register area  ), (   bit addressing area   ) and (   user RAM area  ). 

19. To implement a subroutine call through stack operation, first push the contents of (    PC    ) into the stack to save the breakpoint; when the call returns, pop the stack again to restore the saved breakpoint to (    PC    ).

20. The addressing range of the MCS-51 microcontroller program memory is determined by the number of bits of the program counter PC. Since the PC of MCS-51 is 16 bits, its addressing range is (    64    ) KB.

21. The MCS-51 microcontroller has a total of (   32   ) registers in the on-chip RAM, which are divided into (   4   ) groups of registers, each with (8   ) units, and the register names are R0~R7.

22. When the model of the microcontroller is 8031/8032, its chip lead #EA must be connected to a (    low   ) level.

Reference address:51 MCU Basics (2)

Previous article:51 MCU Basics (3)
Next article:51 MCU Basics (1)

Recommended ReadingLatest update time:2024-11-16 19:55

51 MCU Proteus simulation of basketball game timer
Schematic diagram of 51 single-chip microcomputer simulation timer: Preview of some source code: #include "main.h" #include "delay.h" #include "keypad.h" #include "display.h" void main() {         INT0_Initial();         Time0_Initial();         delay_ms(10);         LED = 0;         while(1)         {            
[Microcontroller]
51 MCU Proteus simulation of basketball game timer
The composition of MCS-51 single chip microcomputer memory
1. Program memory  On-chip program memory  Off-chip program memory  2. Data memory  On-chip RAM 128B  Off-chip RAM max64KB  3. Special function registers (SFR)  4. Bit memory
[Microcontroller]
12232c LCD display and 8051 microcontroller interface C language program
The following is a C language program written by Mr. Peng. I have used it! Wow! When writing the first four digits of the communication protocol in atmega128, it seems that you cannot send them one by one, but you have to write them as a hexadecimal whole shift! The comm in the program is the instruction to write 0 to
[Microcontroller]
Introduction to the IO port of C51 microcontroller (Part 2)
In the previous article, we briefly introduced the IO of C51. Now let’s briefly understand the structure of C51 IO. Here we learn about the more common IO modes of microcontrollers, which are quasi-bidirectional, open-drain output and push-pull output. (I should mention here that the STC88C52RC we use does not have
[Microcontroller]
Introduction to the IO port of C51 microcontroller (Part 2)
How to use the C8051F series microcontroller to reduce the total power consumption of the system?
In the design of the control terminal system, when the system requires low overall power consumption, the C8051F series microcontroller is the best choice. They have flexible clock hardware that allows the system to easily switch between high-efficiency operation mode and low-power consumption mode. The intelligent po
[Microcontroller]
2.0-R61503B 8bits TFT color screen touch screen driver based on 51 single chip microcomputer
The microcontroller source program is as follows: #include reg52.h #include "gui.h" #include "touch.h" void main() {         uchar rst = 0;         //--Two more values ​​are used to separate other variables in memory--//         uchar xValue = {0, 0, 0, 0, 0, 0}, yValue = {0, 0, 0, 0, 0, 0};         long x, y;  
[Microcontroller]
2.0-R61503B 8bits TFT color screen touch screen driver based on 51 single chip microcomputer
What is the difference between Atmega16 and 51 microcontrollers? Analysis from both software and hardware aspects
1. Introduction to Atmega16 microcontroller Today our topic is microcontrollers. When you talk about microcontrollers, you may first think of the 51 microcontroller, and then use external digital circuits and analog circuits to control peripheral hardware, such as PWM, ADC, I2C, etc. So what are we talking about today
[Microcontroller]
What is the difference between Atmega16 and 51 microcontrollers? Analysis from both software and hardware aspects
Multi-machine parallel communication system based on 89S51 single chip microcomputer
In some complex systems, there are data transmission problems between systems and subsystems, subsystems and devices, etc., which are often solved by communication. Due to the different communication baud rates of subsystems and devices, especially the existence of some special baud rate devices, it is difficult to
[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

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号