文件名称:485-502demo
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 30kb
- 下载次数:
- 0次
- 提 供 者:
- 罗**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
此程序是RS485从机通讯,包含3部分:接收帧程序、发送帧程序及执行命令程序。
从机通讯地址从地址开关读取4位
由于485的通信规约差别很大,这里只是提供参考,具体请参照自己的项目特点做修改,抛砖引玉。
#include<reg52.h>
#include<main.h>
#include<hy502.h> -this procedure is RS485 communications from the plane, contains three parts : a receiving fr a me procedures, Send fr a me procedures and procedures for the enforcement of the order. Communication from the address from the address switch read four of the 485 due to communication protocol vary greatly, the reference here is, Please refer to their specific project features modified to congregate.# Include
从机通讯地址从地址开关读取4位
由于485的通信规约差别很大,这里只是提供参考,具体请参照自己的项目特点做修改,抛砖引玉。
#include<reg52.h>
#include<main.h>
#include<hy502.h> -this procedure is RS485 communications from the plane, contains three parts : a receiving fr a me procedures, Send fr a me procedures and procedures for the enforcement of the order. Communication from the address from the address switch read four of the 485 due to communication protocol vary greatly, the reference here is, Please refer to their specific project features modified to congregate.# Include
(系统自动生成,下载前可以参看下载内容)
下载文件列表
485-502demo
...........\HY502.h
...........\main.c
...........\main.h
...........\main.LST
...........\main.OBJ
...........\REG52.H
...........\RS485
...........\RS485.lnp
...........\RS485.M51
...........\RS485.Opt
...........\RS485.plg
...........\RS485.Uv2
...........\RS485_Opt.Bak
...........\RS485_Uv2.Bak
...........\HY502.h
...........\main.c
...........\main.h
...........\main.LST
...........\main.OBJ
...........\REG52.H
...........\RS485
...........\RS485.lnp
...........\RS485.M51
...........\RS485.Opt
...........\RS485.plg
...........\RS485.Uv2
...........\RS485_Opt.Bak
...........\RS485_Uv2.Bak