Forum Index
Idea for new timer functionality in ZBasic

 
Author Message
spamiam



Joined: 13 Nov 2005

Posted: 14 August 2008, 15:20 PM    Post subject: Idea for new timer functionality in ZBasic

Don,

I was thinking about the ability to use a timer interrupt in the native mode devices, and the lack of such an ability in the VM devices.

You probably remember in the old PC days that it was possible to "hook" into an existing interrupt (like the keyboard) to have a TSR process do stuff in the background.

Would it be possible to have such a hook for one of the timers in the VM. It would have to have interrupts pretty frequently (like less than 1ms) in order to be significantly better than what Sleep() and Delay() can provide. If a "hook" is used, then it might not interfere with stuff like the software serial comms.

Of course there would be a fairly small amount of processing allowed to do in the user-interrupt so that it does not try to become re-entrant. So maybe the VM can have a limit on the number of bytes of code in such a user interrupt service.

-Tony
Back to top
Display posts from previous:   
Page 1 of 1

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008 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