In compliance with high industry standards

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

Counter with millis() function

By
Guest
on 4/12/21, 10:29 AM 134 views

Dear Industrial Shields team, 


which is the maximum value that the millis() function can hold on a counter? 


Thank you,


0
Industrial Shields Forum user

Support Team

--Support Team--

1000000007
| 0 0 0
Sant Fruitós de Bages, España
--Support Team--
Support Team
On 4/12/21, 10:55 AM

Hi there!


Using Millis() function the variable that returns is a 32-bit positive integer (uint32_t).

The maximum number available is about 4E + 9 milliseconds = 4E + 6 seconds = 71E + 3 minutes = 1200 hours = 49.7 days.

When this time has elapsed, start again from 0.


You can get more information related with Millis() library at the following link to our blog: 

https://www.industrialshields.com/blog/arduino-industrial-1/post/industrial-arduino-millis-vs-delay-248


Cheers!


Keep Informed

About This Community

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 4/12/21, 10:29 AM
Seen: 134 times
Last updated: 4/12/21, 10:55 AM