文件名称:PIC--RS485
- 所属分类:
- 微处理器(ARM/PowerPC等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-06-03
- 文件大小:
- 10kb
- 下载次数:
- 0次
- 提 供 者:
- X**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
//19200波特率每字符时间为572us,1.5个字符时间为858+572=1430us,3.5个字符时间为2002+572=2574us
//1.5个字符时间T1_15延时常数:(65536-T1_15)=1430,T1_15=64106=0xFA6A
//3.5个字符时间T1_35延时常数:(65536-T1_35)=2574,T1_35=62962=0xF5F2
//对某一站号发出命令后,在10ms之内没有收到正确的信息帧,认为无此站号
//用TMR0延时10ms:256*K=10000,得K=39,取预分频比为1:64,
//(256-X)×64=10000,得X=100=0x64-//19200 baud per character time 572us, 1.5 character times as 858+572 = 1430us, 3.5 character times as 2002+572 = 2574us// 1.5 character times T1_15 constant delay: (65536-T1_15) = 1430, T1_15 = 64106 = 0xFA6A// 3.5 character times T1_35 constant delay: (65536-T1_35) = 2574, T1_35 = 62962 = 0xF5F2// station number of a command is issued after 10ms the correct information is not received within the fr a me, that no such station number// using TMR0 delay 10ms: 256* K = 10000, was K = 39, to take the pre-divide ratio is 1:64,// (256-X) 64 = 10000, get X = 100 = 0x64
//1.5个字符时间T1_15延时常数:(65536-T1_15)=1430,T1_15=64106=0xFA6A
//3.5个字符时间T1_35延时常数:(65536-T1_35)=2574,T1_35=62962=0xF5F2
//对某一站号发出命令后,在10ms之内没有收到正确的信息帧,认为无此站号
//用TMR0延时10ms:256*K=10000,得K=39,取预分频比为1:64,
//(256-X)×64=10000,得X=100=0x64-//19200 baud per character time 572us, 1.5 character times as 858+572 = 1430us, 3.5 character times as 2002+572 = 2574us// 1.5 character times T1_15 constant delay: (65536-T1_15) = 1430, T1_15 = 64106 = 0xFA6A// 3.5 character times T1_35 constant delay: (65536-T1_35) = 2574, T1_35 = 62962 = 0xF5F2// station number of a command is issued after 10ms the correct information is not received within the fr a me, that no such station number// using TMR0 delay 10ms: 256* K = 10000, was K = 39, to take the pre-divide ratio is 1:64,// (256-X) 64 = 10000, get X = 100 = 0x64
(系统自动生成,下载前可以参看下载内容)
下载文件列表
RS485_877A1.C
RS485_877A1.hex
RS485_688a.C
RS485_688a.hex