|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Redirecting Interrupt VectorsInformation in this article applies to:
QUESTIONHow do I redirect my interrupts for an application that includes EPROM (starting at 0x0000) and FLASH (starting at 0x2000)? ANSWERYou must have a program in the EPROM and another program in the FLASH memory to accomplish this. The EPROM presumably contains a loader that contains a simple assembly program that has its reset vector at 0 and its interrupts located in memory with the standard offsets; 3H, 0BH, etc. Here is a code snippet to demonstrate the program:
The flash located program has the same reset and interrupt vectors but the offset has been changed from 0 to 2000H using the IV(2000H) directive in the compiler. SEE ALSOLast Reviewed: Friday, July 16, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.