/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / stm32f100 can not back to infinite loop after tm2 interrupt

Username:     
Password:     
             

Forum
  • Index
  •  » STM32 Family
  •  » stm32f100 can not back to infinite loop after tm2 interrupt

# 1   2012-01-02 08:22:35 stm32f100 can not back to infinite loop after tm2 interrupt

metin
New member
Registered: 2012-01-02
Posts: 1

stm32f100 can not back to infinite loop after tm2 interrupt

Dear friends,

I can not back to main routine after ISR TM2.
Have you ever met this problem?

Thanks all.

void TIM2_IRQHandler(void){
  if (TIM_GetITStatus(TIM2, TIM_IT_CC1) != RESET){

    TIM_ClearITPendingBit(TIM2, TIM_IT_CC1);
   
    capture = TIM_GetCapture1(TIM2);                     
    TIM_SetCompare1(TIM2, capture + _2ms_counter);       
    _2ms_func();
  }
}

Offline

 

  • Index
  •  » STM32 Family
  •  » stm32f100 can not back to infinite loop after tm2 interrupt

Board footer