Download Print this page

Texas Instruments TMS320C2000 User Manual page 11

Motor control primer
Hide thumbs Also See for TMS320C2000:

Advertisement

www.ti.com
2.3.4
Utility/Debug Modules
Utility and/or debug modules are mainly used during the software development and debug process.
Typically they are removed at time of software completion; however they can also be left in the code for
system diagnosis if required during field tests or evaluation. Two examples of these modules are shown in
Figure
7. These modules allow the software designer to probe any of the system variables, and display
them in real time via a scope or a graphical output within Texas Instruments' Code Composer Studio.
The PWMDAC module allows the user to monitor waveforms of software variables through a scope, while
DLOG_VIEW provides a memory buffer with a trigger feature that allows Code Composer to display two
graphical waveforms in real-time. Graphical waveforms are continuously updated via the JTAG debug link
while the customer's application software continues to run. Both JTAG and the real-time data flow are
non-intrusive to application software running on any devices.
PwmDacPointer 1
PwmDacPointer 2
PwmDacPointer 3
PwmDacPointer 4
2.3.5
Quick Module Evaluation and Testing
Apart from the more obvious benefits of software modularity previously described, some of the same ideas
can be used to facilitate quick module testing or evaluation, i.e., checking how applicable or how a module
performs. Additionally, it becomes easy to test several "what if" scenarios by simply reconnecting modules
and evaluating several alternatives.
stimulus is applied. The input stimulus and output response of this module under test can be conveniently
monitored in real time on a scope via the PWMDAC or DLOG utility modules.
Apart from evaluating or confirming operation of a known good software module, this technique is useful
when developing new modules. During debug, input stimulus signals can be swept over the entire input
range to look for boundary condition problems or discontinuities in output response. It should be noted that
this process is valid, provided known good stimulus modules are used as input signals. This technique
allows a software designer to check validity of variable ranges, and to ensure waveform integrity over a
required frequency range and system sampling rates.
SPRUGI6 – September 2010
Submit Documentation Feedback
Figure 7. Utility/Debug Modules
DLOG
Dlog 1
MACRO
Dlog2
Dlog3
Dlog4
PWM5A
DAC 1
PWMDAC
MACRO
PWM6A
DAC 2
Low
Pass
PWM7A
DAC 3
Filter
PWM7B
DAC 4
Figure 8
shows a "module under test" setup where a known input
Copyright © 2010, Texas Instruments Incorporated
CCS Graph
Windows
Scope
TMS320C2000 Motor Control Primer
Software Tools
11

Advertisement

loading
Need help?

Need help?

Do you have a question about the TMS320C2000 and is the answer not in the manual?

Questions and answers