Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
PulseIn effect on RTC

 
Post new topic   Reply to topic    Forum Index -> ZX-24
Author Message
pdubinsky



Joined: 25 Nov 2005
Posts: 66
Location: South Carolina

Posted: 08 March 2006, 21:40 PM    Post subject: PulseIn effect on RTC Reply with quote

Do I read the manual correctly? Unlike the BX-24, when using the Pulsein command the ZX-24 compensates (or corrects) the RTC for pulses lost during the Pulsein measurement. I'm just looking for comfirmation from the gurus before I clean up a bunch of real ugly BX code. (The Delete key will be busy tonight<gg>).

Thx,
Paul
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 09 March 2006, 1:54 AM    Post subject: Reply with quote

Your interpretation is correct. The VM keeps track of the "missed ticks" and adds them to the RTC when the PulseIn() process is done. I believe that nearly all other System Library routines (that disable interrupts) do likewise.

Instead of deleting the code willy-nilly you could effectively remove it using #if 0/#endif. If all goes well you can remove it all later.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZX-24 Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group