基于并行打印口的多机通讯  被引量:2

Multiple Single-Chip Communication Based on Parallel Print Port

在线阅读下载全文

作  者:宋晖[1] 

机构地区:[1]西南科技大学计算机科学学院,四川绵阳621002

出  处:《兵工自动化》2004年第6期42-43,共2页Ordnance Industry Automation

摘  要:PC 并行打印口与多台下位单片机的通讯,将接口分成数据、状态、控制三组,由其寄存器分别控制。用 C 语言函数 outportb 和 inportb 读或写寄存器,输入或输出数据。PC 通过打印机控制口与 STROBE 发送信号,译码器产生选片信号,传给单片机 P3.2 端形成中断信号。单片机经 P1.0 反馈复位信号,PC 再发送中断脉冲,直到传送结束。接着发送片选信号给第二台进行数据传送,结束后再后传下一台。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.

关 键 词:多机通讯 并行打印口 PC 单片机 

分 类 号:TP393.03[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象