提高MCS51单片机超声测距精度  被引量:1

在线阅读下载全文

作  者:许琴[1] 

机构地区:[1]四川建筑职业技术学院,四川德阳618000

出  处:《科技资讯》2018年第11期92-93,95,共3页Science & Technology Information

摘  要:超声波模块HC-SR04在MCS51单片机测试中,利用超声波模块返回的高电平来控制计数器的运行控制位TR,使能计数器进行计数,再通过公式运算得到距离。此方法会因其它中断影响计数器的计数准确性,导致测距的精度降低。因此本文提出利用计数器的门控方式解决其它中断对计数器影响,提高测距精度,并利用外部中断源判断计数完成并启动测距运算。In the distance measurement of MCS51 with ultrasonic module HC-SR04,we use ultrasonic back signal to control the counter to count by the TR control bit,and obtain the distance by the formula calculation.This method can reduce the accuracy of the distance measurement because of the inf luence of other interrupt.Therefore,this paper puts forward the use of counter gating method to solve the influence of other interrupts in MCS51 system,improve the distance measurement accuracy,and use the external interrupt source to start the count of the distance calculation.

关 键 词:超声波模块 测距 计数器 精度 外部中断 

分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象