实用的微机串行口检测程序

来源 :计算机世界 | 被引量 : 0次 | 上传用户:gag123
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
随着计算机和通讯的发展,微机上串行口使用增多,其作用越来越大,相应对串行口的检测也就成了时常遇到的问题。通常的诊断程序和工具软件只是从微机内部检测,即对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
其他文献
2008年4月17日,第一财经商界精英高尔夫挑战赛新赛季于美兰湖隆重开杆,此次活动吸引了120余位商界名流、精英参加,即将掀起新一轮商界精英高球竞技热潮。本年赛事继续得到百
一种5V6位80MS/sBiCMOS闪烁ADC=A5V,6-b,80MS/sBiCMOSftashADC[刊,英]/Reybani,H.…∥IEEEJSolid-StateCircuits.-1994.29(8).873~878开发出一种5V单电源6... A 5V6 bit 80MS / s BiCMOS Flash ADC = A5V, 6-b, 80MS / sBiCMOSftashADC [Journal, English] / Reybani, ... ∥IEEEJSolid-Sta
一位长期过量服用抗焦虑药物氯(?)酸钾(一种苯二氮(?)类药物)的孕妇于停经后38+4周时住进产科病房。服药的确切剂量不详。胎儿在第39周时出生,表现为无自主呼吸,于是不得不在
非公有制经济与中国农民工基本上是同步发生的。在新的时期,如何在推动非公有制经济的发展的同时,逐步实现农民工市民化,是中国在转型时期必须思考的问题。目前,农民工出现了
极端地说,所有产品都可以在网上卖,这里的“适合”隐含着“更加”的比较之义。在此基础上,网上销售才有更大的商业成功率。 To put it in a nutshell, all products are sol
请下载后查看,本文暂不支持在线获取查看简介。 Please download to view, this article does not support online access to view profile.
24岁,他从《快乐男生》一举成名,参赛时演唱的《我》在网络上疯传。接踵而来的“冠军”“火星弟弟”的标签和影响力,让华晨宇迅速蹿红。然而,这一切都无法阻止他在音乐道路上
卡托普利属于血管紧张素转换酶抑制剂(ACEI),在成人内科已经作为第一线降压药物。在临床中,逐渐发现其除降压外,对心力衰竭、心肌病,心肌炎等疾病也有较好疗效。在儿科,使用
天清气朗,草长莺飞,又到清明时节。每年的这一天,除了奉一炷感念的心香,表达对已故亲人悠长的情思之外,不要忘了,还是踏青的好时节。阳光明媚,绿意盎然,到处都洋溢着春天的气
请下载后查看,本文暂不支持在线获取查看简介。 Please download to view, this article does not support online access to view profile.