1
DSP Development System
- Installing and testing Code Composer Studio Version 3.1
- Use of the TMS320C6713 or TMS320C6416 DSK
- Programming examples
This chapter describes how to install and test Texas Instrumentsâ integrated development environment (IDE), Code Composer Studio (CCS), for either the TMS320C6713 or the TMS320C6416 Digital Signal Processing Starter Kit (DSK). Three example programs that demonstrate hardware and software features of the DSK and CCS are presented. It is recommended strongly that you review these examples before proceeding to subsequent chapters. The detailed instructions contained in this chapter are specific to CCS Version 3.1.
1.1 INTRODUCTION
The Texas Instruments TMS320C6713 and TMS320C6416 Digital Signal Processing Starter Kits are low cost development platforms for real-time digital signal processing applications. Each comprises a small circuit board containing either a TMS320C6713 floating-point digital signal processor or a TMS320C6416 fixed-point digital signal processor and a TLV320AIC23 analog interface circuit (codec) and connects to a host PC via a USB port. PC software in the form of Code Composer Studio (CCS) is provided in order to enable software written in C or assembly language to be compiled and/or assembled, linked, and downloaded to run on the DSK. Details of the TMS320C6713, TMS320C6416, TLV320AIC23, DSK, and CCS can be found in their associated datasheets [36â38]. The purpose of this chapter is to introduce the installation and use of either DSK.
A digital signal processor (DSP) is a specialized form of microprocessor. The architecture and instruction set of a DSP are optimized for real-time digital signal processing. Typical optimizations include hardware multiply-accumulate (MAC) provision, hardware circular and bit-reversed addressing capabilities (for efficient implementation of data buffers and fast Fourier transform computation), and Harvard architecture (independent program and data memory systems). In many cases, DSPs resemble microcontrollers insofar as they provide single chip computer solutions incorporating onboard volatile and nonvolatile memory and a range of peripheral interfaces and have a small footprint, making them ideal for embedded applications. In addition, DSPs tend to have low power consumption requirements. This attribute has been extremely important in establishing the use of DSPs in cellular handsets. As may be apparent from the foregoing, the distinctions between DSPs and other, more general purpose, microprocessors are blurred. No strict definition of a DSP exists. Semiconductor manufacturers bestow the name DSP on products exhibiting some, but not necessarily all, of the above characteristics as they see fit.
The C6x notation is used to designate a member of the Texas Instruments (TI) TMS320C6000 family of digital signal processors. The architecture of the C6x digital signal processor is very well suited to numerically intensive calculations. Based on a very-long-instruction-word (VLIW) architecture, the C6x is considered to be TIâs most powerful processor family.
Digital signal processors are used for a wide range of applications, from communications and control to speech and image processing. They are found in cellular phones, fax/modems, disk drives, radios, printers, hearing aids, MP3 players, HDTV, digital cameras, and so on. Specialized (particularly in terms of their onboard peripherals) DSPs are used in electric motor drives and a range of associated automotive and industrial applications. Overall, DSPs are concerned primarily with real-time signal processing. Real-time processing means that the processing must keep pace with some external event; whereas nonreal-time processing has no such timing constraint. The external event to keep pace with is usually the analog input. While analog-based systems with discrete electronic components including resistors and capacitors are sensitive to temperature changes, DSP-based systems are less affected by environmental conditions such as temperature. DSPs enjoy the major advantages of microprocessors. They are easy to use, flexible, and economical.
A number of books and articles have been published that address the importance of digital signal processors for a number of applications [1â22]. Various technologies have been used for real-time processing, from fiber optics for very high frequency applications to DSPs suitable for the audio frequency range. Common applications using these processors have been for frequencies from 0 to 96 kHz. It is standard within telecommunications systems to sample speech at 8 kHz (one sample every 0.125 ms). Audio systems commonly use sample rates of 44.1 kHz (compact disk) or 48 kHz. Analog/digital (A/D)-based data-logging boards in the megahertz sampling rate range are currently available.
1.2 DSK SUPPORT TOOLS
Most of the work presented in this book involves the development and testing of short programs to demonstrate DSP concepts. To perform the experiments described in the book, the following tools are used:
1. A Texas Instruments DSP starter kit (DSK). The DSK package includes:
(a) Code Composer Studio (CCS), which provides the necessary software support tools. CCS provides an integrated development environment (IDE), bringing together the C compiler, assembler, linker, debugger, and so on.
(b) A circuit board (the TMS320C6713 DSK is shown in Figure 1.1) containing a digital signal processor and a 16-bit stereo codec for analog signal input and output.
(c) A universal synchronous bus (USB) cable that connects the DSK board to a PC.
(d...