文件名称:tx
介绍说明--下载内容来自于网络,使用问题请自行百度
通信协议: 第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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.