摘要
目前国内超声波测距器的设计大多采用汇编语言设计。由于单片机应用系统的日趋复杂,要求所写的代码规范化,模块化,并便于多人以软件工程的形式进行协同开发,汇编语言作为传统的单片机应用系统的编程语言,已经不能满足这样的实际需要了,而C语言以其结构化和能产生高效代码满足了这样的需求,成为电子工程师进行单片机系统编程时的首先编程语言。本设计就是一种基于AT89C52单片机、采用C语言和汇编语言混合编程来实现的超声波测距器。该文较详细地论述了采用单片机技术研制而成的泊车用超声波测距仪的基本原理,测量计算方法,实现方案。使用它,可以极大的提高泊车时的安全性。
Assembly language is used for designing most of the domestic ultrasonic range. Singlechip is employed because of the increasingly complex system requiring written code to be standardized, modularized, and to facilitate people to software engineering in the form of cooperative development. So, assembly language as a traditional programming language for singlechip system can no longer meet the actual need, while C language and its structure can produce efficient code to meet the need of electronic engineers as the first programming language in singlechip system programming. This design is based on singlechip ArF89C52 mixed with C and assembly language programming to realize ultrasonic range - finding. This technique can greatly help to increase the safety of parkrag.
出处
《绵阳师范学院学报》
2008年第8期49-53,共5页
Journal of Mianyang Teachers' College