文件名称:mcucom
介绍说明--下载内容来自于网络,使用问题请自行百度
利用方式1实现单片机双机通信,主频为6M,波特率为2400bps,电路见图5-10。当两个单片机距离较近时,甲、乙两机的发送端与接收端分别直接相联,两机共地。执行程序,甲机将亮灯信号发送给乙机,若通信正常,乙机接收到信号后点亮20个发光二极管。乙机采用查询与中断两种工作方式。当然20个LED乙机可单独控制,也可接受甲机的控制,并执行甲机指令,还需要进一步完善程序.
甲机发送程序:-Use to achieve a single-chip dual-machine communications, and frequency for the 6M, the baud rate is 2400bps, circuit see Figure 5-10. When the close proximity of the two single-chip, the A, B two planes of the sending end and receiving end were directly linked to the two aircraft were to. Implementation of procedures, a machine will light signal sent to the B machine, if the normal communication, machine B receives signal light emitting diodes 20. B machine using two types of inquiries with the interruption of work. Of course, machine 20 LED B can be individually controlled, but also acceptable to control a machine, and the implementation of a machine instruction, but also the need to further improve the process. A send process:
甲机发送程序:-Use to achieve a single-chip dual-machine communications, and frequency for the 6M, the baud rate is 2400bps, circuit see Figure 5-10. When the close proximity of the two single-chip, the A, B two planes of the sending end and receiving end were directly linked to the two aircraft were to. Implementation of procedures, a machine will light signal sent to the B machine, if the normal communication, machine B receives signal light emitting diodes 20. B machine using two types of inquiries with the interruption of work. Of course, machine 20 LED B can be individually controlled, but also acceptable to control a machine, and the implementation of a machine instruction, but also the need to further improve the process. A send process:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mcucom/2_8051/2_8051.DSN
mcucom/2_8051/2_8051.PWI
mcucom/2_8051/Last Loaded 2_8051.DBK
mcucom/2_8051/mcu1
mcucom/2_8051/mcu1.c
mcucom/2_8051/mcu1.hex
mcucom/2_8051/mcu1.lnp
mcucom/2_8051/mcu1.LST
mcucom/2_8051/mcu1.M51
mcucom/2_8051/mcu1.OBJ
mcucom/2_8051/mcu1.Opt
mcucom/2_8051/mcu1.plg
mcucom/2_8051/mcu1.Uv2
mcucom/2_8051/mcu1_Opt.Bak
mcucom/2_8051/mcu1_Uv2.Bak
mcucom/2_8051
mcucom
mcucom/2_8051/2_8051.PWI
mcucom/2_8051/Last Loaded 2_8051.DBK
mcucom/2_8051/mcu1
mcucom/2_8051/mcu1.c
mcucom/2_8051/mcu1.hex
mcucom/2_8051/mcu1.lnp
mcucom/2_8051/mcu1.LST
mcucom/2_8051/mcu1.M51
mcucom/2_8051/mcu1.OBJ
mcucom/2_8051/mcu1.Opt
mcucom/2_8051/mcu1.plg
mcucom/2_8051/mcu1.Uv2
mcucom/2_8051/mcu1_Opt.Bak
mcucom/2_8051/mcu1_Uv2.Bak
mcucom/2_8051
mcucom
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.