摘要
文章采用以8051单片机为核心的数字显示超声波测距的硬件电路和软件设计方法来实现功能。本系统由微处理器8051控制超声波传感器发射超声波,当超声波信号碰到障碍物时信号立刻返回,通过超声波传感器接收返回信号,送入单片机8051处理换算就可以得出超声波传感器所测得的距离并送入LED显示器显示出来。整个电路采用模块化设计,文中对主程序、预置子程序、发射子程序、接收子程序、显示子程序等模块设计与实现进行了较详细地阐述。
This paper adopts software design method and the digital hardware circuit with 8051 single slices of machine as core that shows supersonic range finding to realize function. The system consists of a microprocessor controlled ultrasonic sensor to transmit ultrasonic 8051, When the ultrasonic signal when encountering an obstacle signal return immediately, The ultrasonic sensor receivesa return signal, Send into 8051 only fiat machine handlings conversion can reach supersonic sensor the distance that measured and send into LED display show. The circuit uses modular design, In writing for main program put subprogram in advance, project subprogram, take over subprogram, show realization and the modular designs such as subprogram have gone on elaborate comparatively in detail.
出处
《电子世界》
2015年第19期167-170,共4页
Electronics World
基金
国家科技部科技型中小企业技术创新基金项目(编号:14C26213511852)
厦门市科技计划资助项目(编号:2014S0679)