登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

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

  • AD7991Test
    ad7991测试程序,需要自己填写控制字(ad7991 testing procedures need to fill their own control word)
    2016-02-27 21:41:50下载
    积分:1
  • STM32f103_acim_FOC
    基于st的m3单片机STM32f103 矢量控制 驱动交流异步电机的源程序(St m3 SCM STM32f103 vector control drive of the source of the AC induction motor)
    2012-08-04 17:15:31下载
    积分:1
  • pic自学笔记
    自主学习PIC芯片,此书主要讲PIC16F877(Self-learning PIC chip, this book mainly talks about PIC16F877)
    2020-06-17 01:00:02下载
    积分:1
  • danpianjiLCDshuzhiceshiyi
    项目16 基于单片机LCD数字测速仪的设计 使用C++程序编程(Item 16 LCD digital speedometer on chip design using C++ programming)
    2011-06-29 08:58:27下载
    积分:1
  • MCU_JPEG
    MCU图片解码,使用STM32对JPEG图片解码,(STM32 JPEG decoder code,)
    2013-11-03 20:09:53下载
    积分:1
  • NCDCcurrentsource
    采用51系列单片机为控制核心,包括电源变换处理及分配模块,恒流源模块,单片机主控模块,键盘输入模块,LCD显示模块,数模/模数转换模块,语音模块和实时时钟模块的9个部分。通过键盘设定好需要输出的电流值后,单片机对设定值按照一定的算法进行处理,经数模输出电压控制恒流源电路输出相应的电流值(51 Series single-chip microcomputer used for the control of the core, including the processing and distribution of power transform module, constant current source module, single-chip control module, the keyboard input module, LCD display module, digital-to-analog/analog-digital conversion module, voice module and real-time Clock Module Part 9. Through the keyboard need to set output current value, single-chip microcomputer according to the settings of the algorithm processing, digital-to-analog output voltage by the control constant current source circuit output current value of the corresponding)
    2009-04-21 00:14:12下载
    积分:1
  • DDS
    说明:  STM32控制DDS输出正弦波等波形,频率幅值可调。(STM32 control DDS output sine wave waveform, adjustable frequency amplitude.)
    2020-06-20 18:40:02下载
    积分:1
  • tempratrue
    工业中实时温度曲线显示仿真程序,采用了第三方控件,提出来大家一起研究。(tempratrue)
    2009-09-24 22:38:47下载
    积分:1
  • RMAA
    电子爱好者们经常希望测试自己的音频设备如声卡、碟机、功放、音箱等的性能指标,却苦于没有价格高昂的专业测试设备而无从下手,设计制作时也无法进行必要的测试指导。有些CD碟提供了测试信号,如著名的“雨果发烧碟(一)”、“My Disk”等,《无线电》也曾推出音频测试CD。但CD信号的精度有限,而且没有操作系统的配合,测量、记录和分析都很不方便。(Electronic fans often want to test their audio devices such as sound cards, CD, amplifier, speakers and other performance indicators, but have no specialized test equipment without the high price the start, can not carry out the necessary tests to guide the design of production. Some CD discs provide a test signal, such as the famous Hugo Audiophile CD (a) , My Disk and so on, Radio has launched an audio test CD. CD signal but the accuracy is limited, and there is no tie, measurement, recording and analysis of the operating system is very inconvenient.)
    2021-04-26 10:28:45下载
    积分:1
  • Character-code-tools
    1.可以自动生成十六进制字编码。 2.可以自动C语言格式字符编码。 3.支持GBK和ASCII字符编码查询。(1 can automatically generate a hexadecimal character encoding. 2 can automatically format the C language character encoding. 3 support GBK and ASCII character encoding query.撤消修改)
    2014-01-04 16:42:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载