cancel
Showing results for 
Search instead for 
Did you mean: 

Timer Update Interrupt clarification

STuser2
Senior

This is a line of code i don't understand, 

 /* Force the TIMx prescaler with immediate access (gen update event)
    */
    LL_TIM_SetPrescaler(TIMx, pHandle->HALLMaxRatio);
    LL_TIM_GenerateEvent_UPDATE(TIMx);

The code is part of the __weak void HALL_Init(HALL_Handle_t *pHandle) function

when the second line of code is executed does it mean that i get the interrupt timer over flow interrupt immediately. Please clarify. The TIM4 is configured in XOR / Hall mode.

0 REPLIES 0