??? 11/15/11 18:36 Read: times |
#184753 - it works! thanks... Responding to: ???'s previous message |
Hi Per,
thank you very much...! I put all the variables to the main() function to be not visible for the other functions in the same module but I didn't think about the memory and the stack. And it is the problem. I use static as you suggest and now it works correctly! So all local variables in main() function are also placed in the stack? But how is it possible to create 1500B local varible in 256B RAM? Does Keil place it into the XRAM or RAM and doesn't care about its overflow? In the datasheet of AT89C51ED2 it is written that the stack may not be located in the XRAM... so how does it work? Thank you very much for your answer and your advice again... ;) |