To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / 40
39  |  41
Subject: 
RE: Ir transmission
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Fri, 16 Apr 1999 13:33:04 GMT
Viewed: 
1977 times
  
In general, NQC hooks in through the RCX tasks and firmware, so it should
be possible in FORTH.

The bytecode interpreter does it, which is what NQC maps to (opcode 43).
I'd prefer a timer (or access to a clock) with millisecond resolution rather
than a delay because things will get interesting whan multitasking.

What is the CPU clock frequency of the RCX?

I think its around 16 Mhz for the crystal and 4 MHz for the cycle time. I think
there is a msec timer buried in the OC1A handler (see Kekoa's disassembly)

I agree that we want something to trigger a run flag instead of having to check
the timer continuously. As far as multitasking goes, we really need to figure
out how many tasks we need. There are essentially six tasks in the RCX as far
as I can tell. They independently handle things like motors, sensors, timers,
RCX code, etc.

I'd like to spend some time on the next version soon, Thanks for your input so far
John.

Anyone else out there using pbFORTH? I'd love to hear from you...

Cheers,

Ralph Hempel - P.Eng

--------------------------------------------------------
Check out pbFORTH for LEGO Mindstorms at:
<http://www.bmts.com/~rhempel/lego/pbFORTH/default.html>
--------------------------------------------------------
Reply to:      rhempel at bmts dot com
------------------------------------------------------



Message has 1 Reply:
  Re: Ir transmission
 
(...) Well, in the spirit of FORTH there should be no finite number, just create and destroy them on the fly as and whan you need them. I have been wandering around the internet looking and found that hForth has one already: \ hForth multitasker \ \ (...) (25 years ago, 17-Apr-99, to lugnet.robotics.rcx.pbforth)

Message is in Reply To:
  Re: Ir transmission
 
(...) The bytecode interpreter does it, which is what NQC maps to (opcode 43). I'd prefer a timer (or access to a clock) with millisecond resolution rather than a delay because things will get interesting whan multitasking. What is the CPU clock (...) (25 years ago, 16-Apr-99, to lugnet.robotics.rcx.pbforth)

9 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