文件名称:PIC--RS485
-
所属分类:
- 标签属性:
- 上传时间:2013-06-03
-
文件大小:9.53kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
//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 frame, 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 frame, 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
RS485_877A1.hex
RS485_688a.C
RS485_688a.hex
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.