From: Dave N. <n6...@ar...> - 2008-08-09 05:56:34
|
Hello, A handful of us in the Silicon Valley Homebrew Robotics club are trying out amforth. We plan to use it in some robotics projects. I have only gotten as far as getting amforth running in a mega168 in my stk500, but so far everything has gone smoothly. I am very impressed so far. My next step is to get some basic motor control and wheel encoder code working. This evening I have been looking at the interrupt system trying to understand it. In reading amforth.asm, I see where the current interrupt number is stored away in 'intcur' and then interrupts are re-enabled. It seems to me that there is a race with multiple simultaneous interrupts -- if a second interrupt comes in before the value of 'intcur' has been consumed it will be over written and the interrupt will have been lost to forth. It seems to me like intcur should be a bit mask so that all pending interrupts could be represented, not a single interrupt number. Is there something that I am missing? Thanks, Dave |