登录
首页 » Com Port » 这是一段c51编的一段有关串口通讯的代码

这是一段c51编的一段有关串口通讯的代码

于 2022-03-30 发布 文件大小:3.00 kB
0 180
下载积分: 2 下载次数: 1

代码说明:

这是一段c51编的一段有关串口通讯的代码-This is a decoder for the series of the serial communications code

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这是一个多线程实现的串口通信类,学习multith…
    这是一个多线程实现的串口通信类,对学习多线程编程以及串口通信有用,可以直接使用,也可以修改加入自己的应用,很方便-This is a multithreaded achieve the serial communication class, to learn multithreaded programming and serial communication useful, can be used directly, can also modify to their own use, convenient
    2023-06-12 00:15:03下载
    积分:1
  • 本人在公司的一个项目中所开发的基于无刷直流伺服电机的运动程序,可以精确定位电机的位置...
    本人在公司的一个项目中所开发的基于无刷直流伺服电机的运动程序,可以精确定位电机的位置-I am in the company developed a project based on brushless DC servo motor sports program, you can pinpoint the location of motor
    2022-08-07 15:12:02下载
    积分:1
  • err
    Evc 4.0写的,关于wince 串口通讯程序,通讯规约遵循dl/t645-err
    2022-01-26 03:40:13下载
    积分:1
  • 模拟屏驱动,含DDE连接,Access数据库定义了地址
    模拟屏驱动,含DDE连接,Access数据库定义了地址-screen simulation-driven, with DDE link, Access database definition of the address
    2023-02-05 21:45:04下载
    积分:1
  • 从串口读取数据,有两种方法,1、每接收一个EV_RXCHAR,就用ReadFile读一次,这样我觉得太恐怖了。2、接收到一个EV_RXCHAR后,等一定数据量的...
    从串口读取数据,有两种方法,1、每接收一个EV_RXCHAR,就用ReadFile读一次,这样我觉得太恐怖了。2、接收到一个EV_RXCHAR后,等一定数据量的CPU周期(GetTickCount),再一次性读取缓冲区里的数据。这样做,一般情况下不会有问题,但是,如果数据很多,过了“一定数据量的CPU周期”,还没收完数据怎么办?就会少读数据了。 我用三个线程序来完成串口数据的接收,其实就是第一种方法的变种: 一个侦听EV_RXCHAR,一个对EV_RXCHAR进行分析,其实就是超时判断。如果接收到一个消息后,一段时间没收到下一个EV_RXCHAR,就认为是一个数据包的结束。这个线程就会通知数据接收线程,进行数据接收。一般同一包数据,两个字符之间的时间间隔,应该很小了吧,而两个数据包之间的间隔,应该不会太小吧!(这个地方我不清楚,猜的:( :) )最后一个线程,是接收数据的。-read data from the serial port, there are two methods, one, each receiving a EV_RXCHAR, on the ReadFile read, I think this vote. 2, received a EV_RXCHAR after a certain volume of data, such as CPU cycles (GetTickCount), and the one-time reader, the data buffer. To do so, under normal circumstances there is no problem, but if many of the data, and after a "certain amount of data the CPU cycles," also confiscated End Data how do? Few will read the data. I used three lines to complete serial data reception, the first method is a variant : an interception EV_RXCHAR, one pair of EV_RXCHAR analys
    2023-03-23 09:55:03下载
    积分:1
  • procedures for the Serial debugging software very well. Can send TXT documents,...
    本程序为串口调试软件很好的。可以传送TXT文件,和HEX文件,还可以自动发送。-procedures for the Serial debugging software very well. Can send TXT documents, and HEX files and also automatically send.
    2022-11-18 04:10:03下载
    积分:1
  • with Serial Communication Control
    用控件实现串口通信-with Serial Communication Control
    2023-05-29 06:00:03下载
    积分:1
  • 很好的东东,有详细的文档介绍,适合于串口通信的初学者。
    很好的东东,有详细的文档介绍,适合于串口通信的初学者。-good Dongdong, a detailed document, suitable for serial communication beginners.
    2022-01-26 08:21:23下载
    积分:1
  • rs232.cpp和RS232串行端口通信。H
    RS232.cpp and RS232.h for Serial COM Port Communication
    2022-04-12 15:24:43下载
    积分:1
  • 一个简单实用的串口类,用起来非常方便。直接使用类。
    一个简单实用的串口类,用起来非常方便。直接使用类。-a simple and practical serial category, and it is very convenient. Direct use category.
    2022-02-21 14:17:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载