Posted on July 10, 2013 at 17:17
I'm not sure how to remap pins that do not line up correctly with the alternate functions specified in the datasheet. For example, the picture below shows the pin out of my microcontroller where OCx-LOW are pwm o...
Posted on August 14, 2013 at 21:38I also tried stripping it down to only doing one task - measuring the signal. Measuring only the 25/75 duty, it did the same thing as yours and stayed within +/- 1 tick variability. However, as soon as I added a ...
Posted on August 14, 2013 at 15:15Good catch on being a cycle off for my delta calculation. Yes you are correct about the timer clocks and I mixed up the information I posted. The measurements for software driven calculations using TIM4 are ~500 hi...
Posted on August 13, 2013 at 21:34
Doing an input capture using the one PWM input where the GPIO alternate function maps to a timer, I get a measurement of 997 high/2999 low - which is correct. 120MHz / ~4000 = 30 kHz signal with 25% duty cycle....
Posted on August 13, 2013 at 19:41
Well thanks to your code, software controlled PWM outputs are working (within their reasonable limitations). I've been working on doing this with the PWM inputs, but having some trouble. Right now, it's set up ...
Posted on July 23, 2013 at 17:54You're a lifesaver. This worked out perfectly. Only note is that setting TIM_Prescaler = Prescaler - 1 will go to max 66535 value if prescaler is 0. Just setting TIM_Prescaler = 0 fixes the issue in that case.