Brief introduction of interrupt request source of mcs51 microcontroller

Publisher:QingfangLatest update time:2017-10-11 Source: eefocusKeywords:mcs51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

(1) External interrupt request source: external interrupts 0 and 1 are introduced through external pins. There are two pins on the microcontroller, named INT0 and INT1, which are P3.2 and P3.3. There are four bits in the internal TCON that are related to external interrupts. 


IT0: INT0 trigger mode control bit, which can be set and reset by software. When IT0=0, INT0 is low level trigger mode, and when IT0=1, INT0 is negative transition trigger mode. The difference between these two modes will be discussed later.


IE0: INT0 interrupt request flag. When there is an external interrupt request, this bit will be set to 1 (this is done by hardware). After the CPU responds to the interrupt, the hardware will clear IE0 to 0.

The purpose of IT1 and IE1 is the same as that of IT0 and IE0. 


(2) Internal interrupt request source


TF0: overflow interrupt flag of timer T0. When T0 counts and overflows, TF0 is set by hardware. When the CPU responds to the interrupt, TF0 is cleared by hardware.


TF1: Similar to TF0. 


TI, RI: serial port send and receive interrupts.


Keywords:mcs51 Reference address:Brief introduction of interrupt request source of mcs51 microcontroller

Previous article:51 MCU interrupt enable register IE
Next article:The structure of the MCS-51 interrupt system

Recommended ReadingLatest update time:2024-11-15 23:22

Low-cost LabVIEW experimental teaching system based on MCS51
  Here, a LabVIEW experimental teaching system including common sensors, data acquisition modules and USB communication interface is designed using the cheap MCS51 single-chip microcomputer . The system uses the USB interface to communicate with the host computer and provide power, while the host computer programming d
[Microcontroller]
Design of multi-channel data communication based on MCS51 single chip microcomputer
    1 Introduction     The standard structure of MCS51 microcontroller has only one full-duplex UART serial port, P3.0-RXD for receiving and P3.1-TXD for sending. If you want to complete multi-channel serial port receiving and sending, you usually use an external expansion chip, such as GM8123/25, to complete one expa
[Microcontroller]
Design of multi-channel data communication based on MCS51 single chip microcomputer
A low-cost LabVIEW experimental teaching system based on MCS51
NI proposed the concept of virtual instruments in the 1970s. Virtual instruments are computer instrument systems designed by users on a computer-based platform, with virtual panels and software to implement test functions. They are the product of the combination of computers and test instruments. The most commonly use
[Power Management]
A low-cost LabVIEW experimental teaching system based on MCS51
A low-cost LabVIEW experimental teaching system based on MCS51
NI proposed the concept of virtual instruments in the 1970s. Virtual instruments are computer instrument systems designed by users on a computer-based platform, with virtual panels and software to implement test functions. They are the product of the combination of computers and test instruments. The most commonly use
[Power Management]
A low-cost LabVIEW experimental teaching system based on MCS51
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号