Claims
- 1. An electronic circuit with a microcontroller having an operational mode for running multiple application programs, the circuit comprising:
- a register file with a plurality of banks of registers;
- a data memory:
- address mapping logic;
- wherein in the operational mode:
- the address mapping logic is operative to truncate a memory address used in a respective one of the programs and to map the truncated address on a respective bank of registers dependent on the truncated address falling in a particular range
- wherein:
- the plurality of banks of registers comprises first banks of general purpose registers and second banks of special function registers;
- the address mapping logic is operative to:
- truncate the address by ignoring a number of its most significant bits;
- mapping a first range of truncated addresses of the data memory used by the respective program into respective ones of the first banks of general purpose registers; and
- mapping a second range of truncated addresses into respective ones of the second banks of special function registers when direct addressing is employed.
- 2. The circuit of claim 1, wherein:
- the first range is smaller than 1F hex; and
- the second range lies between 400 hex and 7FF hex.
- 3. The circuit of claim 2, wherein any of the multiple application programs is a program that is code compatible with a further program for a 80C51-type controller.
CROSS REFERENCE TO RELATED APPLICATION
This a continuation of application Ser. No. 08/308,774, filed Sep. 19, 1994 now abandoned.
This application is related to U.S. applications entitled MICROCONTROLLER WITH A RECONFIGURABLE PROGRAM STATUS WORD by Wang et al., having U.S. Ser. No. 08/308,058, filed Sep. 19, 1994 and issued as U.S. Pat. No. 5,664,156; entitled A PROCESSOR WITH WORD-ALIGNED BRANCH TARGET IN A BYTE-ORIENTED INSTRUCTION SET by Mizrahi-Shalom et al, having U.S. Ser. No. 08/308,337, filed Sep. 16, 1994 U.S. Pat. No. 5,590,358; and entitled METHOD AND APPARATUS FOR FAST MICROCONTROLLER CONTEXT SWITCHING by Birns et al., having U.S. Ser. No. 08/308,770, filed Sep. 19, 1994 now abandoned; all incorporated by reference herein.
US Referenced Citations (12)
Foreign Referenced Citations (2)
Number |
Date |
Country |
0272150 |
Jun 1988 |
EPX |
WO9415287 |
Jul 1994 |
WOX |
Continuations (1)
|
Number |
Date |
Country |
Parent |
308774 |
Sep 1994 |
|