文件名称:tx
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 虾*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
通信协议: 第1字节,MSB为1,为第1字节标志,第2字节,MSB为0,为非第一字节标志,其余类推……,最后一个字节为前几个字节后7位的异或校验和。
测试方法:可以将串口调试助手的发送框写上 95 10 20 25,并选上16进制发送,接收框选上16进制显示,如果每发送一次就接收到95 10 20 25,说明测试成功。
//这是一个单片机C51串口接收(中断)和发送例程,可以用来测试51单片机的中断接收
//和查询发送,另外我觉得发送没有必要用中断,因为程序的开销是一样的-Communications protocol: the first one byte, MSB is 1, for the first signs one-byte, 2 bytes, MSB is 0, non-first byte marks, and the rest and so on ... ..., the last byte words for the former Day 7 XOR the checksum. Test Methods: Serial debugging assistant can send the Writing on the box 95 10 20 25, and 16 M on the election sent, received on 16 M框选shows that if every one on the receiver to send 95 10 20 25 on the test Succeed.// This is a C51 single-chip serial reception (disruptions) and send routine can be used to test the suspension of 51 single-chip receiver// and query sent, I also feel that there is no need to use to send interruption, because the cost of the procedure is the same as
测试方法:可以将串口调试助手的发送框写上 95 10 20 25,并选上16进制发送,接收框选上16进制显示,如果每发送一次就接收到95 10 20 25,说明测试成功。
//这是一个单片机C51串口接收(中断)和发送例程,可以用来测试51单片机的中断接收
//和查询发送,另外我觉得发送没有必要用中断,因为程序的开销是一样的-Communications protocol: the first one byte, MSB is 1, for the first signs one-byte, 2 bytes, MSB is 0, non-first byte marks, and the rest and so on ... ..., the last byte words for the former Day 7 XOR the checksum. Test Methods: Serial debugging assistant can send the Writing on the box 95 10 20 25, and 16 M on the election sent, received on 16 M框选shows that if every one on the receiver to send 95 10 20 25 on the test Succeed.// This is a C51 single-chip serial reception (disruptions) and send routine can be used to test the suspension of 51 single-chip receiver// and query sent, I also feel that there is no need to use to send interruption, because the cost of the procedure is the same as
(系统自动生成,下载前可以参看下载内容)
下载文件列表
tx.c