10.7.4 Execution Registers
The CLA program counter is initialized by the appropriate MVECTx register when an interrupt is received and a
task begins execution. The MPC points to the instruction in the decode 2 (D2) stage of the CLA pipeline. After
a MSTOP operation, if no other tasks are pending, the MPC will remain pointing to the MSTOP instruction. The
MPC register can be read by the main C28x CPU for debug purposes. The main CPU cannot write to MPC.
10.7.4.1 Program Counter (MPC)
The MPC register is described in
Figure 10-13. Program Counter (MPC)
15
12
11
0
Reserved
MPC
R-0
R-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 10-32. Program Counter (MPC) Field Descriptions
Bits
Name
Value
Description
15-12
Reserved
Any writes to these bit(s) must always have a value of 0.
11-0
MPC
0000 -
0FFF
Points to the instruction currently in the decode 2 phase of the CLA pipeline. The value is the offset from
the first address in the CLA program space.
(1)
This register is protected by the dual code security module. The main CPU can read this register for debug purposes but it can not
write to it.
10.7.4.2 CLA Status Register (MSTF)
The CLA status register (MSTF) reflects the results of different operations. These are the basic rules for the
flags:
• Zero and negative flags are cleared or set based on:
– floating-point moves to registers
– the result of compare, minimum, maximum, negative and absolute value operations
– the integer result of operations such as MMOV16, MAND32, MOR32, MXOR32, MCMP32, MASR32,
MLSR32
• Overflow and underflow flags are set by floating-point math instructions such as multiply, add, subtract and
1/x. These flags may also be connected to the peripheral interrupt expansion (PIE) block on your device. This
can be useful for debugging underflow and overflow conditions within an application.
The MSTF register is shown in
.
Figure 10-14. CLA Status Register (MSTF)
31
24
23
16
Reserved
RPC
R/W-0
R/W-0
15
12
11
10
9
8
7
6
5
4
3
2
1
0
RPC
MEALLOW
Rsvd
RND32
Reserved
TF
Reserved
ZF
NF
LUF
LVF
R/W-0
R/W-0
R-0
R/W-0
R-0
R/W-0
R-0
R/W-0 R/W-0 R/W-0 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Control Law Accelerator (CLA)
724
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......