《机电工程》杂志,月刊( 详细... )

中国标准连续出版物号 ISSN 1001-4551 CN 33-1088/TH
主办单位浙江省机电集团有限公司
浙江大学
主编赵 群
副 主 编唐任仲、罗向阳(执行主编)
总 经 理罗向阳
出 版浙江《机电工程》杂志社有限公司
地 址杭州市上城区延安路95号浙江省机电集团大楼二楼211、212室
电话Tel+86-571-87041360、87239525
E-mailmeem_contribute@163.com
国外发行中国国际图书贸易总公司
订阅全国各地邮局   国外代号M3135
国内发行浙江省报刊发行局
邮发代号32-68
广告发布登记证:杭上市管广发G-001号

在线杂志

当前位置: 机电工程 >>在线杂志

Netlab单片机实验单步调试功能设计及实现

作者:孙志海,朱善安 日期:2008-06-23/span> 浏览:3261 查看PDF文档

Netlab单片机实验单步调试功能设计及实现

孙志海,朱善安
(浙江大学 电气工程学院,浙江 杭州 310027)

摘要:浙江大学网络实验室原有的单片机实验系统只支持连续执行用户汇编程序的功能,在此基础上,提出了一种将单步功能程序段嵌入用户程序的单步调试技术。在单步执行用户程序主程序段前将外部中断位寄存器软件清零,通过软件方式触发外部中断,在中断程序中,将特殊功能寄存器的值通过串口发送给控制机,控制机再将该组数据通过中心服务器转发到用户终端,结合用户终端程序可以对用户程序的主程序段进行单步调试。
关键词:单片机;单步调试;网络实验室;AT89S52
中图分类号:TP368.2文献标识码:A文章编号:1001-4551(2008)05-0086-03

Step debugging design and realization of Netlab single chip experiment
SUN Zhihai, ZHU Shanan
(College of Electrical Engineering, Zhejiang University, Hangzhou 310027, China)
Abstract: A step debugging technique for Netlab single chip experiment system was proposed. The proposed method was a further development of the experiment system. Users could debug their main assembler code step by step in remote experiment environment. The external interrupt was used for proposed debugging function and it was triggered, using software method but not in common means. Inside the interrupt service routine, the values of the special function register were transmitted to control machine through serial port. All the data of the registers were collected and retransmitted to user client by center service broker. Users could debug their main code together with the terminal software client.
Key words: single chip computer; step debugging; Netlab; AT89S52
参考文献(Reference):
[1]ZHANG S, ZHU S A, LIN Q, et al. Netlaban Internet based laboratory for electrical engineering education[J]. Journal of Zhejiang University Science A,2005,6(5):393-398.
[2]YING S D, ZHU S A. Remote Laboratory Based on Clientserverontroller Achitecture[C]. CARCV,2004:2194-2198.
[3]孙志海,朱善安.基于Internet的51单片机实验系统[J].实验室研究与探索,2006,25(2):189-191.
[4]孙志海,朱善安,张煜彦. ISP技术在Netlab单片机实验系统中的应用[J].自动化仪表,2006(9):42-44.
[5]孙俊逸,盛秋林,张铮.单片机原理及应用[M].北京:清华大学出版社,2006.
[6]高锋.单片微型计算机原理与接口技术[M].北京:科学出版社,2007.



友情链接

浙江机械信息网