摘要
对在单片机实训教学过程中硬件资源的不足,提出了用软件仿真的方式代替部分实验环节的方法。采用Keil自带的仿真功能,在虚拟环境中实现对单片机程序的调试,具体对单片机I/O口、相关变量和程序的仿真,并采用实际开发工具进行验证。结果表明,Keil自带的仿真功能可以实现大多数单片机实验板的硬件仿真实验,硬件要求降低。
In view of the shortage of hardware resources in the process of training and teaching of MCU,a method of replacing part of the experiment with software simulation is proposed.In the virtual environment Keil comes with its own simulation capabilities.It can achieve the debugging of the microcontroller program simulation,such as specific microcontroller I/O port,related variables and programs simulation,which can be verified by the actual development tools.The experimental results show that the simulation function of Keil can realize the hardware simulation of most MCU experimental boards,greatly reduce the hardware requirements.
作者
徐鹏
Xu Peng(Zhejiang International Maritime College,Zhoushan 316021,China)
出处
《浙江国际海运职业技术学院学报》
2018年第1期12-15,共4页
Journal of Zhejiang International Maritime College
关键词
单片机
调试
KEIL
仿真
Microcontroller
debugging
Keil
simulation