 | | RE: [long] Interrupt programming, buggy code
|
|
Much better and more accurate answer from Mark - who knows a lot more about GCC that I do :-) I should stick to commenting on assembly language stuff. Ralph (...) <snippage> (23 years ago, 2-Mar-04, to lugnet.robotics.rcx)
|
| |
 | | 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 (...) (23 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 (...) (23 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 (...) (23 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 (...) (23 years ago, 2-Mar-04, to lugnet.robotics.rcx)
|
| |
 | | rcx communications
|
|
hello, for the needs of a robotic course, I am looking for programs for 2 rcx that will make 2 robots communicate and enable some "team play". if you have examples to send me, I will be pleased to get some help. my email: gros_chacal@hotmail.com (...) (23 years ago, 2-Mar-04, to lugnet.robotics.rcx.java)
|
| |
 | | 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 (...) (23 years ago, 1-Mar-04, to lugnet.robotics.rcx)
|
| |
 | | Where is prototype definition of packet_producer( ) ?
|
|
Thanks to those who have responded to my queries. Your info has been very helpful. Now I am trying to modify # of arguments to packet_producer() in program.c, but I am unable to find prototype definition in any .h files. Can someone tell me where it (...) (23 years ago, 1-Mar-04, to lugnet.robotics.rcx.legos)
|
| |
 | | Vision Command Install Help
|
|
Rob Limbaugh is the MAN! If you ever have trouble or questions, (URL) is an invaluable resource! Thank Rob! Youda Man! e (23 years ago, 1-Mar-04, to lugnet.robotics)
|
| |
 | | Re: control large number of leds (?)
|
|
Wow, I thought this list was dead. Hmmm. You're missing two key bits of information : 1) Do you want to individually control each LED's brightness? 2) How often do you wish to change the brightness? If you are attempting to make a television like (...) (23 years ago, 29-Feb-04, to lugnet.robotics.handyboard)
|
| |
 | | 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! (23 years ago, 29-Feb-04, to lugnet.robotics.rcx)
|
| |
 | | control large number of leds (?)
|
|
hi. i'm working in a project in which i'll need to control the brightness of about 700 leds. i've just begun to research solutions - and i'm not sure the hb is the right microcontroller for the job, but i thought perhaps an hb user on this list (...) (23 years ago, 29-Feb-04, to lugnet.robotics.handyboard)
|
| |
 | | 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 (...) (23 years ago, 29-Feb-04, to lugnet.robotics.rcx)
|
| |
 | | New LUGNET server hardware details
|
|
So, we've purchased our cool new servers, from Cambridge, MA vendor "PCs for Everyone". Todd and I and several other friends have gotten systems from them before, and have been extremely pleased -- they know their stuff, including Linux, which is (...) (23 years ago, 28-Feb-04, to lugnet.admin.general, lugnet.admin.finance, lugnet.general, lugnet.lego.direct, lugnet.robotics, lugnet.trains, lugnet.technic, lugnet.space, lugnet.castle, lugnet.org, lugnet.announce) !!
|
| |
 | | LUGNET server fund drive a roaring success!
|
|
Update: Thanks to donations totalling over $4K from more than 150 people around the world, we not only hit our target in four short days days but exceeded it -- by a margin wide and comfortable enough to afford a superb hardware configuration and (...) (23 years ago, 28-Feb-04, to lugnet.admin.finance, lugnet.admin.general, lugnet.general, lugnet.robotics, lugnet.trains, lugnet.technic, lugnet.castle, lugnet.space, lugnet.org, lugnet.announce, FTX) !!
|
| |
 | | Respondre el missatge: Use of lnp_addressing_write() in an RCX program.
|
|
You must send the packet to port 0 of the destination. The dest address is conformed by the address in the upper 4 bits and the port in the lower 4 of the char. So if you put address = 6 you are saying -> host=0 port=6 and you must send to host=6, (...) (23 years ago, 27-Feb-04, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: Sense and grab robot
|
|
(...) The light sensor that comes with the main set can easily tell the difference between a white and a black ball. I'm not sure how complex of a robot you are wanting your class to build, however, a small grabber on the front of a rover would be (...) (23 years ago, 26-Feb-04, to lugnet.robotics)
|
| |
 | | Re: Spurious bad readings from sensors
|
|
(...) Could it be noise getting into the analog power supply? If you're switching between brake and full power with the motor ports, it seems possible that some spikes could get through to the A/D converter. You might be able to test this by (...) (23 years ago, 25-Feb-04, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: Sense and grab robot
|
|
(...) Take a look at Mario and Giulio Ferrari's home pages at (URL) and (URL) progects here may be too complex, but I hope that will help. Aus (23 years ago, 25-Feb-04, to lugnet.robotics)
|
| |
 | | Re: Spurious bad readings from sensors
|
|
Hi Mark, Thanks for the help. In Steve's legway code he reads from LIGHT_1 and LIGHT_3 (even if there is no sensor hooked to LIGHT_3). When I was running his code with instrumentation for both sensors, I had nothing hooked to SENSOR_3, and I still (...) (23 years ago, 25-Feb-04, to lugnet.robotics.rcx.legos)
|