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

基于并行打印口的多机通讯
引用本文:宋晖. 基于并行打印口的多机通讯[J]. 兵工自动化, 2004, 23(6): 42-43
作者姓名:宋晖
作者单位:西南科技大学,计算机科学学院,四川,绵阳,621002
摘    要:PC并行打印口与多台下位单片机的通讯,将接口分成数据、状态、控制三组,由其寄存器分别控制.用C语言函数outportb和inportb读或写寄存器,输入或输出数据.PC通过打印机控制口与STROBE发送信号,译码器产生选片信号,传给单片机P3.2端形成中断信号.单片机经P1.0反馈复位信号,PC再发送中断脉冲,直到传送结束.接着发送片选信号给第二台进行数据传送,结束后再后传下一台.

关 键 词:多机通讯  并行打印口  PC  单片机
文章编号:1006-1576(2004)06-0042-02
修稿时间:2004-05-10

Multiple Single-Chip Communication Based on Parallel Print Port
SONG Hui. Multiple Single-Chip Communication Based on Parallel Print Port[J]. Ordnance Industry Automation, 2004, 23(6): 42-43
Authors:SONG Hui
Abstract:For communication among parallel print port of PC and multiple single-chips, interface is divided into data, state and control groups respectively controlled by each register. Register was read or written, and data was input or output with outportb and inportb function of C language. PC sent signal via print control port and STROBE, encoder generated choosing signal and sent it to P3.2-end of single-chip to form interrupt. Single-chip sent back replacement signal through P1.0, and then PC sent again interrupt as far as transmission end. PC sent again choosing signal to second single-chip to transmit data until ended last single-chip.
Keywords:Multiple PC communication  Parallel print port  PC  Single-chip  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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