
MPC555
/
MPC556
BURST BUFFER
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
4-17
4.5.1 Exception Table Relocation Operation
When an exception is requested, the CPU initiates a fetch cycle that branches to the
exception routine associated with the exception that caused the fetch. The exception
addresses are fixed within the RCPU architecture and are 0x100 bytes apart from
each other, starting at address 0x0000_0100 or 0xFFF0_0100, depending on the val-
ue of the MSR[IP] bit.
If the relocation feature is disabled, the BBC transfers the exception fetch address to
the internal bus of the MPC555 / MPC556 with no interference.
In order to activate exception table relocation, the following steps are required:
1. Set the MSR[IP] bit. To set this bit out of reset, set the appropriate bit in the re-
set configuration word.
2. Set the ETRE bit in BBCMCR register. See
4.6.4 BBC Module Configuration
for programming details.
3. Program absolute branch instructions at the locations indicated in
pointing to the desired exception handler routines.
If the relocation feature is enabled, the BBC translates the starting address of the ex-
ception routine into the address located at the lowest portion of the internal memory.
At that location, the user must insert a series (table) of consecutive branch instructions
that point to the appropriate exception routines.
NOTE
These branch instructions must utilize absolute addressing modes of
the RCPU (relative branches can not be used).
Thus, the CPU branches twice to reach the appropriate exception routine.
NOTE 1
The eight Kbytes allocated for the exception table can be almost fully
utilized. This is possible if the MPC555 / MPC556’s address space is
not
mapped to the exception address space — that is, if addresses
0xFFF0_0000 to 0xFFF0_1FFF are not part of the MPC555 /
MPC556 address space. In this case, these eight Kbytes can be fully
utilized by the compiler, except for the lower 64 words (256 bytes),
which are reserved for the exception pointers.
NOTE 2
If the CPU issues any address that falls between two successive ex-
ception entries (e.g., 0xFFF0_0104), then an exception is generated
to the CPU if exception relocation is enabled. See
Configuration Register (BBCMCR)
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..