Control Law Accelerator (CLA)
10 - 10
C2000 Microcontroller Workshop - Control Law Accelerator
CLA Task Programming
CLA Task Programming
Can be written in C or assembly code
Assembly code will give best performance
for time-critical tasks
Writing in assembly may not be so bad!
CLA programs in floating point
Often not that much code in a task
Commonly, the user will use assembly for
critical tasks, and C for non-critical tasks
CLA C Language Implementation and Restrictions
CLA C Language Implementation
Supports C only
(no C++ or GCC extension support)
Different data type sizes than C28x CPU
No support for 64-bit integer or 64-bit floating point
CLA architecture is designed for 32-bit data types
16-bit computations incur overhead for sign-extension
Primarily used for reading and writing to 16-bit
peripheral registers
TYPE
CPU
CLA
char, short
16 bit
16 bit
int
16 bit
32 bit
long
32 bit
32 bit
long long
64 bit
32 bit
float, double
32 bit
32 bit
long double
64 bit
32 bit
pointers
32 bit
16 bit
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 ...