CodePudding user response:
Don't have to TIM's built-in capture, open the timing, with pin up and down along the interruption, plan the time difference between the two interrupts, not to become?CodePudding user response:
Is the problem that the timer, time is too long, more than its maximum length can timingCodePudding user response:
Can be like 50 ms remember once, add an accumulation of variable, by a by no?CodePudding user response:
The frequency of high and low level meter with timer interruptCodePudding user response:
Tim the timing to captureCodePudding user response:
External interrupt and timer will do the trick