AnsweredAssumed Answered

RESOLVED: TIM3 - 50 Hz pulse

Question asked by Sel on Oct 13, 2016
Latest reply on Oct 17, 2016 by FTITI.Walid
Hello, 

Will the following generate a 50 Hz pulse?
(Since htim3.Init.Period = 19999 which I think equates to ~20ms)

 htim3.Instance = TIM3;
  htim3.Init.Prescaler = 83;
  htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
  htim3.Init.Period = 19999;
  htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  if (HAL_TIM_Base_Init(&htim3) != HAL_OK)
  {
    Error_Handler();
  }

Thanks,

Sel

Outcomes