To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 4697
4696  |  4698
Subject: 
Re: Reading sensors at equal intervals.
Newsgroups: 
lugnet.robotics
Date: 
Mon, 26 Apr 1999 11:04:22 GMT
Original-From: 
S. Crawshaw <sc10003@eng.cam.ac.=SayNoToSpam=uk>
Viewed: 
1236 times
  
On Sun, 25 Apr 1999, Kekoa Proudfoot wrote:

By standard firmware, I assume you mean using the byte codes ala NQC or • <snip>
You are right, the timer values as seen by the firmware are in 1/10ths of a
second.  I lost myself in H8-land, which has a 1 ms timer that gets divided
down before being seen by the firmware.

That looks like a "no" then...

How does the timing of tasks work? I seem to recall reading somewhere that
the firmware executes the tasks in sequence - is there any timing element
to this, or does it just do task 1, then immediately onto task 2, etc, and
back to task 1 when it's done. (I'm hoping that it starts each task at a
predictable time...) Or have I got this completely wrong?!

Alternatively, if leave NQC etc behind and go to "H8-land", is it possible
to use LegOS or similar to generate a software interrupt at regular
intervals?

Failing that, I'm willing to write in pure H8 assembly language if
necessary (although I don't really want the hassle of setting up the H8
stuff for gcc)

Stuart


--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message has 1 Reply:
  Re: Reading sensors at equal intervals.
 
(...) IIRC, it preferentially executes a single instruction received from the IR connection, otherwise takes the next instruction from the next task and executes that instead. (...) Probably. I don't think LegOS supports (what I'd call) a software (...) (25 years ago, 26-Apr-99, to lugnet.robotics)

Message is in Reply To:
  Re: Reading sensors at equal intervals.
 
(...) You are right, the timer values as seen by the firmware are in 1/10ths of a second. I lost myself in H8-land, which has a 1 ms timer that gets divided down before being seen by the firmware. -Kekoa (25 years ago, 25-Apr-99, to lugnet.robotics)

25 Messages in This Thread:











Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR