|
> > 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 \ \ (...) (26 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 (...) (26 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
|
|
|
|