The interrupt vector is always stored in the 0003H code memory. Is it possible to store it in another location ? Thank You
Thank You. I have tried to use "#pragma intvector(0x8000)" in my main.c where my interrupt routines are defined. I have check the .m51 file, and the interrupt vector table has been shifted to 0x8000 onwards. But after I have done all these, my program cannot work. Did I miss out anything ? Thank You
http://www.keil.com/support/man/docs/c51/c51_intvector.htm "Did I miss out anything ?" Almost certainly: you have succesfully got the tools to place the vectors at a different location, but you haven't mentioned doing anything to get the hardware to look at that new location! How do you propose that your 8051 silicon will find these re-located interrupt vectors...? This comes back to Gavin's original response to you: "I would expect it depends on the uC you're using, and suggest you take a look at its datasheet."
I suggest you realize that while there may, indeed, be such a person as a "PC programmer" to call anyone a " '51 embedded programmer" would be the equivalent of calling that person "worthless". If you want to work with the '51 you need to become (study as needed) an "embedded engineer". To succesfully work with small micros such as the '51 it is impossible to be hardware ignorant. Erik
http://www.keil.com/support/docs/189.htm Jon
http://www.keil.com/support/docs/189.htm Yes, that tells you everything you need to do to generate the code - but you still need to have the right hardware to make any use of it! This is not a software-only issue!