cancel
Showing results for 
Search instead for 
Did you mean: 

TIM1 doesnot enter CC interrupt

mehmet.karakaya
Associate III

0693W00000D0WDdQAN.pnghello dear forum,

my 103c8 blue pill doesnot enter TIM1 CC interrupt although there is square wave at A8 pin

the variable which I increment inside interrupt routine doesnot count

I can see TIM1 counting in CubeIDE

I am missing something but I cant find - please advice - thank

2 REPLIES 2

Read out and check TIM1_SR if the proper flag is set, and then TIM1_DIER if the enable bit is set.

Make sure the ISR is properly named, name matching that in the vector table source in startup code, and that its address is inserted properly into the correct place of the vector table (best to do this in disasm).

Some other interrupt debugging hints here.

JW

TDK
Guru

Clearing the flag before you read it isn't going to be very useful.

If you feel a post has answered your question, please click "Accept as Solution".