登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

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

  • LED
    at89c51 的跑马灯程序. 把LED灯连接到端口0然后用烧录到单片机就行了.(This is an AT89C51 LED chaser program. Connect LEDs to port 1 and then use KEIL to compile the leds1.C into a .hex file then download t to your microcontroller.)
    2009-11-21 20:49:09下载
    积分:1
  • I2C--EEPROM
    STC12C5A60S2 IIC读取EEPROM:I2C读取E2PROM(STC12C5A60S2 IIC reading EEPROM: I2C read E2PROM)
    2016-03-23 20:03:56下载
    积分:1
  • hx03uart1-Send-ok
    单片机c程序,实现数据的发送和接收。结构简单,课程设计可用(Singlechip c procedures, to achieve the sending and receiving data. )
    2013-09-25 13:20:49下载
    积分:1
  • UM0492STM32F103PMSMFOC
    是stm32关于永磁同步电机控制的中文翻译,这个在stm32上只有英文原版,这个资料来之不易。(Stm32 is about the Chinese translation of the permanent magnet synchronous motor control, this only the original English on stm32, this material has not come easily.)
    2016-07-30 09:41:37下载
    积分:1
  • kinect_playground
    说明:  一个基于kinect的鼠标小程序~~~用vs2008环境(A small program based on kinect mouse ~ ~ ~ with the vs2008 environment)
    2011-04-05 17:46:43下载
    积分:1
  • add-plus
    实现计数器加法、减法、清零电路。用7448、74ls192实现,可以仿真成功,适用于初学者。(Realization counter addition, subtraction, clear circuit. By 7448,74 ls192 achieve success can be simulated, for beginners.)
    2013-12-27 09:33:03下载
    积分:1
  • STM32F103C8T6
    STM32F103C8T6配套程序源码-红外发射和接收(945ccfdsd de d ffd ex xfe d dd)
    2021-03-19 16:09:19下载
    积分:1
  • 5_PWM_LED
    ESP8266 PWM控制一盏LED的亮度变化。(ESP8266 PWM controls the brightness change of an LED.)
    2019-03-09 08:54:53下载
    积分:1
  • USART1接
    说明:  实现串口1接受发送功能,接受和发送的波特率均为115200.使用多种接受发送模式,有自定义函数接受发送,有映射到C语言的printf发送数据,和scanf函数的映射接受字符串的功能。(make the usart1 work in stm32f103zet6,the program can make the urat receive the data at the boudrate 115200 ,send the data use the "printf" in C lib.)
    2019-11-16 23:33:39下载
    积分:1
  • TM1804-89C51
    基于TM1804和89C51的LED驱动控制程序(led control and driving)
    2021-01-24 19:38:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载