[1]孙卫喜. 单片机在C语言串口通信中的应用解析[J].计算机技术与发展,2016,26(07):160-163.
 SUN Wei-xi. Analysis of Application of Single Chip Microcomputer in Serial Port Communication of C Language[J].,2016,26(07):160-163.
点击复制

 单片机在C语言串口通信中的应用解析()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
26
期数:
2016年07期
页码:
160-163
栏目:
应用开发研究
出版日期:
2016-07-10

文章信息/Info

Title:
 Analysis of Application of Single Chip Microcomputer in Serial Port Communication of C Language
文章编号:
1673-629X(2016)07-0160-04
作者:
 孙卫喜
 渭南师范学院 网络安全与信息化学院
Author(s):
 SUN Wei-xi
关键词:
 单片机C语言应用程序编写串口通信
Keywords:
 single chip microcomputerapplication of C languageprogram writingserial port communication
分类号:
TP39
文献标志码:
A
摘要:
 在分析了单片机涵义和串口通信工作方式的基础上,结合前期采用汇编语言编写的单片机应用系统程序可读性差、可移植性不好,且程序编写周期长、调试比较困难等问题,文中倡导以C语言作为编写单片机应用系统的编程语言,从而使得单片机能巧妙利用C语言实现单片机之间的多机高效通信,充分展示出单片机使用寿命长、运行速度快、低噪音、技术可靠的特征。实验结果表明,单片机应用系统中使用C语言编写的程序可读性、可移植性、稳健性更强,能使串口通信更加高效、便捷、可靠。同时使得价格低、稳定性强、功能好、功耗小等这些单片机的特点得到更充分的发挥。
Abstract:
 After analyzing the meaning of Single Chip Microcomputer ( SCM) and the manner of work in serial port communication, combined the problem of poor readability and portability,long programming cycle and difficult debugging for single chip application sys-tem written by assembly language,it advocates to C language as programming language to write single-chip microcomputer application system in this paper and makes SCM to realize the efficient connection in many SCMs by C language,which fully shows the characteris-tics of SCM,such as long service life,fast operation,low noise,and reliable technique. The experiment shows that the program which made in C language is better in readability,transportability and stability. It makes serial port communication more efficient,easy and relia-ble and the characteristics of SCM to get more sufficient play,including low prices,strong stability,good function,and low consumption and so on.

相似文献/References:

[1]周士兵 杨晓宇.基于P89C51单片机与Delphi的地平仪检测系统的设计[J].计算机技术与发展,2010,(06):205.
 ZHOU Shi-bing,YANG Xiao-yu.Design of Test System Used for Infrared Earth Sensor Based on P89C51 Microcontroller and Delphi[J].,2010,(07):205.
[2]马兆远 王勇 马志峰.基于AT89S52的智能报警系统的设计与实现[J].计算机技术与发展,2009,(12):181.
 MA Zhao-yuan,WANG Yong,MA Zhi-feng.Design and Implementation of a Household Alarming System Based on AT89S52[J].,2009,(07):181.
[3]黎惠成 曾碧 吴清泉 李愿.一种基于模糊控制的温度控制系统设计[J].计算机技术与发展,2009,(12):236.
 LI Hui-cheng,ZENG Bi,WU Qing-quan,et al.Design of a Temperature Control System Based on Fuzzy Control[J].,2009,(07):236.
[4]杨坤平 张元 陈学堂 陈得民.微波自动测量系统的研究[J].计算机技术与发展,2009,(02):234.
 YANG Kun-ping,ZHANG Yuan,CHEN Xue-tang,et al.Study about Microwave Automeasurement System[J].,2009,(07):234.
[5]赵国锋 邱作雨 张毅.基于单片机的嵌入式TCP/IP协议栈的设计与实现[J].计算机技术与发展,2009,(03):137.
 ZHAO Guo-feng,QIU guo-yu,ZHANG Yi.Design and Realization of TCP/IP Protocol for Embedded System Based on Single- Chip[J].,2009,(07):137.
[6]赵正平 吴小培 陈蕴.便携式心电遥测系统中A/D转换的实现[J].计算机技术与发展,2008,(03):207.
 ZHAO Zheng-ping,WU Xiao-pei,CHEN Yun.Realization of A/D Conversion in Portable ECG Telemetry System[J].,2008,(07):207.
[7]付艳鹏 帕力哈提·米吉提.大容量存储器在井下存储式核密度计中的应用[J].计算机技术与发展,2008,(04):140.
 FU Yan-peng,PALIHATI·Mijiti.Application of Mass Storage to Storing Type Nuclear Densimeter Used in Well[J].,2008,(07):140.
[8]刘教瑜 周克贵.基于单片机和VB的玻璃拉丝测控系统[J].计算机技术与发展,2007,(08):165.
 LIU Jiao-yu,ZHOU Ke-gui.Detecting and Controlling System of Fiberglass Based on Single- Chip Microcomputer and VB[J].,2007,(07):165.
[9]伊文斌 周贤娟 鄢化彪 韩树人 刘生华.uIP TCP/IP协议分析及其在嵌入式系统中的应用[J].计算机技术与发展,2007,(09):240.
 YI Wen-bin,ZHOU Xian-juan,YAN Hua-biao,et al.uIP TCP/IP Protocol Analysis and Its Application in Embedded System[J].,2007,(07):240.
[10]刘凤声.基于VB6.0的单片机与PC通讯的实现与应用[J].计算机技术与发展,2007,(10):202.
 LIU Feng-sheng.Realization and Application of Communication Technology Between PC and Single- Chip Computer Based on VB6.0[J].,2007,(07):202.
[11]魏子阶[],徐健[],廖观亮[]. LIN USB协议转换器设计[J].计算机技术与发展,2014,24(08):250.
 WEI Zi-jie[],XU Jian[],LIAO Guan-liang[]. Design of LIN USB Protocol Converter[J].,2014,24(07):250.
[12]谢晓燕,石晓龙. 机车综合无线通信设备语音单元的设计与实现[J].计算机技术与发展,2016,26(02):136.
 XIE Xiao-yan,SHI Xiao-long. Design and Implementation of Voice Unit for Cab Integrated Radio Communication Equipment[J].,2016,26(07):136.

更新日期/Last Update: 2016-09-28