To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3471
    disable LNP —Steve Hassenplug
   I need to write a program that can send and receive messages, but there are times when the program is running, that I don't want to waste processor time watching for messages. Is it possible to switch LNP on and off, while a program is running? I (...) (21 years ago, 9-Oct-03, to lugnet.robotics.rcx.legos)
   
        Re: disable LNP —Mark Riley
   (...) Steve, If no IR traffic (of any kind) is occurring, then there is very little overhead associated with LNP being active. In any event, this trivial amount of overhead (in systime.c) can't be disabled. What you really need to be concerned about (...) (21 years ago, 10-Oct-03, to lugnet.robotics.rcx.legos)
   
        Re: disable LNP —Steve Hassenplug
   (...) Have the changes from the above thread been implemented in a release of BrickOS, yet? (reduced sensor sample rate) I need to D/L a new release, but I don't want to rush, because I know I'll have to make changes to some of my existing code. (...) (21 years ago, 10-Oct-03, to lugnet.robotics.rcx.legos)
   
        Re: disable LNP —Mark Riley
   (...) Sorry, nothing has made it to an official release. I think Joseph Woolley has some code where he reduced the sample rate to 1KHz (I think). You might try contacting him about it. Mark (21 years ago, 11-Oct-03, to lugnet.robotics.rcx.legos)
   
        Re: disable LNP —Joseph Woolley
   (...) Mark is correct: I made the following two changes which will cause the sensors to be polled at 1KHz: in systime.c; added "bset #0x5,@_AD_CSR:8"; extern void clock_handler(void); ... sys_nohigh: mov.w #0x5a06,r6 ; reset wd timer to 6 mov.w (...) (21 years ago, 12-Oct-03, to lugnet.robotics.rcx.legos)
   
        RE: disable LNP —Ralph Hempel
     (...) Doesn't the H8/300 have a mode where you can scan up to 4 channels at once? Ralph (21 years ago, 12-Oct-03, to lugnet.robotics.rcx.legos)
   
        Re: disable LNP —Steve Hassenplug
   (...) I actually had already tried this, but couldn't get it to work. Turns out I was having a problem with generating the linker file (genlds). Once I resolved that, it works GREAT! As you may expect, the processor intensive program I've written, (...) (21 years ago, 13-Oct-03, to lugnet.robotics.rcx.legos)
 

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