Re: [Sdcc-user] Problem with interrupts.

2009-05-12 Thread Néstor
Hello, this is a lot of information for today, people. Since we need it ASAP, I've started two different branches: one with, and another without, interrupts. Tomorrow, I'm going to debug the interrupt-driver version, and answer to Raphael, and any other question. On Tue, May 12, 2009 at 2:01 P

Re: [Sdcc-user] Problem with interrupts.

2009-05-12 Thread Stephen W Beck
If possible ide like to see your scheduler? On Tue, 12 May 2009, s...@dummgebabbel.de wrote: Hello Raphael Neider schrieb: Dear Néstor, your answer is very appreciated. I have refactored the code as you told, I put all the global variables in a header file, called "defs.h". I have also t

Re: [Sdcc-user] Problem with interrupts.

2009-05-12 Thread Néstor
Hello, On Mon, May 11, 2009 at 10:56 PM, Raphael Neider wrote: > Dear Néstor, > >> your answer is very appreciated. I have refactored the code as you >> told, I put all the global variables in a header file, called >> "defs.h". I have also taken out all the calls to functions from the >> interrup

Re: [Sdcc-user] Problem with interrupts.

2009-05-12 Thread Raphael Neider
Hi, > One sidenote. IIRC you cannot access the stack on the pic16f devices. > This is only possible on pic18f devices. There is a wonderfull appnote > about that on microhcip website. You are right, but ... I was talking about the pseudo stack that is used by the compiler to pass arguments to s

Re: [Sdcc-user] Problem with interrupts.

2009-05-11 Thread sdcc
Hello Raphael Neider schrieb: > Dear Néstor, > >> your answer is very appreciated. I have refactored the code as you >> told, I put all the global variables in a header file, called >> "defs.h". I have also taken out all the calls to functions from the >> interrupt. Now, interrupt handler routine

Re: [Sdcc-user] Problem with interrupts.

2009-05-11 Thread Raphael Neider
Dear Néstor, > your answer is very appreciated. I have refactored the code as you > told, I put all the global variables in a header file, called > "defs.h". I have also taken out all the calls to functions from the > interrupt. Now, interrupt handler routine is a lot simpler. Just one > thing: I

Re: [Sdcc-user] Problem with interrupts.

2009-05-11 Thread Néstor
Thank you, Raphael. your answer is very appreciated. I have refactored the code as you told, I put all the global variables in a header file, called "defs.h". I have also taken out all the calls to functions from the interrupt. Now, interrupt handler routine is a lot simpler. Just one thing: I hav

Re: [Sdcc-user] Problem with interrupts.

2009-05-10 Thread Raphael Neider
Dear Néstor, > I'm running into trouble (once more) when executing my app. I attach > the code so you can see. Your code is too complex to effectively debug it without the hardware, so I can just contribute some ideas: You modify totaltime[] both within Intr() and outside it without protecti