Under what circumstances can the MCS-51 microcontroller respond to an interrupt? What is the interrupt response process?

Publisher:泉趣人Latest update time:2013-04-08 Source: 21ICKeywords:MCS-51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Under what circumstances can MCS-51 respond to interrupts? What is the process of interrupt response?

A: Conditions for responding to interruptions

(1) The interrupt source has an interrupt request;

(2) The interrupt enable bit EA = 1;

(3) The interrupt enable bit of the interrupt source requesting the interrupt is 1;

On the basis of meeting the above conditions, if any of the following situations exists, the interrupt response will be blocked.

(1) The CPU is executing an interrupt service routine of the same or higher priority.

(2) The instruction being executed has not yet been completed.

(3) The interrupt return instruction RETI or the instruction to read/write the special registers IE and IP is being executed. After executing the above instructions, the CPU needs to execute another instruction to respond to the interrupt request.

After the interrupt request is responded to, an internal long call (LCALL) redirects the program to the corresponding interrupt vector address and executes the interrupt service routine.

 

Keywords:MCS-51 Reference address:Under what circumstances can the MCS-51 microcontroller respond to an interrupt? What is the interrupt response process?

Previous article:How do you know how much of the stack is used?
Next article:How to embed assembly language programs in C51

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

What is AT89S51 microcontroller?
What is AT89S51 microcontroller? What is AT89S51? Books and online tutorials are all about 8051, 89C51, etc.! Never heard of 89S51? !   Here, beginners need to clarify a product concept regarding the actual use of microcontrollers. The MCS-51 microcontroller is a product launched by the American INTE company in 1980.
[Microcontroller]
Detailed Analysis of the Internal Data Memory RAM of MCS-51 MCU
The internal RAM of the 8051 microcontroller has a total of 256 units, which are usually divided into two parts according to their functions: the lower 128 units (unit address 00H ~ 7FH) and the upper 128 units (unit address 80H ~ FFH). The figure shows the configuration diagram of the lower 128 units. Register area
[Microcontroller]
Detailed Analysis of the Internal Data Memory RAM of MCS-51 MCU
Summary of MCS-51 MCU instruction fast memory method
A single-chip microcomputer is a small but complete computer system that integrates a central processing unit (CPU) with data processing capabilities, random access memory (RAM), read-only memory (ROM), multiple I/O ports and interrupt systems, timers/counters and other functions (may also include display driver circui
[Microcontroller]
How to use MCS-51 microcontroller to measure periodic wave frequency
There are many methods to measure the frequency of periodic waves, but most of them calculate the frequency indirectly through measurement. This article introduces the use of the MCS-51 series microcontroller, which is currently widely used, to measure the frequency of periodic waves, and intuitively display the frequ
[Microcontroller]
How to use MCS-51 microcontroller to measure periodic wave frequency
The difference between the PIC series microcontroller and the MCS-51 series microcontroller in design
It should be said that there are three main characteristics: (1) Bus structure: The bus structure of the MCS-51 microcontroller is the von Neumann type. The computer fetches instructions and data in the same storage space, and the two cannot be performed at the same time; while the bus structure of the PIC microcontro
[Microcontroller]
The structure and working principle of the P1 port of the mcs-51 single chip microcomputer
The structure of the P1 port is the simplest and its purpose is also single, it is only used as a data input/output port. The output information is latched, and the input is divided into read pins and read latches. The one-bit structure of the P1 port is shown in Figure 1 below.     As shown in Figure 1, the main dif
[Microcontroller]
The structure and working principle of the P1 port of the mcs-51 single chip microcomputer
Detailed explanation of MCS-51 interrupt-related registers, interrupt entry addresses and numbers
  MCS-51 single chip microcomputer pin diagram and function      1. Power supply   Vcc: chip power supply, usually +5V;   Vss: Ground terminal.   2. Clock   XTAL1 and XTAL2: Inverting input and output of crystal oscillator circuit. When using the internal oscillator circuit, an external crystal oscillator is requir
[Microcontroller]
Detailed explanation of MCS-51 interrupt-related registers, interrupt entry addresses and numbers
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号