Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Millis register, teller.

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO
View previous topic :: View next topic  
Author Message
drejansen

Bascom Member



Joined: 10 Jun 2006
Posts: 26
Location: Hoeksche Waard

netherlands.gif
PostPosted: Mon Jan 23, 2017 1:56 pm    Post subject: Millis register, teller. Reply with quote

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.
 
Groeten, Dré Jansen
 
 
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4747
Location: Holland

blank.gif
PostPosted: Mon Jan 23, 2017 2:35 pm    Post subject: Reply with quote

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
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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