文件名称:ASKdecoder
介绍说明--下载内容来自于网络,使用问题请自行百度
通用ASK信号解码接收程序
1. 接收数据位数最多为40(5*8)位.
2. 由定时器对time进行渐增,在TCC中断程序中加入\"INC TIME\".
3. 宽脉冲最大允许时间和最小允许时间的计算方式:
脉冲允许时间=TCC 中断时间(us)*设定数据
4. 在接收到完整的数据后建立rx_data_ok标志.
5. 该子程序由主程序调用.
6. 数据格式:rx_data5.7为最高位,rx_data1.0为最低位.
7. 主程序在收到完整的数据后应清空接收数据缓冲区后,才能调用再次接收.
-General ASK signal decoder to receive a procedure. The median receive data up to 40 (5 * 8) spaces. 2. From Timer right time for incremental, TCC interruption in the process of accession to the "TIME INC.." 3. Pulse width and the maximum allowable time to the minimum allowed time formula : Pulse allow time = TCC interruption time (us) * 4 data set. When the integrity of the data after the establishment of rx_ data_ok signs. 5. The subroutine call by the main program. 6. Data formats : rx_data5.7 highest spaces rx_data1.0 minimum spaces. 7. in the main program received complete data should be emptied after receipt of the data buffer can be called again to receive.
1. 接收数据位数最多为40(5*8)位.
2. 由定时器对time进行渐增,在TCC中断程序中加入\"INC TIME\".
3. 宽脉冲最大允许时间和最小允许时间的计算方式:
脉冲允许时间=TCC 中断时间(us)*设定数据
4. 在接收到完整的数据后建立rx_data_ok标志.
5. 该子程序由主程序调用.
6. 数据格式:rx_data5.7为最高位,rx_data1.0为最低位.
7. 主程序在收到完整的数据后应清空接收数据缓冲区后,才能调用再次接收.
-General ASK signal decoder to receive a procedure. The median receive data up to 40 (5 * 8) spaces. 2. From Timer right time for incremental, TCC interruption in the process of accession to the "TIME INC.." 3. Pulse width and the maximum allowable time to the minimum allowed time formula : Pulse allow time = TCC interruption time (us) * 4 data set. When the integrity of the data after the establishment of rx_ data_ok signs. 5. The subroutine call by the main program. 6. Data formats : rx_data5.7 highest spaces rx_data1.0 minimum spaces. 7. in the main program received complete data should be emptied after receipt of the data buffer can be called again to receive.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ASKdecoder.c
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.