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 #234 background imageLoading...
Page #234 background image
Lab 9: Servicing the ADC with DMA
9 - 16 C2000 Microcontroller Workshop - Direct Memory Access Controller
This information will be used in the next step.
7. Modify the end of Dma.c to do the following:
- Enable the “DINTCH1interrupt in the PIE (Hint: use the PieCtrlRegs structure)
- Enable the appropriate core interrupt in the IER register
8. Open and inspect DefaultIsr_9.c. Notice that this file contains the DMA interrupt
service routine. Save and close all modified files.
Build and Load
9. Click theBuild” button and watch the tools run in the Console window. Check for
errors in the Problems window.
10. Click the Debug” button (green bug). 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 DMA Operation
Note: For the next step, check to be sure that the jumper wire connecting PWM1A (pin #
GPIO-00) to ADCINA0 (pin # ADC-A0) is in place on the Docking Station.
11. Run the code in real-time mode using the Script function: Scripts Realtime
Emulation Control Run_Realtime_with_Reset, and watch the memory
browser update. Verify that the ADC result buffer contains updated values.
12. 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 32-bit floating-point
Sampling Rate (Hz) 50000
Start Address – A AdcBufFilteredIQ
Start Address – B AdcBufIQ
Display Data Size 50
Time Display Unit
µs
13. 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.
14. 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 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