ARM Technical Support Knowledge Articles

RELOCATING INTERRUPTS

Applies to: RTX51 Tiny Real-time Kernel

Answer


Information in this article applies to:


QUESTION

How do I relocate the timer interrupt used by RTX51 Tiny?

ANSWER

The interrupt vector for the timer used by RTX51 Tiny is defined in the RTX51TNY.A51 file found in the c51 tx_directory.

Open this file with any editor and search for the following:

                RSEG    ?RTX?BITS
?RTX_TS_DELAY:  DBIT    1
?RTX_TS_REQ:    DBIT    1

                CSEG    AT      0BH
                JMP     TIMERINT

?RTX?CODE       SEGMENT CODE

Change the CSEG AT 0BH statement to specify the new address for the interrupt 1. If you relocate your interrupt vectors to 04000H, you should change the 0BH value to 0400BH as follows:

                CSEG    AT      0400BH
                JMP     TIMERINT

Then, you'll have to rebuild RTX51 Tiny and make sure the new library that is create gets copied into the c51lib directory. You may use the GENRTX.BAT batch file to do that:

REM This file generates the RTX51 TINY LIBRARY
..ina51 right.a51
..ina51 vers.a51
..ina51 rtx51tny.a51 debug
..ina51 conf_tny.a51
..indel rtx51tny.lib
..inlib51 create rtx51tny.lib
..inlib51 add right.obj,vers.obj,rtx51tny.obj,conf_tny.obj to rtx51tny.lib
copy rtx51tny.lib ..lib

Or you can create a project file. Be sure you add the following files to the RTX51TNY project: RIGHT.A51, VERS.A51, RTX51TNY.A51, and CONF_TNY.A51.

SEE ALSO

Article last edited on: 2000-12-18 00:00:00

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential