Manufacturing Part Number: D412008-9761 revision A
Literature Number: SPRU127B
January 1997
Printed on Recycled Paper
IMPORTANT NOTICE
T exas Instruments (TI) reserves the right to make changes to its products or to discontinue any
semiconductor product or service without notice, and advises its customers to obtain the latest
version of relevant information to verify , before placing orders, that the information being relied
on is current.
TI warrants performance of its semiconductor products and related software to the specifications
applicable at the time of sale in accordance with TI’s standard warranty . T esting and other quality
control techniques are utilized to the extent TI deems necessary to support this warranty.
Specific testing of all parameters of each device is not necessarily performed, except those
mandated by government requirements.
Certain applications using semiconductor products may involve potential risks of death,
personal injury , or severe property or environmental damage (“Critical Applications”).
TI SEMICONDUCTOR PRODUCTS ARE NOT DESIGNED, INTENDED, AUTHORIZED, OR
WARRANTED TO BE SUITABLE FOR USE IN LIFE-SUPPORT APPLICATIONS, DEVICES
OR SYSTEMS OR OTHER CRITICAL APPLICATIONS.
Inclusion of TI products in such applications is understood to be fully at the risk of the customer.
Use of TI products in such applications requires the written approval of an appropriate TI officer .
Questions concerning potential risk applications should be directed to TI through a local SC
sales office.
In order to minimize risks associated with the customer’s applications, adequate design and
operating safeguards should be provided by the customer to minimize inherent or procedural
hazards.
TI assumes no liability for applications assistance, customer product design, software
performance, or infringement of patents or services described herein. Nor does TI warrant or
represent that any license, either express or implied, is granted under any patent right, copyright,
mask work right, or other intellectual property right of TI covering or relating to any combination,
machine, or process in which such semiconductor products or services might be or are used.
Copyright 1996, Texas Instruments Incorporated
About This Manual
How to Use This Manual
Preface
Read This First
This user’s guide describes the architecture, hardware, assembly language
instructions, and general operation of the TMS320C2xx digital signal
processors (DSPs). This manual can also be used as a reference guide for
developing hardware and/or software applications. In this document, ’C2xx
refers to any of the TMS320C2xx devices, except where device-specific
information is explicitly stated. When device-specific information is given, the
device name may be abbreviated; for example, TMS320C203 will be
abbreviated as ’C203.
How to Use This Manual
Chapter 1,
introduces the key features of the TMS320C2xx generation of that family.
Chapter 2,
providing information about the CPU, bus structure, memory, on-chip
peripherals, and scanning logic.
If you are reading this manual to learn about the ’C209, Chapter 1 1 is important
for you. There are some notable differences between the ’C209 and other
’C2xx devices, and Chapter 1 1 explains these differences. In addition, it shows
how to use this manual to get a complete picture of the ’C209.
The following table points you to major topics.
Introduction
Architectural Overview
, summarizes the TMS320 family of products and then
, summarizes the ’C2xx architecture,
iii
How to Use This Manual
For this information:Look here:
Addressing modes (for addressing data
memory)
Assembly language instructionsChapter 7,
Chapter 6,
Instructions
Assembly language instructions of
TMS320C1x, ’C2x, ’C2xx, and ’C5x
compared
Boot loaderChapter 4,
Clock generatorChapter 8,
CPUChapter 3,
Custom ROM from TIAppendix D,
Appendix B,
TMS320C1x/C2x/C2xx/C5x
Instruction Set Comparison
to TI
EmulatorAppendix E,
Using XDS510 Emulator
FeaturesChapter 1,
Chapter 2,
Input/output portsChapter 4,
InterruptsChapter 5,
Memory configurationChapter 4,
Memory interfacingChapter 4,
On-chip peripheralsChapter 8,
PipelineChapter 5,
Program controlChapter 5,
Program examplesAppendix C,
Program-memory address generationChapter 5,
Registers summarizedAppendix A,
Serial portsChapter 9,
Chapter 10,
StackChapter 5,
Status registersChapter 5,
TimerChapter 8,
TMS320C209 differences and
similarities
Wait-state generatorChapter 8,
Chapter 1 1,
Addressing Modes
Assembly Language
Memory and I/O Spaces
On-Chip Peripherals
Central Processing Unit
Submitting ROM Codes
Design Considerations for
Introduction
Architectural Overview
Memory and I/O Spaces
Program Control
Memory and I/O Spaces
Memory and I/O Spaces
On-Chip Peripherals
Program Control
Program Control
Program Examples
Program Control
Register Summary
Synchronous Serial Port
Asynchronous Serial Port
Program Control
Program Control
On-Chip Peripherals
TMS320C209
On-Chip Peripherals
iv
Notational Conventions
This document uses the following conventions:
-
-
Notational Conventions/Information About Cautions
Program listings and program examples are shown in a specialtypeface.
Here is a segment of a program listing:
OUTPUT LDP#6;select data page 6
BLDD#300, 20h;move data at address 300h to 320h
RET
In syntax descriptions, bold portions of a syntax should be entered as
shown;
italic
portions of a syntax identify information that you specify . Here
is an example of an instruction syntax:
BLDD
BLDD is the instruction mnemonic, which must be typed as shown. You
specify the two parameters,
-
Square brackets ( [ and ] ) identify an optional parameter. If you use an
optional parameter, you specify the information within the brackets; you
do not type the brackets themselves. Y ou separate each optional operand
from required operands with a comma and a space. Here is a sample
syntax:
BLDD
BLDD is the instruction. The two required operands are
destination
you choose to use AR
a chosen value for
BLDD *, #310h, AR3
Information About Cautions
This book contains cautions.
This is an example of a caution statement.
A caution statement describes a situation that could potentially
damage your software or equipment.
source, destination
source
and
source, destination
destination
[, ARn]
.
source
, and the optional operand is ARn. AR is bold and n is italic; if
n
, you must type the letters A and R and then supply
n
(in this case, a value from 0 to 7). Here is an example:
and
The information in a caution is provided for your protection. Please read each
caution carefully.
Read This First
v
Related Documentation From Texas Instruments
Related Documentation From Texas Instruments
This subsection describes related TI documents that can be ordered by
calling the T exas Instruments Literature Response Center at (800) 477–8924.
When ordering, please identify the document by its title and literature number.
The following data sheets contain the electrical and timing specifications for
the TMS320C2xx devices, as well as signal descriptions and pinouts for all of
the available packages:
-
TMS320C2xx data sheet (literature number SPRS025)
-
TMS320F2xx data sheet (literature number SPRS050). This data sheet
covers the TMS320C2xx devices that have on-chip flash memory.
The books listed below provide additional information about using the
TMS320C2xx devices and related support tools, as well as more general
information about using the TMS320 family of DSPs.
TMS320C1x/C2x/C2xx/C5x Code Generation Tools Getting Started
Guide
TMS320C1x, TMS320C2x, TMS320C2xx, and TMS320C5x assembly
language tools and the C compiler for the ’C1x, ’C2x, ’C2xx, and ’C5x
devices. The installation for MS-DOS, OS/2, SunOS, and Solaris
systems is covered.
TMS320C1x/C2x/C2xx/C5x Assembly Language Tools User’s Guide
(literature number SPRU018) describes the assembly language tools
(assembler, linker, and other tools used to develop assembly language
code), assembler directives, macros, common object file format, and
symbolic debugging directives for the ’C1x, ’C2x, ’C2xx, and ’C5x
generations of devices.
TMS320C2x/C2xx/C5x Optimizing C Compiler User’s Guide
number SPRU024) describes the ’C2x/C2xx/C5x C compiler. This C
compiler accepts ANSI standard C source code and produces TMS320
assembly language source code for the ’C2x, ’C2xx, and ’C5x
generations of devices.
(literature number SPRU121) describes how to install the
(literature
TMS320C2xx C Source Debugger User’s Guide
(literature number
SPRU151) tells you how to invoke the ’C2xx emulator and simulator
versions of the C source debugger interface. This book discusses
various aspects of the debugger interface, including window
management, command entry , code execution, data management, and
breakpoints. It also includes a tutorial that introduces basic debugger
functionality.
vi
Related Documentation From Texas Instruments
TMS320C2xx Simulator Getting Started
(literature number SPRU137)
describes how to install the TMS320C2xx simulator and the C source
debugger for the ’C2xx. The installation for MS-DOS, PC-DOS,
SunOS, Solaris, and HP-UX systems is covered.
TMS320C2xx Emulator Getting Started Guide
(literature number
SPRU209) tells you how to install the Windows 3.1 and Windows 95
versions of the ’C2xx emulator and C source debugger interface.
XDS51x Emulator Installation Guide
(literature number SPNU070)
describes the installation of the XDS510, XDS510PP, and
XDS510WS emulator controllers. The installation of the XDS511
emulator is also described.
JT AG/MPSD Emulation Technical Reference
(literature number SPDU079)
provides the design requirements of the XDS510 emulator controller.
Discusses JTAG designs (based on the IEEE 1149.1 standard) and
modular port scan device (MPSD) designs.
TMS320 DSP Development Support Reference Guide
(literature number
SPRU011) describes the TMS320 family of digital signal processors and
the tools that support these devices. Included are code-generation tools
(compilers, assemblers, linkers, etc.) and system integration and debug
tools (simulators, emulators, evaluation modules, etc.). Also covered are
available documentation, seminars, the university program, and factory
repair and exchange.
Digital Signal Processing Applications with the TMS320 Family,
Volumes 1, 2, and 3
(literature numbers SPRA012, SPRA016,
SPRA017) Volumes 1 and 2 cover applications using the ’C10 and ’C20
families of fixed-point processors. Volume 3 documents applications
using both fixed-point processors as well as the ’C30 floating-point
processor.
TMS320 DSP Designer’s Notebook: Volume 1
.
SPRT125)
’C3x, ’C4x, ’C5x, and other TI DSPs
Presents solutions to common design problems using ’C2x,
.
TMS320 Third-Party Support Reference Guide
(literature number
(literature number
SPRU052) alphabetically lists over 100 third parties that provide various
products that serve the family of ’320 digital signal processors. A myriad
of products and applications are offered—software and hardware
development tools, speech recognition, image processing, noise
cancellation, modems, etc.
Read This First
vii
Related Articles
Related Articles
“A Greener World Through DSP Controllers”, Panos Papamichalis,
Multimedia Technology
“A Single-Chip Multiprocessor DSP for Image Processing—TMS320C80”,
Dr. Ing. Dung Tu,
“Application Guide with DSP Leading-Edge Technology”, Y. Nishikori, M.
Hattori, T. Fukuhara, R.Tanaka, M. Shimoda, I. Kudo, A.Yanagitani, H.
Miyaguchi, et al.,
“Approaching the No-Power Barrier”, Jon Bradley and Gene Frantz,
Design
“Beware of BAT: DSPs Add Brilliance to New Weapons Systems”, Panos
Papamichalis,
“Choose DSPs for PC Signal Processing”, Panos Papamichalis,
, January 9, 1995.
DSP & Multimedia Technology
Multimedia Technology
“Developing Nations Take Shine to Wireless”, Russell MacDonald, Kara
Schmidt and Kim Higden,
“Digital Signal Processing Solutions T arget V ertical Application Markets”, Ron
ECN
Wages,
“Digital Signal Processors Boost Drive Performance”, Tim Adcock,
Storage
, September 1995.
, September/October 1995.
, September 1994.
Industrie Elektronik
, Germany, March 1995.
Electronics Engineering
, January/February 1995.
EE Times
, October 2, 1995.
, November 1995.
, October 1994.
DSP &
Electronic
DSP &
Data
viii
“DSP and Speech Recognition, An Origin of the Species”, Panos
Papamichalis,
“DSP Design Takes Top-Down Approach”, Andy Fritsch and Kim Asal,
“DSPs Do Best on Multimedia Applications”, Doug Rasor,
World
, October 9–16, 1995.
“DSPs: Speech Recognition Technology Enablers”, Gene Frantz and Gregg
Bennett,
“Easing JTAG Testing of Parallel-Processor Projects”, Tony Coomes, Andy
Fritsch, and Reid Tatge,
November 1995.
DSP & Multimedia Technology
,
EE Times
, April 17, 1995.
I&CS
, May 1995.
, July 17, 1995.
Asian Electronics Engineer
, July 1994.
DSP
DSP Series Part
Asian Computer
, Manila, Philippines,
Related Articles
“Fixed or Floating? A Pointed Question in DSPs”, Jim Larimer and Daniel
EDN
Chen,
“Function-Focused Chipsets: Up the DSP Integration Core”, Panos
Papamichalis,
, August 3, 1995.
DSP & Multimedia Technology
, March/April 1995.
“GSM: Standard, Strategien und Systemchips”, Edgar Auslander,
Praxis
, Germany, October 6, 1995.
“High T ech Copiers to Improve Images and Reduce Paperwork”, Karl Guttag,
Document Management
“Host-Enabled Multimedia: Brought to You by DSP Solutions”, Panos
Papamichalis,
“Integration Shrinks Digital Cellular Telephone Designs”, Fred Cohen and
Mike McMahan,
“On-Chip Multiprocessing Melds DSPs”, Karl Guttag and Doug Deao,
Series Part III
“Real-Time Control”, Gregg Bennett,
“Speech Recognition”, P.K. Rajasekaran and Mike McMahan,
DSP & Multimedia Technology
Wireless System Design
,
EE Times
Design & Development
“Telecom Future Driven by Reduced Milliwatts per DSP Function”, Panos
Papamichalis,
“The Digital Signal Processor Development Environment”, Greg Peake,
DSP & Multimedia Technology
Embedded System Engineering
, July/August 1995.
, September/October 1995.
, November 1994.
, July 18, 1994.
Appliance Manufacturer
, May 1995.
, May/June 1995.
, United Kingdom, February 1995.
Elektronik
DSP
, May 1995.
Wireless
“The Growing Spectrum of Custom DSPs”, Gene Frantz and Kun Lin,
,
Series Part II
“The Wide World of DSPs, ” Jim Larimer,
“Third-Party Support Drives DSP Development for Uninitiated and Experts
Alike”, Panos Papamichalis,
1994/January 1995.
“Toward an Era of Economical DSPs”, John Cooper,
Times
, Jan. 23, 1995.
EE Times
, April 18, 1994.
DSP & Multimedia Technology
Design News
Read This First
, June 27, 1994.
, December
DSP Series Part I, EE
DSP
ix
Trademarks
Trademarks
TI, 320 Hotline On-line, XDS510, XDS510PP, XDS510WS, and XDS511 are
trademarks of Texas Instruments Incorporated.
HP-UX is a trademark of Hewlett-Packard Company.
Intel is a trademark of Intel Corporation.
MS-DOS and Windows are registered trademarks of Microsoft Corporation.
PAL
is a registered trademark of Advanced Micro Devices, Inc.
OS/2, PC, and PC-DOS are trademarks of International Business Machines
Corporation.
Solaris and SunOS are trademarks of Sun Microsystems, Inc.
x
If Y ou Need Assistance
If You Need Assistance. . .
-
World-Wide Web Sites
TI Onlinehttp://www.ti.com
Semiconductor Product Information Center (PIC)http://www.ti.com/sc/docs/pic/home.htm
DSP Solutionshttp://www.ti.com/dsps
320 Hotline On-line
-
North America, South America, Central America
Product Information Center (PIC)(972) 644-5580
TI Literature Response Center U.S.A.(800) 477-8924
Software Registration/Upgrades(214) 638-0333Fax: (214) 638-7742
U.S.A. Factory Repair/Hardware Upgrades(281) 274-2285
U.S. T echnical T raining Organization(972) 644-5580
DSP Hotline(281) 274-2320Fax: (281) 274-2324Email: dsph@ti.com
DSP Modem BBS(281) 274-2323
DSP Internet BBS via anonymous ftp to ftp://ftp.ti.com/mirrors/tms320bbs
-
Europe, Middle East, Africa
European Product Information Center (EPIC) Hotlines:
Literature Response Center+852 2 956 7288Fax: +852 2 956 2200
Hong Kong DSP Hotline+852 2 956 7268Fax: +852 2 956 1002
Korea DSP Hotline+82 2 551 2804Fax: +82 2 551 2828
Korea DSP Modem BBS+82 2 551 2914
Singapore DSP HotlineFax: +65 390 7179
Taiwan DSP Hotline+886 2 377 1450Fax: +886 2 377 2718
Taiwan DSP Modem BBS+886 2 376 2592
Taiwan DSP Internet BBS via anonymous ftp to ftp://dsp.ee.tit.edu.tw/pub/TI/
-
Japan
Product Information Center+0120-81-0026 (in Japan)Fax: +0120-81-0036 (in Japan)
DSP Hotline+03-3769-8735 or
DSP BBS via Nifty-ServeType “Go TIASP”
-
Documentation
When making suggestions or reporting errors in documentation, please include the following information that is on the title
page: the full title of the book, the publication date, and the literature number.
Describes the TMS320C2xx CPU. Includes information about the central arithmetic logic unit,
the accumulator, the shifters, the multiplier , and the auxiliary register arithmetic unit. Concludes
with a description of the status register bits.
Describes the configuration and use of the TMS320C2xx memory and I/O spaces. Includes
memory/address maps and descriptions of the HOLD (direct memory access) operation and
the on-chip boot loader.
Describes the TMS320C2xx hardware and software features used in controlling program flow,
including program-address generation logic and interrupts. Also describes the reset operation
and power-down mode.
Introduces the TMS320C2xx on-chip peripherals. Describes the clock generator, the
CLKOUT1-pin control register, the timer , the wait-state generator , and the general-purpose I/O
pins.
Describes how the TMS320C209 differs from other TMS320C2xx devices and is a central
resource for all the TMS320C209-specific control registers and configuration information.
Is a concise, central resource for information about the TMS320C2xx on-chip registers.
Includes addresses, reset values, and descriptive illustrations for the registers.
The TMS320C2xx (’C2xx) is one of several fixed-point generations of DSPs
in the TMS320 family. The ’C2xx is source-code compatible with the
TMS320C2x. Much of the code written for the ’C2x can be reassembled to run
on a ’C2xx device. In addition, the ’C2xx generation is upward compatible with
the ’C5x generation of DSPs.
The TMS320 family consists of fixed-point, floating-point, and multiprocessor
digital signal processors (DSPs). TMS320 DSPs have an architecture designed specifically for real-time signal processing. The following characteristics make this family the ideal choice for a wide range of processing applications:
-
Flexible instruction sets
-
High-speed performance
-
Innovative parallel architectures
-
Cost effectiveness
1.1.1History, Development, and Advantages of TMS320 DSPs
In 1982, Texas Instruments introduced the TMS32010, the first fixed-point
DSP in the TMS320 family. Before the end of the year,
magazine awarded the TMS32010 the title “Product of the Year”. Today, the
TMS320 family consists of these generations: ’C1x, ’C2x, ’C2xx, ’C5x, and
’C54x fixed-point DSPs; ’C3x and ’C4x floating-point DSPs; and ’C8x multiprocessor DSPs. See Figure 1–1.
Electronic Products
Devices within a generation of the TMS320 family have the same CPU structure but different on-chip memory and peripheral configurations. Spin-off devices use new combinations of on-chip memory and peripherals to satisfy a
wide range of needs in the worldwide electronics market. By integrating
memory and peripherals onto a single chip, TMS320 devices reduce system
cost and save circuit board space.
1-2
Figure 1–1. TMS320 Family
TMS320 Family
Performance
Introduction
1-3
TMS320 Family
1.1.2Typical Applications for the TMS320 Family
T able 1–1 lists some typical applications for the TMS320 family of DSPs. The
TMS320 DSPs offer adaptable approaches to traditional signal-processing
problems such as filtering and vocoding. They also support complex
applications that often require multiple operations to be performed simultaneously.
Table 1–1. Typical Applications for TMS320 DSPs
AutomotiveConsumerControl
Adaptive ride control
Antiskid brakes
Cellular telephones
Digital radios
Engine control
Global positioning
Navigation
Vibration analysis
Voice commands
General-PurposeGraphics/ImagingIndustrial
Adaptive filtering
Convolution
Correlation
Digital filtering
Fast Fourier transforms
Hilbert transforms
Waveform generation
Windowing
InstrumentationMedicalMilitary
Digital filtering
Function generation
Pattern matching
Phase-locked loops
Seismic processing
Spectrum analysis
Transient analysis
Digital radios/TVs
Educational toys
Music synthesizers
Pagers
Power tools
Radar detectors
Solid-state answering machines
T exas Instruments uses static CMOS integrated-circuit technology to fabricate
the TMS320C2xx DSPs. The architectural design of the ’C2xx is based on that
of the ’C5x. The operational flexibility and speed of the ’C2xx and ’C5x are a
result of an advanced, modified Harvard architecture (which has separate
buses for program and data memory), a multilevel pipeline, on-chip peripherals, on-chip memory , and a highly specialized instruction set. The ’C2xx performs up to 40 MIPS (million instructions per second).
The ’C2xx generation offers the following benefits:
-
Enhanced TMS320 architectural design for increased performance and
versatility
-
Modular architectural design for fast development of additional spin-off
devices
-
Advanced IC processing technology for increased performance
-
Fast and easy performance upgrades for ’C1x and ’C2x source code,
which is upward compatible with ’C2xx source code
TMS320C2xx Generation
-
Enhanced instruction set for faster algorithms and for optimized high-level
language operation
-
New static design techniques for minimizing power consumption
Table 1–2 provides an overview of the basic features of the ’C2xx DSPs.