登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

于 2008-05-07 发布 文件大小:3KB
0 198
下载积分: 1 下载次数: 127

代码说明:

  很完整的51串口程序 包括如下: 串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理 出入均设有缓冲区,大小可任意设置。 可供使用的函数名: char getbyte(void) 从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。 getline(char idata *line, unsigned char n) 获取一行数据回车结束,必须定义最大输入字符数 putbyte(char c) 放入一个字节到发送缓冲区 putbytes(unsigned char *outplace,j) 放一串数据到发送缓冲区,自定义长度 putstring(unsigned char code *puts) 发送一个定义在程序存储区的字符串到串口 puthex(unsigned char c) 发送一个字节的hex码,分成两个字节发。 putchar(uchar c,uchar j) 输出一个无符号字符数的十进制表示,必须标示小数点的位置,自动删除前面无用的零 putint(uint ui,uchar j) 输出一个无符号整型数的十进制表示,必须标示小数点的位置,自动删除前面无用的零 delay(unsigned char d) 延时n x 100ns putinbuf(uchar c) 人工输入一个字符到输入缓冲区 CR 发送一个回车换行(err)

文件列表:

serial program for 51.c

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

发表评论

0 个回复

  • jinl
    学4年来做过的竞赛以及老师的科研项目所积累下来的c51源代码,一共有40(4 years of study done as well as the Teacher of the competition accumulated research c51 source code, a total of 40)
    2009-04-03 14:08:38下载
    积分:1
  • square
    pwm方波控制仿真 通过仿真输出方波pwm 并输出正弦波 谢谢(PWM square wave control simulation by simulation output square wave and sine wave output for PWM)
    2021-04-07 16:09:01下载
    积分:1
  • STM32FATFS文件系统实验
    说明:  单片机STM32103RCT6,GD32F103RCT6,程序管脚都兼容,采集16通道的ADC数据,通过FATFS文件管理系统将数据存储到SD卡。(Stm32103rct6 and gd32f103rct6 are single-chip computers. The program pins are compatible. The ADC data of 16 channels are collected and stored in SD card through FatFs file management system.)
    2019-11-04 17:51:47下载
    积分:1
  • AN302
    application note analog devices
    2013-09-04 09:16:03下载
    积分:1
  • jc-12c5x
    PIC12C5X系列单片机应用手册,详细介绍了,硬件结构,软件开发,应用实例等(PIC12C5X Series Singlechip manuals and detailed introduction, the hardware structure, software development, application examples, etc.)
    2008-03-13 09:48:06下载
    积分:1
  • Research-of-PMSM--Control
    文以永磁同步电机为对象,采用矢量控制方案,首先我们研究了基于PI 的控制算法,在仿真基础上指出了PI 算法存在的一些不足。 在此基础上我们研究了基于扩张状态观测器(ESO)前馈补偿和线性比例反馈控制的永磁同步电机速度环控制算法, (Taking PMSM as the controlled plant, this paper studies the control system based on vector control, first, the servo control scheme based on PI control law is studied. Some limitations of PI based control scheme are pointed out. )
    2011-05-11 10:59:01下载
    积分:1
  • 2621-app_GmVGA
    Genesis GM2621 LCD monitor source code. Support from VGA up to SVGA 1280x1024 resoulution .
    2009-06-07 21:52:36下载
    积分:1
  • Multiple-18b20-
    利用单片机控制多个18b20,并将温度显示在1602 LCD上面(SCM control multiple 18b20, and in 1602 LCD temperature display above)
    2014-05-27 14:20:30下载
    积分:1
  • daolupu
    汽车道路谱的测试与相关的数据处理技术研究(Research on the technology of the measurement of the road spectrum of the automobile and the related data processing technology)
    2015-06-02 11:42:26下载
    积分:1
  • D-S-Information-Fusion-for-MATLAB
    基于D-S证据推理的多传感器数据融合方法(Reasoning based on D-S multi-sensor data fusion method)
    2014-11-15 17:17:56下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载