登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

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

  • xiangweiji
    使用51单片机设计的相位计,并有毕业设计论文。(Use of 51 single-chip design phase meter, and a graduation thesis.)
    2013-09-26 14:11:33下载
    积分:1
  • LQ-XS128-OLED
    飞思卡尔比赛资料,不怎么样,大家看看就算了(Freescale game data, not very good, take a look even if the)
    2012-10-29 20:07:51下载
    积分:1
  • Traffic-signal-program
    交通信号机两相位配时程序,可按键调配时。(Traffic signal machine two phase timing program, you can use the button to adjust the time.)
    2016-07-18 22:23:41下载
    积分:1
  • AutoConnect
    自动寻找指定WIFI ssid并填入密码,自动打开wifi连上网。(Automatically find WIFI specified ssid and fill in the password, automatically open WIFI even surf the Internet.)
    2013-12-27 10:44:31下载
    积分:1
  • cloud_APB
    automatic protocol blocker dotnet coding
    2014-02-22 21:40:32下载
    积分:1
  • pic自学笔记
    自主学习PIC芯片,此书主要讲PIC16F877(Self-learning PIC chip, this book mainly talks about PIC16F877)
    2020-06-17 01:00:02下载
    积分:1
  • 汉字点阵显示2
    说明:  基于KEIL和proteus联合实现汉字以点阵形式显示(Display Chinese characters in lattice form based on keil and Proteus)
    2019-12-13 19:25:38下载
    积分:1
  • PT22726
    For this project you need a 3.7v power supply that prepared by LM317 regulator. So you need MAX232 for connect uart to pc .my AVR chip project is Mega8 that you can program on any Avr chip have 2kbyte rom. In bascom spi hardware don’t work correct, so I have to software spi ,but the software spi configure have low speed into hardware spi.
    2009-12-03 09:04:46下载
    积分:1
  • Text2
    STC 51系列单片机实现PWM,由P1口输出其波形9+(STC 51 Series MCU PWM, the output of its mouth by the P1 waveform 9+)
    2007-09-24 09:04:07下载
    积分:1
  • xfs_file
    Locking primitives for read and write IO paths to ensure we consistently use and order the inode->i_mutex, ip->i_lock and ip->i_iolock.
    2015-06-12 18:15:50下载
    积分:1
  • 696524资源总数
  • 103945会员总数
  • 46今日下载