Home > other >  Stm32 microcontroller how to gather the 0 ~ 3 hz frequency square wave signal?
Stm32 microcontroller how to gather the 0 ~ 3 hz frequency square wave signal?

Time:10-06

Mainly because the stm32 internal clock only 16, so if the time is too long, the clock will overflow, how to solve this problem

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 timing

CodePudding 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 interrupt

CodePudding user response:

Tim the timing to capture

CodePudding user response:

External interrupt and timer will do the trick
  • Related