登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

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

  • Ultrasonic-range-finder
    超声波测距仪设计文档,本设计主要是以74LS04和CX20106A为测距模块,DS18B20用于温度补偿,12864液晶显示,HC-SR04为超声波显示板,语音模块由音频功率放大器LM386、语音芯片WT588D、低压差电压调节LM1117组成。(Ultrasonic range finder design documents, the design is mainly based on 74LS04 and CX20106A ranging module, DS18B20 for temperature compensation, 12864 LCD, HC-SR04 ultrasonic display boards, voice module consists of audio power amplifier LM386, voice chip WT588D, LM1117 low dropout voltage regulator components.)
    2013-11-26 21:40:18下载
    积分:1
  • AD9850-9851模块资料
    说明:  串口发射1khz信号或者并口发射1khz信号,(Transmitting 1 kHz signal)
    2020-06-18 01:00:01下载
    积分:1
  • 51-Microcontroller-Programmer-
    51单片机编程器制作资料。内有pcb,原理图,物料清单,hex文件。自制成功(51 Microcontroller Programmer production of information. There pcb, schematics, BOM, hex file. Self-made success)
    2011-11-14 12:31:09下载
    积分:1
  • acetar
    Contiene el inicio de una ventana
    2015-02-23 00:56:43下载
    积分:1
  • tbb_armeabi-v7a
    tbb源码和tbb android例子和编译文档及新建项目使用tbb文档 centos系统中编译android tbb动态库,然后在android中调用,包括tbb编译的android release and debug版本的动态库,使用文档等等(tbb tbb android source code and examples of new projects and compile documents and documents using tbb centos system to compile android tbb dynamic library, then call in android, including the tbb compiled android release and debug versions of dynamic libraries, documents, etc. Use)
    2021-03-16 22:09:21下载
    积分:1
  • Sunplus-061-chip-training
    凌阳061单片机培训内容,详细的介绍了用凌阳61开发板进行各种设计所需要的基本知识。(Sunplus 061 chip computer training, a detailed description of the development board with Sunplus 61 needed for a variety of design basics.)
    2011-10-17 09:13:57下载
    积分:1
  • F020COM
    用C8051F020实现的串口通信程序,含汇编和C,已调试通过(Using C8051F020 realize the serial communication program, including the compilation and C, have been debugging through)
    2008-03-03 14:19:51下载
    积分:1
  • ENC28J60DEMO
    使用方法: 程序设置了ENC28J60的IP为192.168.0.15,模块通电后与电脑的网口用网线连接起来, 设置电脑的本地IP为192.168.0.**(**自定),网关为192.168.0.15,其他默认,配置 成功后便可以arp或ping模块。 打开浏览器,在地址里输入http://192.168.0.15/123456可打开开发板简单网页,页 面上通过按键来控制开发板LED的亮灭。(Use: setup the ENC28J60 of IP to 192.168.0.15, the module is powered on the computer' s Ethernet port using a cable connection up to set the computer' s local IP 192.168.0.** (** Custom), the gateway 192.168.0.15, default configuration is successful, it will make arp or ping module. Open the browser, enter the address http://192.168.0.15/123456 to open the development board simple web pages, and page keys to control the development board LED light off.)
    2012-05-31 18:14:57下载
    积分:1
  • 317-6095-ModbusRTU_slave_Unity_1.03
    s7300程序 MODBUS 通讯处理的一段程序(s7300 PROGRAM)
    2014-05-01 22:06:09下载
    积分:1
  • song1987
    说明:  本课题对基于单片机的交通灯控制系统进行设计。以MCS-51系列单片机为控制核心,设计并制作交通灯控制系统,用于十字路口的车辆及行人的交通管理。东西南北四个路口具有左拐、右拐、直行及行人4种通行指示灯,并分别用计时器显示路口通行转换剩余时间,在特种车辆如119、120通过路口时,系统可自动转为特种车辆放行,其他车辆禁止通行状态。(Traffic light control system based on SCM (Single Chip Microcomputer) is designed in this paper. System requires that MCS-51 series SCM is used as CPU. Traffic light control system should be designed and made .There are four groups light which indicate to turn left, turn right, and go straight ahead and pedestrian access in east, west, north and south four directions. Timer shows traffic conversion remainder time. When special vehicles, such as 119,120 go through, the system can automatically allow special vehicles running and other vehicles is prohibited.)
    2011-03-26 10:30:17下载
    积分:1
  • 696518资源总数
  • 104297会员总数
  • 29今日下载