|
基于双定时器的自适应高精度频率测量算法
|
Abstract:
本文基于职业本科培养高素质高层次技术技能人才要求,以学科竞赛——蓝桥杯全国软件和信息技术专业人才大赛为导向,赛教融合,在对单片机类课程教学改革过程中,分析历年蓝桥杯“单片机设计与开发”真题,提出了信号频率测量方法——双定时器自适应高精度频率测量法。双定时器信号频率测量法避免了使用外部中断(频率测量法)频繁打断CPU运行的缺陷,根据被测信号频率大小自适应选择双定时器测频法还是测周法,提高信号在低频领域和高频领域的频率测量精度。
Based on the requirements of cultivating high-quality and high-level technical talents for vocational undergraduate education, guided by the discipline competition—Lanqiao Cup National Software and Information Technology Professional Talent Competition, and the integration of competition and teaching, this paper analyzes the real problem of “single chip microcomputer design and development” of the Lanqiao Cup over the years, and puts forward a signal frequency measurement method—Double timer adaptive high precision frequency measurement method. Double timer signal frequency measurement method avoids the defect of using external interrupt frequency measurement method to frequently interrupt CPU operation. According to the frequency size of the signal on the side, the double timer frequency measurement method or the cycle measurement method is adaptively selected to improve the frequency measurement accuracy of the signal in the low frequency field and high frequency field.
[1] | 彭大海, 蒋水秀, 郭书军. “蓝桥杯”全国软件和信息技术专业人才大赛(电子类)实训指导书[M]. 北京: 电子工业出版社, 2019. |
[2] | 李彦秀. 基于STC8A系列单片机的高精度频率计设计[J]. 工业控制计算机, 2019, 32(6): 125-126. |
[3] | 张一荻. 高速高精度频率测量技术的研究[J]. 电子质量, 2016(12): 1-3+35. |
[4] | 潘宇. 基于FPGA和STM32的脉宽频率测量方法[J]. 实验室研究与探索, 2017, 36(2): 83-86. |
[5] | 赵嘉怡, 李外云. 基于STC单片机的等精度频率测量[J]. 信息通信, 2016(3): 81-82. |
[6] | 姜志健, 庄建军, 陈旭东, 赵之轩. 基于FPGA的高精度频率计的设计与实现[J]. 电子测量技术, 2017, 40(5): 41-46. |
[7] | 徐伟, 吴静, 杨阳, 袁振国, 王迪. 等精度信号参数测量仪设计[J]. 实验技术与管理, 2018, 35(6): 100-104. |