AnsweredAssumed Answered

Difference between Update and Overflow interrupt

Question asked by Marek Nowak on Jan 13, 2018
Latest reply on Jan 13, 2018 by dragomir.raimond

Hello, 

 

I would like to ask about difference between update and overflow interrupt on STM8.

 

For Example, on Timer2:

//F_CPU 1Mhz

//Timer2 - 16bit, max value = 65535

TIM2_TimeBaseInit(TIM2_PRESCALER_1, 999);

 

As I understand:

1. Overflow interrupt will occur after counting to max value of timer = 65536

2. Update interrupt will occur after counting to value 999 

 

Is it right?

Outcomes