摘要
为研制低成本、精度高和稳定性强的明渠水位传感器,采用了超声波检测技术,以超声波换能器作为传感器件,以单片机作为主控器,着重研究了C语言和汇编语言混合编程在超声波水位传感器设计时的应用,给出了硬件设计电路及单片机软件程序流程图,对液位计出现的测量误差进行了详细的分析,并提出了解决的方法。实验结果表明:C语言和汇编语言混合编程在超声波水位传感器设计精度高,稳定性好。
For the development of low-cost,high accuracy and stability of the open water level sensors,using ultrasonic detection technology,this article designed a open channel water level sensor based on the STC89C52RC core,at the same time,it studied the mixed programming with C51 and assembler language.The result of experiment shows that this design has a high accuracy and stability.
出处
《农机化研究》
北大核心
2009年第10期176-179,共4页
Journal of Agricultural Mechanization Research
基金
国家自然科学基金项目(50879072)
国家科技支撑计划项目(2006BAD11B04)
关键词
明渠水位传感器
C51
汇编语言
混合编程
超声波
open channel water level sensor
C51
assemble language
mixed programming
ultrasonic