RTX51: DIRECT ACCESSING OF P2
Information in this article applies to:
We are using RTX51 and we have noticed that it accesses P2 directly for some reason. Due to the nature of our particular custom 8051 we need P2 for I/O. Why is RTX51 accessing P2 and can it be configured to not do it?
RTX51 accesses P2 when you start using reentrant functions with fast tasks. It uses P2 to access different pages of PDATA where fast task reentrant stacks are located.
It is not possible to disable this operation of RTX51.
The only option is to avoid using reentrant functions. If you have functions that are called from more than one task then there are a couple of things you can try (depending on your project):
Refer to pages 118-120 of the RTX51 User's Guide (04.98) for more information on the XDATA/PDATA memory usage of RTX51.
Last Reviewed: Tuesday, July 19, 2005
of your data.