CALRAM Operation
MPC561/MPC563 Reference Manual, Rev. 1.2
Freescale Semiconductor
22-15
22.5.2
CALRAM Region Base Address Registers (CRAM_RBAx)
The region base address register defines the base address of a region on the U-bus Flash memory space
that will be overlaid by a portion of the CALRAM memory space and the region size. Because eight such
regions in the Flash can be overlaid by the CALRAM, eight such registers (x = 0, 1, 2, 7) are provided.
The CRAM_RBAx[11:29] provides the base address (starting address) of the of the U-bus Flash region to
be overlaid and the CRAM_RBAx[0:3] provides size corresponding to the region. See
for
details. The RGN_SIZE[0] is reserved and should never be programmed to a one, because the MPC563
has only 512 Kbytes of Flash, and CRAM_RBAx[11] and CRAM_RBAx[12] should never be
programmed to a one. Also, note that if CRAM_OVLCR[CLPS] is set, each of the eight sizes are forced
22
S0
Supervisor-only/supervisor-user privilege (Space assignment) — If the data relocate (DR) bit is
set in Machine Status Register (MSR) and S0 is also set, then any access to the array block by
a user program generates an error. If DR bit is 0, both user and supervisor program can access
the array block, regardless of the value programmed in S0. The CALRAM array may be placed
in supervisor or unrestricted space.
This bit controls the highest 8-Kbyte block (lowest address) of CALRAM in the associated array.
Likewise, S1, S2, and S3 control other three blocks in the same manner.
for
control bit address ranges.
S0 = 0 and DR = 0 both user and supervisor access allowed (array 8-Kbyte block)
S0 = 0 and DR = 1 both user and supervisor access allowed (array 8-Kbyte block)
S0 = 1 and DR = 0 both user and supervisor access allowed (array 8-Kbyte block)
S0 = 1 and DR = 1 only supervisor access allowed (array 8-Kbyte block)
23
R1
Same as R0 except for address ranges shown on
24
D1
Same as D0 except for address ranges shown on
25
S1
Same as S0 except for address ranges shown on
.
26
R2
Same as R0 except for address ranges shown on
27
D2
Same as D0 except for address ranges shown on
28
S2
Same as S0 except for address ranges shown on
.
29
R3
Same as R0 except for address ranges shown on
30
D3
Same as D0 except for address ranges shown on
31
S3
Same as S0 except for address ranges shown on
.
Table 22-4. CRAMMCR Privilege Bit Assignment for 8-Kbyte Array Blocks
Bit Selection
Address Block (Relative)
R0, D0, and S0
0xXXXX 0000 – 0xXXXX 1FFF
R1, D1, and S1
0xXXXX 2000 – 0xXXXX 3FFF
R2, D2, and S2
0xXXXX 4000 – 0xXXXX 5FFF
R3, D3, and S3
0xXXXX 6000 – 0xXXXX 7FFF
Table 22-3. CRAMMCR Bit Descriptions (continued)
Bits
Name
Description
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...