Safety
MPC5606S Microcontroller Reference Manual, Rev. 7
116
Freescale Semiconductor
4.1.4
Functional description
4.1.4.1
General
This module provides a generic register (address) write-protection mechanism. The protection size can be:
•
32-bit (address = multiples of 4)
•
16-bit (address = multiples of 2)
•
8-bit (address = multiples of 1)
•
Unprotected (address = multiples of 1)
This section gives examples for various protection configurations.
For all addresses that are protected there are SLBR
n
.SLB
m
bits that specify whether the address is locked.
When an address is locked it can only be read but not written in any mode (supervisor/normal). If an
address is unprotected, the corresponding SLBR
n
.SLB
m
bit is always 0b0, no matter what software is
writing to.
4.1.4.2
Change lock settings
To change the setting whether an address is locked or unlocked, the corresponding SLBR
n
.SLB
m
bit needs
to be changed. This can be done using the following methods:
•
Modify the SLBR
n
.SLB
m
directly by writing to area #4
•
Set the SLBR
n
.SLB
m
bit(s) by writing to the mirror module space (area #3)
Both methods are explained in the following sections.
4.1.4.2.1
Change lock settings directly via area #4
In memory area #4, the lock bits are located. They can be modified by writing to them. Each SLBR
n
.SLB
m
bit has a mask bit SLBR
n
.WE
m
, which protects it from being modified. This masking makes
clear-modify-write operations unnecessary.
shows two modification examples. The left example shows a write access to the SLBR
n
register
specifying a mask value that allows modification of all SLBR
n
.SLB
m
bits. The example on the right
specifies a mask that only allows modification of the bits SLBR
n
.SLB[3:1].
Figure 4-5. Change lock settings directly via area #4
1
SLB3
SLB2
SLB1
SLB0
SLBR
n
.WE[3:0]
SLBR
n
.SLB[3:0]
SLB3
SLB2
SLB1
SLB0
SLBR
n
.SLB[3:0]
change allowed
to SLB3
write data
to SLB2
to SLB1
to SLB0
1
1
1
1
SLBR
n
.WE[3:0]
to SLB3
write data
to SLB2
to SLB1
to SLB0
1
1
0
change allowed
Содержание MPC5602S
Страница 76: ...Overview MPC5606S Microcontroller Reference Manual Rev 7 74 Freescale Semiconductor...
Страница 82: ...Memory Map MPC5606S Microcontroller Reference Manual Rev 7 80 Freescale Semiconductor...
Страница 112: ...Signal Description MPC5606S Microcontroller Reference Manual Rev 7 110 Freescale Semiconductor...
Страница 166: ...Analog to Digital Converter ADC MPC5606S Microcontroller Reference Manual Rev 7 164 Freescale Semiconductor...
Страница 182: ...Boot Assist Module BAM MPC5606S Microcontroller Reference Manual Rev 7 180 Freescale Semiconductor...
Страница 234: ...Clock Description MPC5606S Microcontroller Reference Manual Rev 7 232 Freescale Semiconductor...
Страница 286: ...Crossbar Switch XBAR MPC5606S Microcontroller Reference Manual Rev 7 284 Freescale Semiconductor...
Страница 470: ...e200z0h Core MPC5606S Microcontroller Reference Manual Rev 7 468 Freescale Semiconductor...
Страница 524: ...Enhanced Direct Memory Access eDMA MPC5606S Microcontroller Reference Manual Rev 7 522 Freescale Semiconductor...
Страница 546: ...Error Correction Status Module ECSM MPC5606S Microcontroller Reference Manual Rev 7 544 Freescale Semiconductor...
Страница 669: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 667...
Страница 670: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 668 Freescale Semiconductor...
Страница 716: ...FlexCAN MPC5606S Microcontroller Reference Manual Rev 7 714 Freescale Semiconductor...
Страница 882: ...LIN Controller LINFlex MPC5606S Microcontroller Reference Manual Rev 7 880 Freescale Semiconductor...
Страница 901: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 899...
Страница 902: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 900 Freescale Semiconductor...
Страница 955: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 953...
Страница 956: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 954 Freescale Semiconductor...
Страница 1072: ...Quad Serial Peripheral Interface QuadSPI MPC5606S Microcontroller Reference Manual Rev 7 1070 Freescale Semiconductor...
Страница 1096: ...Reset Generation Module MC_RGM MPC5606S Microcontroller Reference Manual Rev 7 1094 Freescale Semiconductor...
Страница 1106: ...Real Time Clock RTC API MPC5606S Microcontroller Reference Manual Rev 7 1104 Freescale Semiconductor...
Страница 1186: ...Stepper Stall Detect SSD MPC5606S Microcontroller Reference Manual Rev 7 1184 Freescale Semiconductor...
Страница 1213: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1211...
Страница 1214: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 1212 Freescale Semiconductor...
Страница 1238: ...Voltage Regulators and Power Supplies MPC5606S Microcontroller Reference Manual Rev 7 1236 Freescale Semiconductor...
Страница 1252: ...Wakeup Unit WKPU MPC5606S Microcontroller Reference Manual Rev 7 1250 Freescale Semiconductor...
Страница 1258: ...Registers Under Protection MPC5606S Microcontroller Reference Manual Rev 7 1256 Freescale Semiconductor...
Страница 1323: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1321...
Страница 1324: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 1322 Freescale Semiconductor...