登录
首页 » c » 串口高速接收命令

串口高速接收命令

于 2022-07-12 发布 文件大小:1.92 kB
0 82
下载积分: 2 下载次数: 1

代码说明:

1. //加入以下代码,支持printf函数,而不需要选择use MicroLIB   #if 1 #pragma import(__use_no_semihosting)              //标准库需要的支持函数                  struct __FILE  {  int handle;  };  FILE __stdout;        //定义_sys_exit()以避免使用半主机模式     void _sys_exit(int x)  {  x = x;  }  //重定义fputc函数  int fputc(int ch, FILE *f) {  while((USART1->SR&0X40)==0);//循环发送,直到发送完毕    USART1->DR = (u8) ch;       return ch;

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

发表评论

0 个回复

  • usb串口10通道ad值上传
    ADC多通道采集的代码,放到这里数据总是串行,ADC没有重复采集10次,发现采集结果和10次求平均值效果不相上下。
    2022-08-22 02:18:34下载
    积分:1
  • MODBUS_RTU
    仪器仪表MODBUS RTU 协议,里面对每一帧含义进行了解释标识与举例。(Instrumentation MODBUS RTU protocol, in the face of each frame in meaning explained with an example )
    2013-11-29 08:29:51下载
    积分:1
  • c_cPPfor-help
    关于标准c/c++的帮助文档 有一些简单的帮助文档可供参考或查询(A standard c/c++ help documentation)
    2014-06-10 19:55:10下载
    积分:1
  • matlab编程
    说明:  程序mtlab中的代码-地震波反应谱与时程波相互转换(Interconversion between seismic response spectrum and time-history wave)
    2021-01-18 20:28:43下载
    积分:1
  • STM32-CC1101无线(收发已调通)
    STM32单片机做主控,与CC1101无线收发器通信的例子
    2022-07-16 18:13:57下载
    积分:1
  • Maze-code
    以一个m×n的长方阵表示迷宫,0和1分别表示迷宫中的通路和障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。首先用二维数组存储迷宫数据,迷宫数据由用户输入。一个以链表作存储结构的栈类型,然后编写一个求解迷宫的递归或非递归程序。求得的通路以三元组(i,j,d)形式输出,其中:(i,j)指示迷宫中的一个坐标,d表示走到下一坐标的方向(东、南、西、北四个方向所用代表数字,自行定义) (With an m × n the long square maze, 0 and 1, respectively maze of pathways and obstacles. Design a program, for any set of the maze, find a path from the inlet to the outlet, or come to the conclusion there is no path. First of a two-dimensional array to store the data maze, maze data input by the user. A linked list storage structure for stack type, and then write a recursive or non-recursive solving the maze procedure. Obtained access to triples (i, j, d) in the form of output, of which: (i, j) indicates the maze of a coordinate, d represents the coordinates walked next direction (east, south, west, north four directions used on behalf of a digital, self-defined))
    2014-01-20 15:41:40下载
    积分:1
  • 基于CubeMX 5.6.1的TouchGFX移植教程
    2023-08-12 22:30:04下载
    积分:1
  • icc
    ic读写源代码,创建文件、读、写等功能的简单实现。(Source code of IC card IO)
    2010-05-21 14:28:14下载
    积分:1
  • myStepMotor
    说明:  使用proteus搭建的基于51单片机的步进电机控制系统,软件部分使用keil,C语言(The stepper motor control system based on 51 single chip microcomputer is built by Proteus and programmed with keil c language)
    2020-07-08 17:32:50下载
    积分:1
  • usb_dev_audio
    This is LM3S9B92 Sample Code data
    2012-11-11 17:31:22下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载