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

STM32发送接收中断方式

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

代码说明:

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

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

发表评论

0 个回复

  • SolarLib_IQ
    TI公司针对光伏逆变器的数字开发,提供的函数库,包含了单相三相光伏发电所需要的基本程序,文档说明非常详细(TI' s PV inverter development for digital, libraries provided, comprising a basic program Single phase photovoltaic power generation needs, very detailed documentation)
    2017-01-02 17:35:44下载
    积分:1
  • DSP2812_I2C
    TMS320F2812 使用GPIO口进行模拟I2C功能(TMS320F2812 use of GPIO port simulation I2C function)
    2013-08-24 10:49:35下载
    积分:1
  • seismic
    内含五个程序 1.zoeppritz Aki K I 和Richards P G的纵波近似程序 2.地震记录合成程序 3.大地电磁一维正演程序 4.雷克子波合成程序 5.地震反射系数生成程序(1.zoeppritz Aki KI and Richards PG longitudinal wave approximation procedures 2. Seismogram synthesis program 3. Magnetotelluric one-dimensional forward modeling program 4. Ricker wave synthesis procedure 5. Seismic reflection coefficient generator)
    2013-11-23 20:50:58下载
    积分:1
  • C# DataGridView初级操作范例
    这是一个C# DataGridView初级操作范例,演示了连接数据库、读取数据库、移动数据库指针到下一条、上一条记录的操作,以及将数据绑定到DataGridView控件中显示的整个过程,比较基础级的C#源码,因此希望新手参考:   private void shippersDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e)   {//如果错误发生在提交操作过程中,则在 MessageBox 中显示该错误    if (e.Exception != null && e.Context == DataGridViewDataErrorContexts.Commit)    {//测试时在Phone列中输入一个超长的字符串    MessageBox.Show(e.Exception.Message, "信息提示", MessageBoxButtons.OK);    }   }
    2022-01-22 02:28:43下载
    积分:1
  • 19264农历带24节气
    说明:  19264液晶时钟,带按键,两页显示,带闹铃,带农历属相,二十四节气显示,功能非常全(24 solar terms with lunar week alarm)
    2021-01-30 17:28:40下载
    积分:1
  • 11.指纹密码锁
    说明:  单片机设计指纹密码锁,需要的可自行下载。(Single-chip design fingerprint lock, the need can be downloaded by yourself)
    2020-12-08 21:06:38下载
    积分:1
  • GCCMD_OCRr
    图形文字识别(OCR)是常用的东西。许多程序员都想在自己的程序中嵌入OCR的识别模块。但是,用别人的—要价太高;自己做—难度太大。其实微软早在Office2003中推出了一个OCR模块,对中文有很好的的支持(不亚于国内的一个品牌产品)。可能有许多人都注意到这个好东西了,但是MS_OCR在VC++上的接口和用法一直没见披露。笔者在这里发布一个用MS_OCR做的示范程序,大家试试,识别能力还不错,并且支 (Graphic character recognition (OCR) is a common thing. Many programmers want the embedded OCR recognition module in your own programs. However, use someone else' s- the asking price is too high do- too difficult. In fact, Microsoft had launched in Office2003 an OCR module, the Chinese have good support (as much as a brand product). There may be many people are aware of this good thing, but the MS_OCR in VC++ on the interface and usage has not seen the disclosure. I published here a demonstration program with MS_OCR do, we try pretty good ability to identify and support)
    2012-07-26 11:15:20下载
    积分:1
  • datastructure
    计算多项式的算法 数据结构计算多项式的加减发和乘法(data structure)
    2009-11-12 21:28:18下载
    积分:1
  • 87436705longgekutafahelongbeigesuanfa
    数值分析中常用的几个算法,可以稍微改变在MATLAB中运行哦(numerical analysis of several commonly used algorithms can be changed slightly in MATLAB operation oh)
    2006-12-30 14:41:54下载
    积分:1
  • fit
    基于Levenberg-Marquardt的曲线/面拟合(C library for Levenberg-Marquardt least-squares minimization and curve fitting)
    2014-02-14 04:20:28下载
    积分:1
  • 696518资源总数
  • 105918会员总数
  • 20今日下载