The weather is fine, so I'm having a little suprise with timer
interrupt on update event. I thought that if timer is configured to
count up, update event will occure just after the overflow, i.e. when
CNT will become equal to zero. According to figures 103-105 from
reference manual.
But that doesn't seem to be the case for some reason. I tested it
with this simple code:
RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2, ENABLE);
// tick frequency in Hz
const uint32_t tickFreq = 1
↧