EasyManuals Logo

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #254 background imageLoading...
Page #254 background image
Lab 10: CLA Floating-Point FIR Filter
10 - 18 C2000 Microcontroller Workshop - Control Law Accelerator
Procedure
Open the Project
1. A project named Lab10 has been created for this lab. Open the project by clicking on
Project Import CCS Projects. The “Import CCS Eclipse Projects”
window will open then click Browse… next to the “Select search-directory” box.
Navigate to: C:\C28x\Labs\Lab10\Project and click OK. Then click Finish to
import the project. All build options have been configured the same as the previous lab.
The files used in this lab are:
Adc.c
F2806x_GlobalVariableDefs.c
Cla_10.c
F2806x_Headers_nonBIOS.cmd
ClaTasks.asm
Filter.c
ClaTasks_C.cla
Gpio.c
CodeStartBranch.asm
Lab.h
DefaultIsr_10_12.c
Lab_10.cmd
DelayUs.asm
Main_10.c
Dma.c
PieCtrl.c
ECap_7_8_9_10_12.c
PieVect.c
EPwm_7_8_9_10_12.c
SysCtrl.c
F2806x_Cla_typedefs.h
Watchdog.c
F2806x_DefaultIsr.h
Note: The ClaTasks.asm file will be added during the lab exercise.
Enabling CLA Support in CCS
2. Open the build options by right-clicking on Lab10 in the Project Explorer
window and select Properties. Then under “C2000 Compiler” select Processor
Options”. Notice the “Specify CLA support” is set to cla0. This is needed to
compile and assemble CLA code. Click OK to close the Properties window.
Inspect Lab_10.cmd
3. Open and inspect Lab_10.cmd. Notice that a section called Cla1Progis being
linked to L3DPSARAM. This section links the CLA program tasks to the CPU memory
space. This memory space will be remapped to the CLA memory space during
initialization. Additionally, we are defining a symbol (Cla1Prog_Start) with the
run-time start address of this memory block. This symbol will be used to calculate the
CLA task vector addresses. Also, notice the two message RAM sections used to pass
data between the CPU and CLA.
We are linking CLA code directly to the CLA program RAM because we are not yet
using the flash memory. CCS will load the code for us into RAM, and therefore the CPU
will not need to copy the CLA code into the CLA program RAM. In the flash
programming lab later in this workshop, we will modify the linking so that the CLA code
is loaded into flash, and the CPU will do the copy.
4. The CLA C compiler uses a memory section called CLAscratch for storing local and
compiler temporary variables. This scratchpad memory area is allocated using the linker
command file. It is accessed directly using the symbols __cla_scratchpad_start

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals