首页 | 本学科首页   官方微博 | 高级检索  
     

基于Win98串行通信的单片机程序调试的实现
引用本文:柯锋,周永鹏. 基于Win98串行通信的单片机程序调试的实现[J]. 兵工自动化, 2001, 20(4): 40-42
作者姓名:柯锋  周永鹏
作者单位:华中理工大学,控制理论与控制工程系,湖北,武汉,430074
摘    要:针对调试单片机应用系统时,因修改用户程序须频繁使用编程器擦写存储芯片的问题,提出了通过编制单片机调试程序,以接收来自PC机用雇用户程序的测试方法。该方法的关键是设置单片机与PC的通信接口及双方握手信任。并以80C196为例,将单片机源程序(.AMS)汇编成用户程序(.HEX),探讨了基于Win98的异步I/O通信方式,给出了以调用VisualC 6.0的API函数实现串行通信的打开串口、创建事件对象、串口读写操作及今后执行等函数原型。

关 键 词:串行通信 API函数 VisualC 6.0 单片机 PC 程序调试
文章编号:1006-1576(2001)04-0040-03
修稿时间:2001-03-28

The Realization of Debugging Program for Single-chip Computer Based on Serial Communication under Win98
KE Feng,ZHOU Yong-peng. The Realization of Debugging Program for Single-chip Computer Based on Serial Communication under Win98[J]. Ordnance Industry Automation, 2001, 20(4): 40-42
Authors:KE Feng  ZHOU Yong-peng
Abstract:Aiming at existing some problems that memory chip is continually read or written with editor when user program was modified, the testing method for user program of PC is presented in accordance with programming of debugging program for single-chip computer. The communication interface and communication protocol between single-chip computer and PC is set up with the method. Taking 80C196 as an example, source program (.AMS) of single-chip computer was compiled to become user program (.HEX), a mode of asynchronous I/O communication under Win98 was discussed. The realization of serial communication applied API function of Visual C++ 6.0, establishment of event object, read-write of serial interface, and background executing function was introduced.
Keywords:Serial communication  API function  Visual C++ 6.0  Single-chip computer  PC  Debugging program
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号