论文部分内容阅读
本文介绍了一种微机系统与单板机简单通讯方法,从而使在单板机的应用程序能在微机系统上利用微机系统上的软、硬件资源来调试好,然后送入单板机中的EPROM固化和执行,单板机中的应用程序也可送入微机系统并纪录在微机系统的磁盘上等等。本方法简单实用,硬件上不外加其它逻辑电路。在极短时间内就可调试好。随着计算机技术的飞速发展,微处理器和微计算机自1971年问世以来,得到了极其迅速的发展。由于其体积小、价格便宜,越来越多的单板机运用在工业控制、检测和数据采集处理等方面,使单板机得到了广泛应用。但由于单板机功能的限制,使程序设计人员在调试应用程序时要自己代真调试,并且修改程序困难,另外还会遇到其它困难,甚至某些困难在单板机上很难解决。由于微型计算机的应用日益广泛,很多单位都有一台功能较多的微型计算机系统。为此,如果单板机与微计算机系统的CPU型号一样,那么将微机系统与单板机联机通讯,使在单板机上的应用程序,在微机系统上利用系统的软、硬件资源来调试好,然后将调试好的应用程序传送到单板机中热行或固化在单板机的EPROM中,因此,设计人员就能很方便地调试程序,大大缩短了软件的研制周期。为此我们在BCM Ⅱ微机系统和μC-Z80单板机上实行了联机通讯。这两种机的CPU都为Z80。
This paper introduces a simple communication method between microcomputer system and single-board computer, so that the application of single-board computer can use the software and hardware resources on the microcomputer system to debug in the single-board system and then send it to the single-board computer EPROM curing and execution, single board machine applications can also be sent to the computer system and recorded in the computer system disk and so on. This method is simple and practical, the hardware does not add other logic. Can be adjusted in a very short period of time. With the rapid development of computer technology, microprocessors and microcomputers have been extremely rapidly developed since 1971. Due to its small size and low price, more and more single-board computers are widely used in industrial control, testing and data acquisition and processing. However, due to the limitation of the function of the single-board computer, the programmer must debug himself / herself when debugging the application program, and the process of modifying the program is difficult. In addition, other difficulties are encountered, and even some difficulties are difficult to solve on the single-board computer. As microcomputers are used more and more widely, many units have a microcomputer system with more functions. To this end, if the single-chip microcomputer and the microcomputer system CPU model, then the microcomputer system and single-board computer on-line communication, so that the application on the single-board computer system using the software and hardware resources to debug good , And then transfer the debugged application program to the single-board computer through the hot line or the solid-state EPROM of the single-board computer. Therefore, the designer can conveniently debug the program and greatly shorten the software development cycle. For this reason we have carried on the on-line communication on BCM Ⅱ microcomputer system and μC-Z80 single board machine. Both machines have a Z80 CPU.