MCS-51 interrupt request cancellation method list

Publisher:数据舞者Latest update time:2017-10-10 Source: eefocusKeywords:MCS-51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Take the external interrupt level trigger as an example: when the CPU responds to the interrupt and enters the service program, the external low level must be removed before executing the RETI instruction to return to the main program. Otherwise, when the CPU returns to the main program, it will enter the interrupt again due to the external low level signal that is too long. This will not only cause an unnecessary erroneous operation, but also prevent the main program from running normally.


Similarly, other interrupt sources also have similar problems. Therefore, when using interrupts, you must be clear about whether the interrupt request (flag) should be removed and how to remove it before returning to the main program.

How to cancel the interrupt request of MCS-51



Picture 1


Keywords:MCS-51 Reference address:MCS-51 interrupt request cancellation method list

Previous article:2×2 determinant keyboard circuit design and keyboard scanning subroutine programming example
Next article:LED display assembly language program including interrupt

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号