Cortex-M3 Processor (Reference Material)
UG0331 User Guide Revision 15.0 125
Normally, you write the required region number to this register before accessing the MPU_RBAR or
MPU_RASR. However you can change the region number by writing to the MPU_RBAR with the VALID
bit set to 1, see MPU Region Base Address Register, page 126. This write updates the value of the
REGION field.
3.7.4.4 MPU Region Base Address Register
The MPU_RBAR defines the base address of the MPU region selected by the MPU_RNR, and can
update the value of the MPU_RNR. See the register summary in Table 77, page 123 for its attributes.
Write MPU_RBAR with the VALID bit set to 1 to change the current region number and update the
MPU_RNR. The bit assignments are:
Figure 53 • MPU_RBAR Bit Assignments
3.7.4.4.1 ADDR Field
The ADDR field is bits[31:N] of the MPU_RBAR. The region size, as specified by the SIZE field in the
MPU_RASR, defines the value of N:
N = Log
2
(Region size in bytes),
Table 80 • MPU_RNR Bit Assignments
Bits Name Function
[31:8] Reserved.
[7:0] REGION Indicates the MPU region referenced by the MPU_RBAR and
MPU_RASR registers.
The MPU supports 8 memory regions, so the permitted values of
this field are 0-7.
Table 81 • MPU_RBAR Bit Assignments
Bits Name Function
[31:N] ADDR Region base address field. The value of N depends on the region size. For more
information see ADDR Field, page 126.
[(N-1):5] Reserved.
[4] VALID MPU Region Number valid bit:
Write:
0 = MPU_RNR not changed, and the processor:
updates the base address for the region specified in the MPU_RNR
ignores the value of the REGION field
1 = the processor:
updates the value of the MPU_RNR to the value of the REGION field
updates the base address for the region specified in the REGION field.
Always reads as zero.
[3:0] REGION MPU region field:
For the behavior on writes, see the description of the VALID field.
On reads, returns the current region number, as specified by the MPU_RNR.
9$/,'
$''5
1 1
5HVHUYHG 5(*,21
,IWKHUHJLRQVL]HLV%WKH$''5ILHOGLVELWV>@DQGWKHUHLVQR5HVHUYHGILHOG