摘要
介绍了USB(通用串行总线,Universal Serial Bus)型单片机C8051F320和相应的集成开发环境,详细论述了超声波测距仪从系统的整体结构设计到发射与接收部分电路的实现以及软件设计的整个过程。为了提高测量精度,采取了温度补偿、增大发射功率、回波捕捉等措施。系统充分利用C8051F320的功能模块和片内资源,实现了温度和距离的测量、输入信号的采集和USB总线传输,可在VC编制的界面平台上控制单片机及实时显示数据处理结果。该超声波测距仪符合USB2.0规范并采用USB总线供电模式,无需外接电源,支持即插即用。经测试该系统能有效提高测距精度,有望得到进一步应用。
The C8051F320 device integrated Universal Serial Bus (USB) Function Controller and corresponding Integrated Development Environment (IDE) was introduced. The research process concerning the ultrasonic range finder was described, including the frame of ultrasonic range finder, schematics of ultrasonic transmitter and receiver and software part. In order to improve measurement accuracy, it takes various measures, such as temperature compensation, increasing transmitter power and echo capture. By using all on-chip analog and digital peripherals of C8051 F320 device, the system is carried out. Having a platform of application programs written in Visual C + +, this ultrasonic range finder can measure temperature and distance, sample input signal, support USB 2.0 protocol, control MCU and display results in real time. This ultrasonic range finder is USB 2. 0 compliant and USB bus-powered, no external power supply and support plug and play. It improves the accuracy and expects to be supported more widely.
出处
《仪表技术与传感器》
CSCD
北大核心
2009年第12期35-37,共3页
Instrument Technique and Sensor