Lab 10: CLA Floating-Point FIR Filter
10 - 22
C2000 Microcontroller Workshop - Control Law Accelerator
Build and Load
22.
Click the “
Build
” button. Select
Yes
to “Reload the program automatically”. Switch
back to the “CCS Debug Perspective” view by clicking the
CCS Debug
icon in the
upper right-hand corner.
Run the Code – Test the CLA Operation (Tasks in C and ASM)
23.
Run the code in real-time mode using the Script function:
Scripts
Realtime
Emulation Control
Run_Realtime_with_Reset
, and watch the graph
window update. To confirm these are updated values, carefully remove and replace the
connector wire to ADCINA0. The results should be the same as before.
24.
Fully halt the CPU (real-time mode) by using the Script function:
Scripts
Realtime Emulation Control
Full_Halt
.
Change All Tasks to Assembly
In this part, we will be using the assembly implementation of the FIR filter and filter delay
line initialization routine located at Task 1 and Task 8, respectively, in the
ClaTasks.asm
file. The setup in
Cla_10.c
will remain the same. The
ClaTasks_C.cla
is no longer
needed and will be excluded from the build. As a result, the CLA C compiler is not used and
the CLA C compiler scratchpad area allocated by the linker command file will not be needed.
25.
Switch to the “CCS Edit Perspective” view by clicking the
CCS Edit
icon in the upper
right-hand corner. Open
ClaTasks.asm
and at the beginning of Task 2 change the
assembly preprocessor .if directive to 1. Recall that the assembly preprocessor .endif
directive is located at the end of Task 8. Now Task 2 through Task 8 will be assembled,
along with Task 1.
26.
Exclude
ClaTasks_C.cla
from the project to avoid conflicts with
ClaTasks.asm
.
In the Project Explorer window right-click on
ClaTasks_C.cla
and select:
Resource Configurations
Exclude from Build…
click
Select All
(for Debug and Release) and then
OK
. This file is no longer needed
since all of the tasks are now in
ClaTasks.asm
.
27.
Open
Lab_10.cmd
and at the beginning of the file change the preprocessor option
setting to 0 so that the scratchpad will not be used. This needs to be done to avoid linking
errors. Save and close all modified files.
Build and Load
28.
Click the “
Build
” button. Select
Yes
to “Reload the program automatically”. Switch
back to the “CCS Debug Perspective” view by clicking the
CCS Debug
icon in the
upper right-hand corner.
Run the Code – Test the CLA Operation (Tasks in ASM)
29.
Run the code in real-time mode using the Script function:
Scripts
Realtime
Emulation Control
Run_Realtime_with_Reset
, and watch the graph
Содержание C2000 Piccolo LaunchPad
Страница 74: ...Interrupts 4 18 C2000 Microcontroller Workshop Reset and Interrupts ...
Страница 100: ...Lab 5 System Initialization 5 26 C2000 Microcontroller Workshop System Initialization ...
Страница 126: ...Lab 6 Analog to Digital Converter 6 26 C2000 Microcontroller Workshop Analog to Digital Converter ...
Страница 218: ...Lab 8 IQmath FIR Filter 8 42 C2000 Microcontroller Workshop Numerical Concepts ...
Страница 236: ...Lab 9 Servicing the ADC with DMA 9 18 C2000 Microcontroller Workshop Direct Memory Access Controller ...
Страница 260: ...Lab 10 CLA Floating Point FIR Filter 10 24 C2000 Microcontroller Workshop Control Law Accelerator ...
Страница 331: ...C2000 Microcontroller Workshop Appendix A Experimenter s Kit A 1 Appendix A Experimenter s Kit ...
Страница 334: ...F28069 controlCARD A 4 C2000 Microcontroller Workshop Appendix A Experimenter s Kit SW2 ...
Страница 336: ...F28035 controlCARD A 6 C2000 Microcontroller Workshop Appendix A Experimenter s Kit SW2 SW3 ...
Страница 338: ...F28335 controlCARD A 8 C2000 Microcontroller Workshop Appendix A Experimenter s Kit LD1 LD2 LD3 SW1 ...