Timer interrupt discontinuity issue using stm32f103c8t6
Hi
I am trying to generate interrupt every 100uSec using Timer-2 using stm32f103c8t6 blue pill. I have simply set the system clock to 72 MHz pre scaled the timer two by 72 time using 72-1 and setting counter period to 100. I have also enabled TIM2 Global Interrupt in NVIC global interrupt setting. I started this timer in main function by using following command
Also, I used the interrupt routine using following code where I am toggling Pin A5 on each interrupt to test the interrupt generation.
The interrupt was generated correctly as shown in the following image

However, when I increased the time scale of oscilloscope, I found the interrupt generation is discontinuous after every 10 msec as shown below

I further increased the time scale and found significant halt in interrupt generation as shown below

I am not sure what is making this interrupt generation to be discontinuous. Actually, I want to generate sine wave
reference for PWM generation. I observed above mentioned anomalies when I generated the sine wave
and the sine wave was disturbed at these discontinuous points. For this code at the moment, I am not using any
other peripheral of the controller or not performing any other task except this interrupt generation and toggling the pin in this interrupt call back.
Can anybody please help to resolve this issue so that I may get continuous interrupt throughout the time.
