登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

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

  • footprint-of-MQ-135
    这是一个气体传感器的元件封装库,型号为mq-135,使用dxp开发。(This is a gas sensor element package repository, model mq-135, using dxp development.)
    2014-05-19 13:30:31下载
    积分:1
  • 学习模板
    stm32完整的工程模板,包括所有的固件库函数以及文件,适合新手学习(STM32 complete engineering template, including all firmware library functions and files, suitable for novice learning)
    2020-06-18 19:40:01下载
    积分:1
  • dianji88997
    基于NI6221卡的电机测试控制程序,由NI6221卡发脉冲控制电机转速,再由6221卡读回电机的转速信号并显示(Motor test control program based on NI6221 card, NI6221 card issued by the pulse control of motor speed, speed signal by 6221 motor and display card back)
    2017-07-01 15:52:05下载
    积分:1
  • fan
    小家电松翰2501程序,产品已量产.放心使用(Small appliances Sonix 2501 program, the products have been mass production)
    2015-10-10 14:43:37下载
    积分:1
  • 2、独立按键
    基于51单片机的按键例程,常见问题: 1. 按键无反应 请您确认程序是否下载成功,连线正确无误,确认无误后还是无效果的话,将排线重新插拔下,单片机拿下来重新安装,重启开发板试试!(Key routines based on 51 single chip microcomputer,common problems: 1. Press the key and no response. Please confirm whether the program was downloaded successfully and the connection is correct. If it is still ineffective after confirmation, plug and unplug the cable again, take down the MCU and reinstall it. Restart the development board to try!)
    2020-06-20 17:40:02下载
    积分:1
  • STM32 硬件SPI_中文显示测试源码
    说明:  基于STM32F103的ST7735s芯片的LCD中文显示例程(LCD Chinese Display Routine Based on ST7735s Chip ST32F103)
    2020-11-16 15:29:39下载
    积分:1
  • The-analog-IO-IIC
    IO口模拟IIC(含主从代码) 利用单片机IO口模拟IIC实现通讯,可应用一起仪表通讯。(The analog IO IIC (with the main microcontroller IO port analog IIC communication from the code) Can be applied together with the instrument of communication.)
    2012-11-12 11:49:44下载
    积分:1
  • LCD
    51单片机控制12864液晶,适合初学者入门使用,简单方面,易于移植(51 12864 LCD, suitable for beginners to use, simple terms, easy to transplant)
    2013-12-16 17:02:36下载
    积分:1
  • 7746
    AD7746 用51测试来获取最小电容~(use 51 measure AD7746)
    2021-04-15 15:08:54下载
    积分:1
  • STC-GY-31颜色模块测试
    说明:  采用keil软件,采用C语言编程了TCS3200颜色模块,可以利用TCS3200识别颜色(Tcs3200 color module programming)
    2020-02-18 15:48:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载