I'm always hoping for a simple solution but it rarely comes. The P&E PROG08SZ is definitely a good solution for FLASH programming on board. Thanks to Bigmac. Back to the subject.
My project relies heavily on external input to timer and IRQ interrupts. The two signals are not synchronized and must not be missed. One signal is pulse width measurement and the other is simply a counter. I test by supplying the fastest expected rate to the inputs and compare the stored result in the target to what was sent.
I am still programming in assembly. I need the interrupt routines to be quick so I think the stack location in page zero should be faster. Is that correct? In any case it looks like I need to determine how much stack space is needed.
Is there a way to trace the stack pointer when I run my tests?
Is there a method of adding up the usage based on interrupt, subroutine calls nested worst case, etc.?
I disable interrupts during an interrupt service so they don't nest. If they are occurring faster than they can be serviced it's a loss of signal situation anyway. I put the variables used in the interrupt service on page zero. The others can be on page 1.
All of my variables are static at this point. I now have the option to pass variables through the stack for the math routines if I chose to (HC908AP16). I would have to add those to the stack usage also.
Your help is appreciated.
Dave
Message Edited by erokc on 2007-04-1204:13 PM