AnsweredAssumed Answered

Is it possible to determine PWM of 0% or 100% duty cycle?

Question asked by Richard Cooke on Nov 17, 2017
Latest reply on Nov 19, 2017 by Richard Cooke

Hi Folks,


I'm using the Nucleo32L031K6 and the PWM on TIM2 is working fine except when the signal goes to zero.  The input capture interrupt is called when the input changes but if it never changes how can I determine that? In my application I need to know the on time of the pulse which is captured in TIM2->CCR2.  If the input is removed quickly enough the TIM2->CCR2 register retains the old value and never goes to zero. Is there a "standard" way to solve this issue?


Thanks in advance,