Introduction - If you have any usage issues, please Google them yourself
STM32F103VE chip, can achieve two port measurement of pulse frequency and duty ratio, in order to prevent the overflow, the frequency division processing, can measure a pulse of about 50Hz, if the frequency is too large, the accuracy will decline, the need to change the frequency, output part is not included in the program, you need to add the output program advice, direct read TIM3_CCR2, TIM3_CCR1 registers, and then their own transformation. Program there is a general conversion method, but the numerical value is not appropriate, need to be modified.