cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4 Discovery pwm input problem

wxyhhy
Associate
Posted on June 10, 2013 at 23:08

The original post was too long to process during our migration. Please click on the attachment to read the original post.
1 REPLY 1
Posted on June 11, 2013 at 00:37

Ok, it doesn't appear to be sufficiently complete to easily review/test. You need to make something that will compile.

Of the observations I can make quickly. You need to get the use of

  RCC_ClocksTypeDef RCC_Clocks;

  RCC_GetClocksFreq(&RCC_Clocks);

out of the interrupt. Do it once, store it globally.

You do not want to being doing serial output in the interrupt.

You need to pick some unique global names, or static variables for some of the timer/interrupt specific measurements rather than mixing them all together.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..