EasyManuals Logo

Texas Instruments TMS320F2837 D Series Workshop Guide And Lab Manual

Texas Instruments TMS320F2837 D Series
324 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 #245 background imageLoading...
Page #245 background image
Lab 9: CLA Floating-Point FIR Filter
TMS320F2837xD Microcontroller Workshop - Control Law Accelerator 9 - 21
11. Modify the end of Cla_9.c to do the following:
- Enable the “CLA1_1” interrupt in the PIE (Hint: use the PieCtrlRegs structure)
- Enable the appropriate core interrupt in the IER register
12. Open and inspect DefaultIsr_9_10.c. Notice that this file contains the CLA interrupt
service routine. Save all modified files.
Build and Load
13. Click theBuildbutton and watch the tools run in the Console window. Check for
errors in the Problems window.
14. Click the Debug button (green bug). A Launching Debug Session window will open.
Select only CPU1 to load the program on (i.e. uncheck CPU2), and then click OK. Then
the CCS Debug perspective view should open, the program will load automatically, and
you should now be at the start of main(). If the device has been power cycled since the
last lab exercise, be sure to configure the boot mode to EMU_BOOT_SARAM using the
Scripts menu.
Run the Code Test the CLA Operation (Tasks in C)
Note: For the next step, check to be sure that the jumper wire connecting PWM1A (header J4,
pin #40) to ADCINA0 (header J3, pin #30) is in place on the LaunchPad.
15. Run the code in real-time mode using the Script function: Scripts Realtime
Emulation Control Run_Realtime_with_Reset. Open and watch the
memory browser window update. Verify that the ADC result buffer contains updated
values.
16. Setup a dual-time graph of the filtered and unfiltered ADC results buffer. Click:
Tools Graph Dual Time and set the following values:
Acquisition Buffer Size 50
DSP Data Type 16-bit unsigned integer
Sampling Rate (Hz) 50000
Start Address A AdcBufFiltered
Start Address B AdcBuf
Display Data Size 50
Time Display Unit
µs
17. The graphical display should show the filtered PWM waveform in the Dual Time A display
and the unfiltered waveform in the Dual Time B display. You should see that the results
match the previous lab exercise.
18. Fully halt the CPU (real-time mode) by using the Script function: Scripts
Realtime Emulation Control Full_Halt.

Table of Contents

Other manuals for Texas Instruments TMS320F2837 D Series

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments TMS320F2837 D Series Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320F2837 D Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals