论文部分内容阅读
随着计算机和通讯的发展,微机上串行口使用增多,其作用越来越大,相应对串行口的检测也就成了时常遇到的问题。通常的诊断程序和工具软件只是从微机内部检测,即对8250芯片编程测试,而对于其它外围芯片(如MS1488和MS1489等)和电路乃至到插座的连线是不检测的。但是在实际使用时,其中任何一个环节出错都将导致相应工作的失败。本人编制了一个检测微机串行口的程序,主要通过外部连线方式测出其状态,据此发现问题并及时修复。该程序可以选择300~76800波特率和多种串行格式,全面检测多达6个串行口的状态。另外,该程序稍加扩展就可开发成通讯程序。笔者在此基础上开发的微机与数控机床通讯程序,实现了DNC控制,成为模具CAM中重要组成部分,效果良好。现将具体操作法和使用说明介绍如下。(1)采用汇编语言编制源程序CH232.ASM(详见程序清单),经编译,连接生成相应.EXE文件,再经DOS中EXE2BIN程序转换成相应.Com执行程序。(2)可将上述建成的CH232.COM程序拷贝至系
With the development of computer and communication, the use of serial port on the computer increases, its role is more and more large, the corresponding detection of the serial port has become a frequently encountered problem. The usual diagnostic programs and tools just from the internal computer test, that is, the 8250 chip programming test, and for other peripheral chips (such as MS1488 and MS1489, etc.) and the circuit and even the connection to the outlet is not detected. However, in actual use, any one of these errors will result in the corresponding work failed. I compiled a program to detect the computer serial port, mainly through the external connection to measure the status, according to the discovery of problems and timely repair. The program can choose 300 ~ 76800 baud rate and a variety of serial formats, a comprehensive test up to six serial port status. In addition, the program a little expansion can be developed into a communication program. Based on this, the author develops the communication program between microcomputer and CNC machine tool, realizes the DNC control and becomes an important part of the mold CAM, the effect is good. Now the specific operating method and instructions are described below. (1) The use of assembly language programming source program CH232.ASM (see the list of programs), compiled, connected to generate the corresponding .EXE file, and then by the DOS EXE2BIN program into the corresponding. Com implementation of the program. (2) The above program can be copied to the Department of CH232.COM