摘要
本设计利用3位数码管,演示单片机外部中断响应;运用Proteus仿真平台设计了单片机外部中断硬件电路,运用Keil平台进行C语言的编程、调试、编译,生成相应HEX文件,实现了软硬件联调;运用2个按键模拟单片机外部中断申请,用数码管显示0-9来模拟中断嵌套现象,有效地展示了中断允许、中断申请、中断响应、中断嵌套响应和中断返回等功能。中断是单片机教学中的重点和难点,通过演示实验,能够对中断概念的理解更加透彻,取得了很好的教学效果。
It adopted 3-bit digital tubes in the paper to demonstrate the SCM external interrupt,in which MCU external interrupt hardware circuit was designed supported by Proteus simulation system,and based on Keil platform,C language programming,debugging and compiling were completed to generate corresponding HEX files,thus achieving software and hardware combined commisioning. In the experiment,2keys were designed to simulate MCU external interrupt application,and 0-9 digital display was used to simulate interrupt nesting,demonstrating fully the interrupt permission,interrupt application,interrupt response,interrupt nesting and interrupt return. Since SCM interrupt is always an important but difficult concept in MCU teaching,this design,by meaning of experiment display,helps greatly for students to understand the concept of SCM interrupt.
出处
《蚌埠学院学报》
2017年第4期1-3,30,共4页
Journal of Bengbu University
基金
安徽省质量工程项目(2015jyxm289
2015zy051)
安徽省重大教改项目(2014zdjy106)