登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

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

  • OpenSees_frame_rubber
    考虑橡胶隔震的动力计算,大神的程序,有需要的可以参考下(Consider rubber isolation of computing power, the god of the program, there is a need can refer)
    2016-10-03 21:01:42下载
    积分:1
  • ML5238
    多节锂电池保护原理图,可支持多节电池组保护。可实现软件控制。(Multi lithium battery protection schematics, supports multi-cell battery pack protection. Software control can be achieved.)
    2020-12-14 18:29:13下载
    积分:1
  • SATA
    sata schemtic that designe in protel dxp
    2013-01-25 03:02:39下载
    积分:1
  • TFT480800-32-initial-code
    Himax LCD Initialization code
    2011-06-23 18:44:55下载
    积分:1
  • RF-100_IC_Reader_c.dos1
    RF-100非接触式IC卡读写器c.dos例程(RF-100 non-contact IC card reader c.dos routines)
    2011-10-08 09:14:06下载
    积分:1
  • RC522-SPI
    RC522 SPI接口的51单片机程序例程(RC522 SPI)
    2014-02-13 01:17:27下载
    积分:1
  • ISO 11898-1协议(1)
    ISO是世界性的标准化组织,主要任务是制定国际标准,协调世界范围内的标准化工作,与其他国际性组织合作研究有关标准化问题。IS0 11898由以下部分组成:(ISO is a worldwide standardization organization. Its main task is to formulate international standards, coordinate standardization work worldwide, and cooperate with other international organizations to study standardization issues)
    2020-06-22 17:40:02下载
    积分:1
  • Myfly_IMU6050_ZI_250_yaokong
    本人做的四旋翼飞行器源码,这个是纯遥控版,可以实现稳定飞行,内含mpu6050,5883l,等传感器驱动,以及四元数姿态解算,和PID,以及遥控的解锁上锁等(I do four rotorcraft source, this is a pure version of the remote control, you can achieve a stable flight, containing mpu6050,5883l, and other sensor-driven, and quaternion attitude solution, and PID, and a remote unlock locked, etc.)
    2016-03-02 09:05:54下载
    积分:1
  • emWin522(uCGUI)图形用户接口移植实例
    如题所示,用于EMWIN5.22版本的开发需求,和一个比较有用的开发实例(As shown in the title, the development requirements for EMWIN version 5.22 and a more useful development example)
    2020-06-20 00:00:02下载
    积分:1
  • cc1120
    说明:  CC1120 芯片的收发驱动程序,STM32,STC8051,ATSAM21.测试通过,已运用到产品上。(CC1120 chip driver, STM32, STC8051, ATSAM21. passed the test, has been applied to the product.)
    2020-09-19 11:27:57下载
    积分:1
  • 696522资源总数
  • 104049会员总数
  • 30今日下载