APP下载

双机并口双工通信的设计与实现

2017-04-26汤浩霖

电脑知识与技术 2017年6期
关键词:信号

汤浩霖

摘要:并行数据传输是以计算机字长为单位的,适合微机与外部设备或微机与微机之间高速、近距离的通信。并行接口芯片8255A具有通用性强且使用灵活的特点,CPU可通过该芯片直接与外设相连接。该文从硬件设计与软件设计两方面进行了详细的阐述,主要利用并行接口芯片8255A设计了两台微机之间的双工通信接口电路,同时设计了双机的通信程序,实现了双机通过并口的双工通信。

关键词:双机并口通信;双工;8255A

中图分类号:TP393 文献标识码:A 文章编号:1009-3044(2017)06-0069-03

Abstract: The parallel data transmission is based on the computer word as a unit, suitable for high speed and short distance communication between the computer and the external device or computer with computer.The parallel interface chip 8255A has the characteristics of high universality and flexibility, and CPU can be connected directly with the peripheral devices. This paper gives a detailed exposition from two aspects of hardware design and software design, the main use of the parallel interface chip 8255A duplex communication interface circuit between two computer design, while the design of machine communication procedures, realizes the double duplex communication through parallel port.

Key words: dual parallel communication; duplex; 8255A

隨着时代的发展与科技的进步,微型计算机的使用日益普及,愈来愈多的人使用微机来工作或者学习。在我们的日常工作或学习之中,计算机设备间的信息交换是必不可缺的。计算机系统的信息交换方式有并行数据传输方式和串行数据传输方式这两种。其中,并行数据传输通常是以计算机的字长(常见有8位、16位或32位)为传输单位的,在一次传输过程中传输的数据长度为一个字长,因为多位数据一起传输,所以并行具有传输速度快的优点。8255A是与因特尔公司的微处理器配套的通用可编程并行接口芯片,因8255A具有通用性强、使用灵活的特点,具有广泛的应用。本文主要利用并行接口芯片8255A设计了两台微机之间的双工通信接口电路,并在接口电路的基础之上,设计了双机的通信程序,实现了双机通过并口的双工通信。

1 双机通信基本设计功能

使用两台微机通过两片并行接口芯片8255A进行双机通讯。……

登录APP查看全文

猜你喜欢

信号
信号
完形填空二则
7个信号,警惕宝宝要感冒
孩子停止长个的信号
《铁道通信信号》订阅单
基于FPGA的多功能信号发生器的设计
基于Arduino的联锁信号控制接口研究
《铁道通信信号》订阅单
基于LabVIEW的力加载信号采集与PID控制
Kisspeptin/GPR54信号通路促使性早熟形成的作用观察