摘要
针对单片机中断程序执行中异常状态多、偶发性和隐蔽性比较突出等问题,设计了由AT89C51单片机、外部中断电路、串行口中断电路和中断指示电路组成的基于Proteus的单片机中断电路。在Proteus仿真平台下完成硬件电路的搭建,对Keil C与Proteus软件进行联合调试,借助Proteus提供的虚拟仪器、激励源和仿真图表等仿真工具对电路运行情况进行实时观测和精确分析。该单片机中断电路可分析多中断源共同作用下的动态执行过程,可将抽象的中断过程直观化,有助于分析调试过程中存在的问题。
Aiming at the problems that the abnormal state,contingency and concealment in the interrupt program execution of SCM(single-chip microcomputer)are prominent,an interrupt circuit is designed,which is composed of the AT89C51 SCM,external interrupt circuit,serial port interrupt circuit and interrupt indication circuit and based on Proteus.The construction of the hardware circuit is completed at the Proteus simulation platform.Then the joint debugging of Keil C and Proteus software are carried out.With the aid of the simulation tools such as virtual instrument,excitation source and simulation charts provided by Proteus,the operation of the circuit is observed and analyzed in real time.The SCM interrupt circuit can be used to analyze the dynamic execution process under the combined action of multiple interrupt sources and visualize the abstract interrupt process.It can also help to analyze the problems existing in the debugging process.
出处
《实验技术与管理》
CAS
北大核心
2017年第7期136-140,共5页
Experimental Technology and Management
基金
新疆维吾尔自治区高等学校科学研究计划项目(XJEDU2014S070)
教育部"本科教学工程"地方高校专业综合改革试点项目(ZG0550)
关键词
单片机
中断电路
电路仿真
PROTEUS
SCM(single-chip microcomputer)
interrupt circuit
circuit simulation
Proteus