![Texas Instruments C2000 Piccolo LaunchPad Workshop Manual And Lab Manual Download Page 241](http://html.mh-extra.com/html/texas-instruments/c2000-piccolo-launchpad/c2000-piccolo-launchpad_workshop-manual-and-lab-manual_1094583241.webp)
Control Law Accelerator (CLA)
C2000 Microcontroller Workshop - Control Law Accelerator
10 - 5
Software Triggering a Task
Tasks can also be started by a software trigger
using the CPU
asm(" EALLOW"); //enable protected register access
Cla1Regs.MIFRC.bit.INT4 = 1; //start task 4
asm(" EDIS"); //disable protected register access
Method #1: Write to Interrupt Force Register (MIFRC) register
INT2
INT3
INT4
INT5
INT6
INT7
INT8
INT1
0
1
2
3
4
5
6
7
15 - 8
reserved
Method #2: Use IACK instruction
asm(" IACK #0x0008"); //set bit 3 in MIFRC to start task 4
More efficient – does not require EALLOW
Note: Use of IACK requires Cla1Regs.MCTL.bit.IACKE = 1
Control and Execution Registers
CLA Control and Execution Registers
MPISRCSEL1 – Peripheral Interrupt Source Select (Task 1-8)
MVECT1-8 – Task Interrupt Vector (MVECT1/2/3/4/5/6/7/8)
MMEMCFG – Memory Map Configuration (RAM2E, RAM1E, RAM0E, PROGE)
MPC – 12-bit Program Counter (initialized by appropriate MVECTx register)
MR0-3 – CLA Floating-Point Result Registers (32-bit)
MAR0-1 – CLA Auxiliary Registers (16-bit)
1
0
MIFR
MIER
MPISRCSEL1
CLA
Core
CLA Program Bus
CLA Data Bus
Program
Memory
Data
Memory
MMEMCFG
MVECT1-8
MPC
MAR0
MAR1
CLA_INT1-8
LVF, LUF
MR0
MR1
MR2
MR3
PIE
C28x
CPU
INT11
INT12
S/W Trigger
MIFRC
ADCINT1 to
ADCINT8
EPWM1_INT to
EPWM8_INT
ECAP1_INT to
ECAP3_INT
EQEP1_INT to
EQEP2_INT
CPU Timer 0
no source
•
•
•
•
•
•
•
•
•
•
•
•
Summary of Contents for C2000 Piccolo LaunchPad
Page 74: ...Interrupts 4 18 C2000 Microcontroller Workshop Reset and Interrupts ...
Page 100: ...Lab 5 System Initialization 5 26 C2000 Microcontroller Workshop System Initialization ...
Page 218: ...Lab 8 IQmath FIR Filter 8 42 C2000 Microcontroller Workshop Numerical Concepts ...
Page 334: ...F28069 controlCARD A 4 C2000 Microcontroller Workshop Appendix A Experimenter s Kit SW2 ...
Page 336: ...F28035 controlCARD A 6 C2000 Microcontroller Workshop Appendix A Experimenter s Kit SW2 SW3 ...