登录
首页 » c » STM32发送接收中断方式

STM32发送接收中断方式

于 2022-02-09 发布 文件大小:1.74 kB
0 168
下载积分: 2 下载次数: 1

代码说明:

常规串口发送没有采用中断方式,发送比较耗时。例如9600波特率,发送接近1k的数据需要耗时1秒,意味着这一秒main函数的内容都无法执行,对于通信比较多的程序而言,非中断方式是致命的。采用中断方式可以将方送接收时间忽略,不影响main运行。本程序需要一个定时器调度,可以按帧(即使没有任何标识符来区分)区分数据,帧与帧是按时间来区分的,时间间隔可以在定时器或计计数器变量修改,时间越短效率愈高,过高也会出错,把一帧数据当成多帧数据,使用时注意。

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

发表评论

0 个回复

  • vc
    说明:  用数组和结构体实现保存文件,录入内容为所有同学的学号、姓名、语文成绩和数学成绩(Structure with the array and achieve the goal of preserving documents, recording the content for all students of the school number, name, language and mathematics achievement)
    2009-04-29 08:42:52下载
    积分:1
  • Calling-Matlab
    Before running this example, you should modify your TRNSYS DLL to include Type155 and the required Matlab libraries, as described in the Type155
    2020-10-30 14:49:55下载
    积分:1
  • WPF 3D图片浏览墙
    WPF 3D图片浏览墙
    2015-01-22下载
    积分:1
  • Voronoi图的生成
    利用Delaunay数据结构,代表当前数据的一个且仅有一个的三角剖分,详情请参考CGAL_manual,在CGAL中有关于这方面代码的源代码,给出了相关文件
    2023-07-09 09:15:03下载
    积分:1
  • S8550
    三极管S8550的数据手册,英文版本的,应用的范围广,可以在很多电路中应用(audion)
    2009-09-16 18:42:05下载
    积分:1
  • 网络信息采集
    网络采集器,采集网站信息,配置正则表达式,抓取网页节点内容。
    2023-04-20 17:15:04下载
    积分:1
  • congji
    实现声音导引小车运动,智能小车程序C51代码(Achieve sound AGV Sport, smart car program code C51)
    2013-08-09 14:45:30下载
    积分:1
  • The-SCM-speed-measurement-procedures
    一种基于AT89S52单片机的光电开关转速测量系统的设计。系统采用反射式光电开关产生与齿轮相对应的脉冲信号,使用AT89S52单片机采样脉冲信号并计算每分钟内脉冲信号的数目,即电机对应的转速值,最终系统通过数码管实时显示电机的转速值(A photoelectric switch based on AT89S52 Microcontroller speed measurement system design. The system uses a reflective photoelectric switch with the gear corresponding to the pulse signal, the microcontroller AT89S52 sampling pulse signal and calculate the number of pulse signals per minute, the motor speed value corresponding to the final system in real time by digital tube display the value of the motor speed)
    2012-06-02 17:04:50下载
    积分:1
  • CreateDll
    创建c++动态链接库,注意模块文件的应用,怎么调用动态链接库(Create c++ dynamic link library module files the application note, how to call a dynamic link library)
    2015-05-05 14:04:52下载
    积分:1
  • 直方图均衡化
    在VS2013+openCV平台运行,只要对图像进行均衡化,像素均衡,零度均衡,试图像像素分布均匀,使图像更加清晰,细节突出
    2022-03-21 23:48:19下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载