摘要
针对MCS-51系列单片机只有2个外中断,介绍了两种常用的外部中断源的扩展方法,同时给出了每种扩展下利用汇编语言对中断优先级进行扩展的程序。基于电平触发型中断申请的撤除要求,提出了一种软硬结合的可行方案;基于节约单片机有限I/O资源的目的,提出了一种端口复用的新方案;并结合电路原理图,对方案作了详细地分析。
The series of MCS-51 Single Chip Microcomputer (SCM) only have two external interrupts. Two common methods for the extension of external interrupts are introduced. It also specifies the program of interrupt's priority by assemble language. In order to withdraw the interrupts triggered by level, a available scheme with combi- nation of hardware and software is given. Another available scheme is given, which is about port reuse technology, because the resource of I/O in the series of MCS-51 is too limited. It also analyzes these schemes according to circuit schematic diagram.
出处
《科学技术与工程》
2007年第19期5116-5119,共4页
Science Technology and Engineering
关键词
单片机
中断
汇编语言
优先级
single chip microcomputer interrupt assemble language priority