Topic RSS
Tick Count behavior
March 17, 2015
9:52 pm
9:52 pm
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
March 12, 2015
Offline
Ah, ok. In fact, what you are seeing is actually expected behavior. The Arduino targets don’t have an internal RTC (real time clock). What that means is that, every time the Arduino is power cycled (by disconnecting it from the USB port) the internal tick count maintained by its internal counter is zero’d. That is why the first time you run the program after it was disconnected from the USB you see the output of the Tick Count return zero. To avoid this from happening, you will need to prevent the Arduino from power cycling; by either connecting an external power supply or battery pack to it if you need to constantly disconnect it from your USB port.
Cheers
Filipe
Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
30
30
Guest(s)
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrolAdministrators: geadmin: 22, filipealtoe: 96, Steffan: 356
© Simple:Press —