Time Measurement Method and Program Design for Kinetic Energy Measurement Device
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.