AnsweredAssumed Answered

TIMx Input Capture Prescaler does not work

Question asked by Brooks.David.001 on Oct 21, 2015
Latest reply on Oct 21, 2015 by waclawek.jan
                                   
           
I'm experiencing a problem very similar to the post titled "Design Anomaly with TIMx..." using the STM32F429i-DISCO Board and IAR Workbench. Despite several related posts, I have not found a solution. My 2-channel frequency measuring code is working fine. I enable input capture via HAL_TIM_IC_Start(), wait for 1ms and then call HAL_TIM_IC_Stop(). I read the data at the end of the 1ms just fine, and as I am expecting, it appears all registers get reset upon capture and I wind up with a new capture on every rising edge of the signal on TI2 during that 1ms period. However, when I change the prescaler from 1 to 8 in order to make better use of the 16/32 bit range, the captured count is the same as when the prescaler was 1. It seems the prescaler is not working or is not "enabled".  My code originated with the Cube PWM Example. Although I have modified that code to meet my needs, I checked my manually-written code against Cube-generated code and the two appear consistent.
           

Outcomes