cancel
Showing results for 
Search instead for 
Did you mean: 

Time based interrupt for lower values not working

shital P
Associate
Posted on June 18, 2018 at 09:03

I exercised time based interrupt for 1 second on

 stm32f0308(cortex M0) 

and for every one second I increment one counter variable .....this works fine ....I tested time based interrupt for 1 milliseconds too this also works fine and counter value gets incremented by 1000  every second....but when I set time based interrupt for 0.1 or 0.5 milliseconds counter variable does not increment I am not getting what is the exact problem ?? 

i am clocking timer to 32MHz using PLL and internal crystal

1 REPLY 1
Posted on June 18, 2018 at 10:14

I exercised time based interrupt... but when I set time based interrupt for 0.1 or 0.5 milliseconds counter variable does not increment

Your interrupt service routine execution lasts probably longer than 0.1 or 0.5 milliseconds.

JW