登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

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

  • M5310
    说明:  中国移动物联网NB-IOT模块m5310的pcb封装,现成的,直接用(China Mobile NB module m5310 pcb package)
    2019-01-11 16:20:25下载
    积分:1
  • 超声波
    使用超声波模块测距,测距范围 10cm--1..2m(Using ultrasonic module to measure distance, ranging range is 10cm-1.2m.)
    2020-06-18 10:00:01下载
    积分:1
  • rs485
    通过RS485端口不停地发送数据0xaa用示波器观察RS485端口A、B信号线上的波形或者用RS485接收器接收发送的字符。(Through the RS485 port to send data continuously 0xaa observed with an oscilloscope RS485 ports A, B signal waveforms or use the RS485 line receiver sends characters.)
    2013-08-02 08:59:55下载
    积分:1
  • RINGCOUNTER
    proteus file of ring counter
    2014-01-17 15:32:15下载
    积分:1
  • juzhenjianpan0-f
    基于51单片机开发板,矩阵键盘按键在数码管上显示0~F(Based on 51 MCU development board, matrix keyboard keys on the digital display 0 ~ F)
    2013-07-10 16:50:59下载
    积分:1
  • yangxiaoniu
    杨小牛大神的软件无线电,做信道化或者宽带数字接收机的可以下载(Software Radio written by XiaoNiu Yang,people who deal with channelization or wideband digital receiver can download)
    2016-08-26 16:20:21下载
    积分:1
  • TFT240320
    TFT240320彩色液晶显示屏显示程序,库文件中定义了其常用的操作函数,可直接在主函数中调用(TFT240320 color LCD display program, the library file defines its common operating functions that can be invoked directly in the main function)
    2013-07-21 11:16:42下载
    积分:1
  • switch
    用单片机AT89S51实现的模拟开关灯系统(MCU AT89S51 realize the analog switch lamps system)
    2008-05-15 21:25:02下载
    积分:1
  • TL494-pinout
    PIN DIAGRAM FOR TL 494. IT TELLS CLEARLY HOW TO CONNECT TL 494.
    2014-10-02 16:00:45下载
    积分:1
  • 微型气象站
    平台为arduino uno r3,采集温湿度,气压、海拔、土壤湿度信息在5110屏幕上显示,并通过nrf24l01传到另外一个arduino采集板上,然后通过串口传给pc机。传感器有ds18b20,dht11,土壤湿度传感器,bmp085,显示屏为5110,一对nrf24l01。library文件夹下为所需的各种库。(The platform for Arduino uno R3, collecting temperature and humidity, air pressure, altitude, soil moisture information displayed in the 5110 screen, and through the nRF24L01 to another Arduino acquisition board, then transferred to the PC through the serial port. The sensor has DS18B20, DHT11, soil humidity sensor, bmp085, display screen is 5110, a pair of nrf24l01.Library folder is required for various libraries.)
    2017-11-15 20:24:27下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载