TC1796
System Units (Vol. 1 of 2)
CPU Subsystem
User’s Manual
2-20
V2.0, 2007-07
CPU, V2.0
2.4.5
Memory Protection Registers
As shown in
, there are two Memory Protection Register Sets in the TC1796,
Set 0 and Set 1, which specify memory protection ranges and permissions for code and
data. Set 2 and Set 3 are not implemented in the TC1796. The PSW.PRS bit field
determines which of these sets is currently in use by the CPU.
The Memory Protection Registers are described in detail in the TriCore 1 Architecture
Manual chapter - Memory Protection System.
Figure 2-10 Memory Protection Register Sets of the TC1796
Data Memory Protection Set 0
MCA05594
DPM0[31:24]
DPR0_3U
DPR0_3L
Range 3
DPM0[23:16]
DPR0_2U
DPR0_2L
Range 2
DPM0[15:8]
DPR0_1U
DPR0_1L
Range 1
DPM0[7:0]
DPR0_0U
DPR0_0L
Range 0
Code Memory Protection Set 0
CPM0[15:8]
CPR0_1U
CPR0_1L
Range 1
CPM0[7:0]
CPR0_0U
CPR0_0L
Range 0
Data Memory Protection Set 1
DPM1[31:24]
DPR1_3U
DPR1_3L
Range 3
DPM1[23:16]
DPR1_2U
DPR1_2L
Range 2
DPM1[15:8]
DPR1_1U
DPR1_1L
Range 1
DPM1[7:0]
DPR1_0U
DPR1_0L
Range 0
Code Memory Protection Set 1
CPM1[15:8]
CPR1_1U
CPR1_1L
Range 1
CPM1[7:0]
CPR1_0U
CPR1_0L
Range 0
Data and Code Memory
Protection Sets 0
are selected with
PSW.PRS = 00
B
Data and Code Memory
Protection Sets 1
are selected with
PSW.PRS = 01
B