PIC--RS485
所属分类:单片机开发
开发工具:C/C++
文件大小:10KB
下载次数:44
上传日期:2013-06-03 19:12:22
上 传 者:
xia870788158
说明: //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)
文件列表:
RS485_877A1.C (9598, 2009-12-29)
RS485_877A1.hex (6004, 2009-12-29)
RS485_688a.C (5234, 2009-11-01)
RS485_688a.hex (2306, 2009-11-01)
近期下载者:
相关文件:
收藏者: