登录
首页 » MultiPlatform » serial_program_for_51

serial_program_for_51

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

  • MainWindow.xaml
    触摸屏核心接口程序,主要写了触摸屏接口win7下 wpf调用的核心。(Core touchscreen interface program, mainly to write down the core touch screen interface win7 wpf call.)
    2013-12-09 16:54:47下载
    积分:1
  • fm1415
    bh1415 控制程序,通过数据线调整发射频率,适合做车载音频转接(bh1415 control procedures, through data lines transmitting frequency adjustment, suitable for car audio adapter)
    2006-06-25 12:20:15下载
    积分:1
  • MudrePrice
    tri Mudre Pricice na dve strane...
    2016-01-26 05:34:13下载
    积分:1
  • VSPD-BCB6
    可虛擬兩個RS-232或者是多個RS-232互傳資訊,此源码維BCB6所編寫。(Can be a virtual two RS-232 or RS-232 over pass each other information, this source code written by Victoria BCB6.)
    2020-11-27 09:29:31下载
    积分:1
  • 51数码管显示0-9
    说明:  使用 AT89C52 单片机开发,功能是1个数据管,显示0 至 9。(Developed with AT89C52 single chip computer, the function is a data tube, displaying 0 to 9.)
    2019-01-27 10:02:57下载
    积分:1
  • test
    说明:  一种新型模糊自适应PID的控制算法,试验证明是很有效的(A new type of fuzzy adaptive PID control algorithm, the pilot proved to be very effective)
    2008-10-13 08:53:38下载
    积分:1
  • KEIL2
    在keil上进行单片机语言编程,很实用的小例(Microcontroller programming language on the keil, very practical small cases )
    2013-12-12 19:21:16下载
    积分:1
  • OLED
    oled显示屏测试源代码,可显示姓名学号(OLED display test source code, can display name and student number)
    2020-06-23 15:00:01下载
    积分:1
  • 5529和nokia5110显示字符
    msp430f5529和nokia5110显示字符(Msp430f5529 and Nokia 5110 display characters)
    2020-06-20 22:40:01下载
    积分:1
  • ADC通道双缓存模式
    ADC采集信号通过DMA双缓存模式读取,经串口发出(The ADC acquisition signal is read through the DMA double buffer mode, and is sent through the serial port.)
    2018-09-19 10:00:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载