计量与测试技术2024,Vol.51Issue(2) :52-54,57.DOI:10.15988/j.cnki.1004-6941.2024.2.015

动能测量装置的时间测量方法及程序设计

Time Measurement Method and Program Design for Kinetic Energy Measurement Device

凌永光 彭睿 陈金明
计量与测试技术2024,Vol.51Issue(2) :52-54,57.DOI:10.15988/j.cnki.1004-6941.2024.2.015

动能测量装置的时间测量方法及程序设计

Time Measurement Method and Program Design for Kinetic Energy Measurement Device

凌永光 1彭睿 1陈金明1
扫码查看

作者信息

  • 1. 广州计量检测技术研究院
  • 折叠

摘要

本文基于STM32F103系列单片机的通用计时器TIMx的捕获功能,设计了一种用于测量输入脉冲宽度的一种时间测量方法,并用于测量动能测量装置的速度;设置TIMx的硬件初始化流程,用C语言编写测试程序;用信号发生设备和测量仪器对单片机测量时间的功能进行测试.结果表明:该捕获功能可较好地完成动能测试装置的时间量测量,且使用以STM32F103系单片机作为核心部件具有可行性.

Abstract

Based on the capture function of TIMx of STM32F103 series microcontroller,a time measurement method is designed to measure the input pulse width and the speed of the kinetic energy measuring device.The hardware initialization process of TIMx is set up,the test program is written in C language,and the function of measuring time is tested by signal generator and measuring instrument.The results show that the capture function can complete the time measurement of the kinetic energy measuring device well,and it is feasible to use STM32F1O3 as the core com-ponent.

关键词

计量/时间测量/STM32

Key words

metrology/time measurement/STM32

引用本文复制引用

基金项目

广州市市场监督管理局科技项目(2022kj10)

出版年

2024
计量与测试技术
成都市计量监督检定测试所

计量与测试技术

影响因子:0.175
ISSN:1004-6941
参考文献量3
段落导航相关论文