登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

于 2008-05-07 发布 文件大小:3KB
0 242
下载积分: 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 个回复

  • Runge_Kutta
    在经验PID参数下的水轮机调速系统数值仿真(龙格库塔法)(Numerical simulation (Runge-Kutta method) turbine governor systems at the experience of PID parameters)
    2015-11-07 12:18:11下载
    积分:1
  • STM32
    实现电子钟功能 ,可设置闹钟,有闹铃,可设置时间和闹钟时间(Implement electronic clock function, can set the alarm clock, alarm clock, can be set up time and clock time)
    2015-07-19 13:05:31下载
    积分:1
  • yangxiaoniu
    杨小牛大神的软件无线电,做信道化或者宽带数字接收机的可以下载(Software Radio written by XiaoNiu Yang,people who deal with channelization or wideband digital receiver can download)
    2016-08-26 16:20:21下载
    积分:1
  • 27797
    电话语音管理系统的工程项目代码,需要的请拿去使用吧,任意修改!(Telephony management system project code chunks, arbitrary changes)
    2012-04-07 16:17:46下载
    积分:1
  • shuangkui
    双馈风电机组的PSCAD模型,是通用模型,有助于帮助解决双馈风电机组建模问题(PSCAD doubly-fed motor model)
    2013-12-23 21:47:00下载
    积分:1
  • JTD
    利用单片机的定时器定时,令十字路口的红绿灯交替点亮和熄灭,实现主支路路口的交通信号灯控制(尽可能保持主线的畅通,即在通常情况下,保持主线的放行,只有在支线到达时,才放行支线),同时采用LED数码管或LCD显示倒计时时间。(The use of single-chip timer timing, make the turn at the crossroads of the traffic lights lit and extinguished achieve the main traffic lights at the junction of the slip control (as much as possible to maintain the smooth flow of the main line, that is, in normal circumstances, to maintain the main line of the release, only at Extension arrive only when the release of the Spur Line), while the use of LED digital tube or LCD display countdown time.)
    2009-03-12 22:23:43下载
    积分:1
  • key
    lpc1788 的按键状态读取控制程序 (lpc1788 key)
    2016-02-23 12:46:19下载
    积分:1
  • InterfaceAddress
    The IPv4 broadcast address, or null for IPv6.
    2014-01-06 14:46:23下载
    积分:1
  • PWM
    基于串口通信输出pwm方波用于控制电机转动速度(Output PWM square wave based on serial communication for controlling motor rotation speed)
    2020-06-18 14:00:02下载
    积分:1
  • 3100403130
    全自动洗衣机,用汇编编写。有proteus仿真,运行可用,大三单片机课程大作业(Automatic washing machine)
    2020-12-09 15:19:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载