Control Law Accelerator (CLA)
C2000 Microcontroller Workshop - Control Law Accelerator
10 - 9
CLA Initialization
CLA Initialization
1.
Copy CLA task code from flash to CLA program RAM
2.
Initialize CLA data RAMs, as needed
Populate with data coefficients, constants, etc.
3.
Configure the CLA registers
Enable the CLA clock (PCLKCR3 register)
Populate the CLA task interrupt vectors (MVECT1-8 registers)
Select the desired task interrupt sources (MPISRCSEL1 register)
If desired, enable IACK to start task using software (avoids EALLOW)
Map CLA program RAM and data RAMs to CLA space
4.
Configure desired CLA task completion interrupts in the PIE
5.
Enable CLA tasks triggers in the MIER register
6.
Initialize the desired peripherals to trigger the CLA tasks
CLA initialization is performed by the CPU using C code
(typically done with the Peripheral Register Header Files)
Data is passed between the CLA and CPU via message RAMs
Enabling CLA Support in CCS
Set the “Specify CLA support” project option to
‘cla0’
When creating a new CCS project, choosing a device
variant that has the CLA will automatically select this
option, so normally no user action is required
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 ...