cancel
Showing results for 
Search instead for 
Did you mean: 

How does STM32F0 core handle unsigned long int overflow

Vu.Andy
Associate III
Posted on April 04, 2018 at 01:50

For example, if I have:

unsigned long int Variable1;

Variable1 = 0xFFFFFFFF;

Variable1++;

What would be the value of Variable1? Would it be back to zero?

Thanks.

Note: this post was migrated and contained many threaded conversations, some content may be missing.
11 REPLIES 11
Posted on April 11, 2018 at 17:34

Well I need a long time elapsed.  For example, if I need to keep track of time longer than 30 seconds, does uwTick able to support that?

Posted on April 11, 2018 at 17:39

Yes, if ticking at 1ms the wrap time is a little over 49 days.

Ticking at 72 MHz, around a minute.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..