文件名称:mcucom
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 36kb
- 下载次数:
- 0次
- 提 供 者:
- 李**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
利用方式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
......\......\2_8051.PWI
......\......\Last Loaded 2_8051.DBK
......\......\mcu1
......\......\mcu1.c
......\......\mcu1.hex
......\......\mcu1.lnp
......\......\mcu1.LST
......\......\mcu1.M51
......\......\mcu1.OBJ
......\......\mcu1.Opt
......\......\mcu1.plg
......\......\mcu1.Uv2
......\......\mcu1_Opt.Bak
......\......\mcu1_Uv2.Bak
......\2_8051
......\......\2_8051.DSN
......\......\2_8051.PWI
......\......\Last Loaded 2_8051.DBK
......\......\mcu1
......\......\mcu1.c
......\......\mcu1.hex
......\......\mcu1.lnp
......\......\mcu1.LST
......\......\mcu1.M51
......\......\mcu1.OBJ
......\......\mcu1.Opt
......\......\mcu1.plg
......\......\mcu1.Uv2
......\......\mcu1_Opt.Bak
......\......\mcu1_Uv2.Bak