| | Re: [long] Interrupt programming, buggy code
|
|
Hi Benjamin, When you declare your ISR as an interrupt_handler, GCC terminates the function with an "rte" instead of an "rts". The ROM code that dispatches the interrupt to your function is already doing the rte so your function should not. Here's (...) (21 years ago, 2-Mar-04, to lugnet.robotics.rcx)
|
|
| | Re: [long] Interrupt programming, buggy code
|
|
(...) All I can give you is guesses. There are pleny of gurus here who will know the answer. Do you know if the display_debug() routine or any of the things it uses depends on the interrupts you are taking over? If default interrupt handler provides (...) (21 years ago, 2-Mar-04, to lugnet.robotics.rcx)
|
|
| | RE: [long] Interrupt programming, buggy code
|
|
Having fun yet :-) There are a few things you might want to keep in mind when writing ISRs for the RCX... First, avoid calling into the ROM from an interrupt handler. You never know how long they take, and you may in fact be hitting another OCIA (...) (21 years ago, 2-Mar-04, to lugnet.robotics.rcx)
|
|
| | [long] Interrupt programming, buggy code
|
|
Hi all, I am currently programming the Lego RCX at low-level (plain C) using the GCC cross-compiler for Hitachi H8/300 and Kekoa Proudfoot's LibRCX. In fact, I'm designing exercises for students that learn micro-controller programming. Therefore, I (...) (21 years ago, 2-Mar-04, to lugnet.robotics.rcx)
|
|
| | Re: Get/SetCommTimeouts
|
|
"Dick Swan" <dickswan@sbcglobal.net> wrote in message (...) I kind of suspected that .. but was not sure. I looked in the source of NQC and brickOS (and some programs I found on the Web) and they all seemed to use these functions regardless. But I (...) (21 years ago, 1-Mar-04, to lugnet.robotics.rcx)
|
|
| | Re: Get/SetCommTimeouts
|
|
"Shashank Date" <sdate@everestkc.net> wrote in message news:Htuzyn.6qG@lugnet.com... (...) parameters. I (...) The "SetCommTimeout" function only applies to "COMx" serial ports. You are trying to use it on a USB port! (21 years ago, 29-Feb-04, to lugnet.robotics.rcx)
|
|
| | Get/SetCommTimeouts
|
|
I am trying to write a C program (using VC++ 6.0) to talk to RCX 2.0 on my Win XP (Home Ed) box. Everything seems to be OK except the get/set of Communication parameters. I cannot understand why. I have attached the minimal C program which does (...) (21 years ago, 29-Feb-04, to lugnet.robotics.rcx)
|
|
| | Re: Digitrax DZ123
|
|
(...) [snip] (...) Hi All, I'm following up on my earlier post (above). I purchased some of these DZ123 decoders and finally got around to installing a couple of them. Street price for me ended up being about $16 (US) each. Installation went (...) (21 years ago, 17-Feb-04, to lugnet.trains, lugnet.robotics.rcx, FTX)
|
|
| | Re: RCXCC and Visual NQC 2001
|
|
(...) BricxCC works with XP and both IR towers. The USB tower works with XP. You can get just the USB tower from Pitsco, but I do not know if you can get just the USB tower from LEGO. If you get the USB tower from Pitsco you will need to download (...) (21 years ago, 17-Feb-04, to lugnet.robotics.rcx)
|
|
| | Re: RCXCC and Visual NQC 2001
|
|
(...) Does any program work with XP and the serial tower? I did download BricxCC and it worked, did not try to use any IR tower. Does the USB tower work with XP? Also can I get just the USB tower from LEGO? Thanks and sorry for all the questions. (...) (21 years ago, 17-Feb-04, to lugnet.robotics.rcx, FTX)
|