Joined: 10 Jun 2006 Posts: 26 Location: Hoeksche Waard
Posted: Mon Jan 23, 2017 1:56 pm Post subject: Millis register, teller.
English below
Geacht forum,
De C-taal kent een register: millis genaamd.
Zodra de Arduino start, begint deze onafhankelijke interne milliseconden teller te lopen.
Is er een Bascom commando om deze teller (register) uit te lezen?
Groeten, Dré Jansen
-=-=-=-=-=-=-
Dear forum,
In the C-language is a register called millis.
As soon as the Arduino starts this independent milliseconds counter begins counting.
Is there a Bascom command to read this counter? (register?)
Best regards, Dré Jansen _________________ Pluk het moment!
een hele dag lukt toch niet.
No, there is not such a register in hardware. take a look in the data sheet.
if you want to keep on track of time, you have to use a timer for it.
in bascom you can do so using config clock. then use SysSecElapsed function.
Or just create a timer that overflows each ms and increase a dword.
but there is not hardware register that keeps time for you so millis is just software. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum