SIM Programming and Configuration
MOTOROLA
System Integration Module
9-3
9.3
SIM PROGRAMMING AND CONFIGURATION
9.3.1
MODULE BASE ADDRESS REGISTERS
The base address of all internal peripherals is determined by the MBAR and MBAR2 registers.
The MBAR and MBAR2 are 32-bit write-only supervisor control register that physically reside in the SIM.
They are accessed in the CPU address spaces $C0F and $C0E using the MOVEC instruction. Refer to the
ColdFire Family Programmer’s Reference Manual for use of MOVEC instruction. The MBAR and MBAR2
can be read when in debug mode using background debug commands.
At system reset, the MBAR valid bits (MBAR[0], MBAR2[0]) are cleared to prevent incorrect reference to
resources before the MBAR or MBAR2 are written. The remainder of the MBAR or MBAR2 bits are
uninitialized. To access the MBAR and MBAR2 peripherals, users should write MBAR and MBAR2 with
the appropriate base address and set the valid bit after system reset.
The MBAR2 base address defines a single relocatable memory block along 1024-Mbyte boundaries. If the
MBAR2 valid bit is set, the base address field is compared to the upper two bits of the full 32-bit internal
address to determine if an MBAR2 peripheral is being accessed.
Any processor bus access is first compared for SRAM match (RAMBAR registers), then it is compared
against MBAR and MBAR2. If no match is found in any of these registers, the cycle will be mapped to the
Chip Select and SDRAM units.
Table 9-3 shows the bits in the module base address register (MBAR), and
Table 9-5 shows the bits in the
MBAR2.
ADDRESS
DESCRIPTION
0123
MBAR2 + $0B8 gpio 32-63 output enable reg
GPIO1-ENABLE
MBAR2 + $0BC gpio 32-63 function select
GPIO1-FUNCTION
MBAR2 + $140 secondary interrupts 0-7 priority
INTPRI1
MBAR2 + $144 secondary interrupts 8-15 priority
INTPRI2
MBAR2 + $148 secondary interrupts 16-23 priority
INTPRI3
MBAR2 + $14C secondary interrupts 24-31 priority
INTPRI4
MBAR2 + $150 secondary interrupts 32-39 priority
INTPRI5
MBAR2 + $154 secondary interrupts 40-47 priority
INTPRI6
MBAR2 + $158 secondary interrupts 48-55 priority
INTPRI7
MBAR2 + $15C secondary interrupts 56-63 priority
INTPRI8
MBAR2 + $164 Spurious secondary interrupt vector
SPURVEC
MBAR2 + $168 secondary interrupt base vector register
INTBASE
MBAR2 + $198 software interrupts and interrupt monitor
EXTRAINT
Table 9-2 SIM Memory Map (Continued)
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
..
.