Sei sulla pagina 1di 19

Texas Instruments

TMS320C55x DSP Online


Seminar
October 15, 2004
10:00 am to 11:00 am
Beijing/Taipei Time

TMS320C5000, TMS320C55x, C55x, and Code Composer Studio are


trademarks of Texas Instruments, Inc.

Presenter:
Chris Fan
FAE Manager
Value Provider Int
Int’’l Corporation

1
Agenda

? Intro to C55x DSP Family and New Products


? CPU Architecture Intro, Efficiency Design
? High Performance and Low Power
? Peripheral Overview and Programming With
Ease
? Using Chip Support Library (CSL)
? C55x DSP Development
? CCS2.2/3.0, DSK, JTAG Emulator and C55x EVM
? Questions & Answers

? Intro to C55x DSP Family and New Products

?TMS320C55x DSP Family


?New C5509A, C5507 and C5503 DSP

2
TM
C5000 DSP Platform Roadmap
Customer Requirements Priority by Vector

C55x Portable Media


Power Efficiency/Performance /Peripheral Integration

Telecom/VOIP Communication/
Prod Next
uctio Infrastructure Audio
Sam
n ?Code Reuse ?Media Periphs:
pling C551X ?Increased On-chip SRAM, USB, etc.
D 600 M IPS HP Mem I/F ?Low Power
e ?Higher Performance C55x (Standby, Op)
F
uv C5510 Next ?Moderate
e 320-400 Performance
t C5509A
u l MIPS C5502
400 MIPS,
o >600 MIPS USB
r
ep
Low Cost
m C5421 C5502
C5501 VoIP/Client/Secure
200 MIPS 400 -600
e 600 C5507 Radio/GPS/Biometrics
MIPS C5503
n MIPS 400 MIPS
400 MIPS ?Code Reuse
t
C5416 ?Lower Cost
120-160 C5509 ?Low Power
MIPS 288
MIPS
Ultra-Embedded
C5410 C5416 Signal Processing/
100-160 120-160
MIPS
Conditioning
MIPS
C5409 ?Low Cost
80-160 MIPS C5405 C5000 ?Small Pkg size
C5407 80 MIPS Next ?Low Power
C5000TM C5402 C5404 120 MIPS
7x7 uBGA
Devices C5401 100-160 120 MIPS
50 MIPS MIPS

TMS320VC5509A –
Portable Media/Comm /Audio Device
6 6 6 2 2 1
Dual MAC; 200 MHz; 400 MIPS
M M
2 Timers

Mc ? Very low standby power


Mc M Mc M
I2 RT
BS BS C/ BS C/ Peripherals
C C
P P S P S
D D ? USB 2.0 full speed
? 10-bit 500 us ADC for keypad, button
and battery monitoring functions
? Real-time clock w/ 32KHz crystal
Interface
External
Memory

input, separate power


C55x TM
Peripheral Bus

DSP Core ? MultiMedia Card/Secure Digital (MMC/SD)


5 Serial Ports
INT

? 3 McBSPs, 16-bit EMIF


? I2C multi-master and slave interface
MEMORY ? 3 timers: 2 general purpose, 1 WD
6-
JTAG

SARAM 7 ? 36/35 GPIO, 8/7 Dedicated


Chan. DARAM ROM
192 KB (u*BGA/LQFP)
DMA 64 KB 64 KB
? 16-bit HPI muxed w/address bus
Memory
Sy 256 KB on-chip memory:
10- ?
ste Wat
USB

64 KB DARAM, 192 KB SARAM


PLL

GP EH US m bit GP chd
IO PI B A/ IO ? 64 KB ROM
PL og
D
L 144-pin LQFP, 179-pin u*BGA
3 2 2 TQFP 7 TQFP
45 4 BGA 9 BGA

3
TMS320C5507 – Wireless Radio/GPS
Device
6 6 6 2 2 1
Dual MAC; 200 MHz; 400 MIPS
? Very low standby power

2 Timers
Mc Mc Mc
I2 RT Peripherals
BS BS BS
C C
P P P ? USB 2.0 Full Speed
? 10-bit 500 us ADC for keypad, button
and battery monitoring functions
? Real-time clock w/ 32KHz crystal
input, separate power
Memory
Externa

Interfac

3 McBSPs, 10-bit 500us ADC

Peripheral Bus
5

INT
?
e
l

C55x TM
DSP Core ? 16-bit EMIF
? I2C multi-master and slave interface

MEMORY ? 3 timers: 2 general purpose, 1 WD

JTAG
6- 7
Chan. SARAM ? 36/35 GPIO, 8/7 dedicated
DARAM 96 KB ROM
DMA (u*BGA/LQFP)
32 KB 32 KB
? 16-bit HPI muxed w/address bus
Memory
10- Sy U
ste Wat S ? 128 KB on-chip RAM, 64 KB ROM
bit GP EH GP US
m chd B
A/ IO PI IO B 144-pin LQFP, 179-pin u*BGA, 200 MHz
PL og PL
D
L L
2 TQFP 2 7 TQFP 2
4 BGA 45 9 BGA

TMS320C5503 – Biometrics
Device
6
6 6 2 2 1 Dual MAC; 200 MHz; 400 MIPS
? Low cost with low power
Timers

Mc Mc Mc
I2 RT
2

BS BS BS
P P P
C C Peripherals
? Real-Time Clock w/ 32KHz crystal
input, separate power
? 3 McBSPs
Memory
Externa

Interfac

? 16-bit EMIF
5
e

Peripheral Bus

INT
l

C55x TM ? I2C multi-master and slave interface


DSP Core
? 3 timers: 2 general purpose, 1 WD
? 36/35 GPIO, 8/7 Dedicated
MEMORY (u*BGA/LQFP)
JTAG

6- 7
Chan. SARAM ? 16-bit HPI muxed w/address bus
DARAM 32 KB ROM
DMA 32 KB 32 KB
Memory
? 64 KB on-chip RAM, 64 KB ROM
Sy
ste Wat
GP EH GP 144-pin LQFP, 179-pin u*BGA, 200 MHz
m chd
IO PI PL IO og
L
2 7 TQFP
45 9 BGA

4
? CPU Architecture Intro, Efficiency Design

?Dual MAC
?C55x Architecture
?Low Power … 0.24mW @ standby mode

What Problem Are We Trying To Solve?

x Y
ADC DSP DAC

Digital sampling
of an analog
A signal:

c
o
u
n
Y
M
t
t
i o
=s
= tf

1 D
o
r ?
S

5
C55x Dual -MAC
Amplitude
Data Coeffs
a0 ? 2 taps/cycle
a1
a2
Data Read Buses
a3
Time
MACt MAC
x4 x3 x2 x1 x0
Results
y0 = a0x0 + a1x1 + a2x2 + a3x3 AC0
A
AC1
y1 = a0x1 + a1x2 + a2x3 + a3x4

Dual-MAC: MAC *AR2+, *CDP+, AC0 :: MAC *AR3+, *CDP+, AC1

‘C55x Architecture (10km view)


Program A/D Bus

Data Read Buses (D, B, C)

Instr
A
Buffer PC ARn d CDP MAC MAC
d
Queue r
Gen
AC0
AC1
Decode

Data Write Buses (E, F)

IU PU AU DU

MAC *AR2+, *CDP+, AC0 :: MAC *AR3+, *CDP+, AC1

6
C55x CPU Block Diagram
• 16Mx8 Unified Memory
Space
•C5510 – 160KW RAM
•23-bit Addr Regs
•Two ALUs (16-, 40-bit)
•Dual-MAC
•4x40-bit ACC’s
•4 Temp Regs
•Variable-length Instr
•64x8 Instruction Buffer
•“Local” repeat block
•Dual-level RPT blocks
•Multiple Circular Buffers
•Built-in + User-defined
parallel instructions
•Pipeline Protection
Unit (PPU)

C55x IDLE Modes


? The ICR (Idle Control Register) determines which
portions of the device will be idled (powered down):

ICR EMIF CLKGEN PERI Cache DMA CPU

? CLKGEN: PLL clocking


? PERI: McBSPs, Timers

? Recommendation: if you’re not using a resource for a


significant period of time, turn it off.
? Three types of power down:
? EMIF/Cache/DMA: use ICR to turn off
? CPU/CLKGEN: use ICR to turn off, must set wakeup mode
? PERI: (2-step process): use ICR and IDLE_EN bit in peripheral

7
Power Reduction Example –
Turning Peripherals On and Off Power
Chip
TMS320C55x ™ DSP Power Manager Modes Power 100%
(mW )
McBSP

McBSP

McBSP

Timers
UART

GPIO

APLL
I2 C

RTC

HPI
Core, memory, EMIF, Cache,
2
469.1
DMA and peripherals functional
80%

TMS320C55x™
DSP Core
60%

6- Memory
EMIF Cache 320KB
Channel
DA/SA 256KB
DMA RAM ROM 40%

20%

0%

Power Reduction Example –


Turning Peripherals On and Off
Power
Chip
TMS320C55x ™ DSP Power Manager Modes Power 100%
(mW )
McBSP

McBSP

McBSP

UART

Timers

GPIO

APLL
RTC
I2 C

HPI

Core, memory, EMIF, Cache,


2

469.1
DMA and peripherals functional
80%
Turn off GPIO (3.2 mW) 465.9

TMS320C55x™
DSP Core
60%

6- Memory
EMIF Cache 320KB
Channel DA/SA 256KB
DMA RAM ROM 40%

20%

0%

8
Power Reduction Example –
Turning Peripherals On and Off
Power
Chip
TMS320C55x ™ DSP Power Manager Modes Power 100%
(mW )
McBSP
McBSP

McBSP

Timers
UART

GPIO

APLL
RTC
I2 C

HPI
Core, memory, EMIF, Cache,
2
469.1
DMA and peripherals functional
80%
Turn off GPIO (3.2 mW) 465.9

TMS320C55x™ Turn off Timers (2x4.7 mW ea.) 456.5


DSP Core
60%

6- Memory
EMIF Cache 320KB
Channel
DA/SA 256KB
DMA RAM ROM 40%

20%

0%

Power Reduction Example –


Turning Peripherals On and Off
Power
Chip
TMS320C55x ™ DSP Power Manager Modes Power 100%
(mW )
McBSP

McBSP

McBSP

Timers
UART

GPIO

APLL
RTC
I C

HPI

Core, memory, EMIF, Cache,


2
2

469.1
DMA and peripherals functional
80%
Turn off GPIO (3.2 mW) 465.9

TMS320C55x™ Turn off Timers (2x4.7 mW ea.) 456.5


DSP Core
Turn off McBSPs (3x5.1 mW ea.) 441.0 60%

Turn off DMA (38.3 mW) 402.9


6- Memory
EMIF Cache 320KB
Channel Turn off Cache (46.7 mW) 356.2
DA/SA 256KB
DMA RAM ROM 40%
Turn off EMIF (123.8 mW) 232.4

20%

0%

9
Power Reduction Example –
Static Mode
Power
Chip
TMS320C55x ™ DSP Power Manager Modes Power 100%
(mW )
McBSP

McBSP

McBSP

Timers
UART

GPIO

APLL
RTC
I2 C

HPI
Core, memory, EMIF, Cache,
2
469.1
DMA and peripherals functional
80%
Turn off GPIO (3.2 mW) 465.9

TMS320C55x™ Turn off Timers (2x4.7 mW ea.) 456.5


DSP Core
Turn off McBSPs (3x5.1 mW ea.) 441.0 60%

Turn off DMA (38.3 mW) 402.9


6- Memory
EMIF Cache 320KB
Channel 356.2
DA/SA 256KB Turn off Cache (46.7 mW)
DMA RAM ROM 40%
Turn off EMIF (123.8 mW) 232.4

Turn off Core and Memory Static 0.7


Mode (231.7 mW)
20%

0%

Power Reduction Example –


Deep Sleep Mode
Power
Chip
TMS320C55x ™ DSP Power Manager Modes Power 100%
(mW )
McBSP

McBSP

McBSP

UART

Timers

APLL
GPIO
RTC
I C

HPI

Core, memory, EMIF, Cache,


2
2

469.1
DMA and peripherals functional
80%
Turn off GPIO (3.2 mW) 465.9

TMS320C55x™ Turn off Timers (2x4.7 mW ea.) 456.5


DSP Core
Turn off McBSPs (3x5.1 mW ea.) 441.0 60%

Turn off DMA (38.3 mW) 402.9


6- Memory
EMIF Cache 320KB
Channel 356.2
DA/SA 256KB Turn off Cache (46.8 mW)
DMA RAM ROM
Z Z Z Z Turn off EMIF (123.7 mW) 232.4
40%

Turn off Core and Memory Static 0.7


Mode (231.7 mW)
20%
Go to Standby Power 0.24
Deep Sleep Mode (0.46 mW)

0%

10
? Peripheral Overview and Programming

?C5510 DSP Peripheral


?C55x Design Environment
?DSP/BIOS
?Chip Support Library (CSL)

‘C5510 Peripheral Overview


Host EHPI
‘C5510 MCBSP
GPIO
DMA 55xx Timers
External
EMIF
CPU
Memory Power
Boot Cache

EHPI 3 Multi-Channel Buffered SPs


- 16-bit host access to memory - High speed sync serial comm
DMA General Purpose I/O
- 6 Channels - 8-bit i/o port
EMIF Timer/Counters
- Access to EPROM, SRAM, - Two 20-bit timer/counters
SBSRAM, SDRAM
Power-Down Modes
BOOT Loader
Instruction Cache (24K bytes)
- From external mem, Host, McBSP

11
Design Environment
Code Composer Studio (CCS)
IDE
PLUGINs SRC FILES CODEGEN
Executable
CDB Output File

BIOS CSL DSK


? Periodic Fxns ? Global Settings
? Thread Scheduling ? Peripheral Setup

? RTA ? Memory Mgmt


? Power Down
Target

? CDB - Configuration Database


? BIOS - DSP Operating System
? CSL - Chip Support Library
? RTA - Real Time Analysis (CPU load, statistics, etc)
? CODEGEN - Compiler, Assembler, Linker

Powerful, Easy -To-Use IDE: CCS

Code Composer Studio


? Integrates: edit, code gen, debug
? Single-click access using buttons
? Powerful graphing/profiling tools
? Automates tasks using GEL scripts
? Built-in access to BIOS functions
? Supports TI or 3rd party plug-ins

12
DSP BIOS Consists Of:

? Real-time analysis tools


Allows application to run
uninterrupted while displaying
debug data

? Real-time scheduler
Preemptive thread mgmt
kernel

? Real-time I/O
Allows two-way communication
between threads or between
target and PC host.

The Configuration File (.cdb)


? Used for BIOS and
non-BIOS applications:

? Configures BIOS scheduling,


RTA and other BIOS functions
? Automatically handles: run-time
support libraries, interrupt
vectors, system reset, etc.
? MEM handles system memory
configuration (builds CMD file)
? CSL simplifies peripheral setup
? Many other capabilities will be
discussed later …

13
How Do You Quickly Program The
Peripherals ?

DMA PLL
GPIO

MCBSP
er r
DTim Time
W

? Problem: You need to access the


peripherals without writing
extensive code.
? Solution: Use
Board Support Library (BSL) or
Chip Support Library (CSL)
23

Chip Support Library (CSL) GUI


Interface
? Open .cdb file:

? Create a new DMA configuration

? Select the options

Now that we have the configuration structure, how


do we apply it to a specific DMA? 25

14
Initializing the DMA With New Config
? Use the Resource Manager to
select the DMA Channel and
then select the options:

? Or, uncheck “Enable pre-initialization” above, and use the


following statement for your code:

DMA_config
DMA_ config (hDmaRcv
hDmaRcv,, &dmaCfgReceivePing
&dmaCfgReceivePing);
);

26

? C55x DSP Development

?Code Composer Studio


?C5510 DSP Platform Developer’s Kit
?JTAG Emulator
?3rd Party C55x DSP EVM
?Online Resources and Discussion Group

15
CCStudio v2.2/v3.0 - Enhancements
CCS 2.2 Enhancements :
? Improved usability features such as:
? New startup options ? Toolbar splits
? Multiple linker files ? Project management support
? Large project performance ? Improved symbol loading

? DSP/BIOS performance improvements


? XDS560 support (drivers for all targets/ISAs)
? 30 new devices supported

CCS 3.0 Enhancements (C55x -specific):


? Advanced Profiling Dashboard - general advice window, goals
window, profile setup, profile view (to view the results)
? Compiler Consultant - recommends more efficient coding
? Cache Tuner - analyze and tune cache behavior (graph hit/miss)
? Power Analyzer - measure energy consumption over a
specified range on target hardware

TI Development Tools Environment


Customer Application

Reference Frameworks

Compliant Compliant
Algorithm Algorithm
Code Composer Studio™ Dev. Tools TMS320™ DSP
Algorithm Standard

Compliant Compliant Compliant Compliant


Plug-In Plug-In Algorithm Algorithm

Program Program Real-Time Drivers


Build Debug Analysis DSP/BIOS™

XDS560™ Emulator RTDX™ Embedded Emulation


JTAG Components
Host Computer TMS320 DSP GPP

16
Low-Cost Starter Kit with USB
Low-
Plug--and
Plug and--Play Functionality
DSP board

Hardware
TM
? C5510 DSP
? 24-bit stereo codec

? Four 3.5 millimeter audio jacks


? 256K non-volatile Flash memory

? Eight-MB SDRAM
Emulation
? On-board standard JTAG interface
? Plug and play JTAG support via USB

Connectors
? +5-volt universal power supply

? Expansion Port connectors for plug-


in modules

Software
TM
? DSK Code Composer Studio IDE v2.x
? Power Analyzer and Power Scaling
Libraries with usage app notes
C5510TM DSP TM
? DSP/BIOS RTOS
Platform ? MATLAB 30-day FET
Developer’s Kit ? Third party daughter card
Support
? DSK quick start guide and technical
reference
? C5510 1-day DSK training examples

JTAG Emulator for TMS320 DSP

? SEED-XDSUSB2.0 ? SEED-XDSPP

? TI XDS560 (PCI)

17
3rd Party C55x Evaluation Module
C5509A Evaluation Module C5502 Evaluation Module

Spectrum Digital

Available: Now Available: Now


Through Spectrum Digital Through Spectrum Digital and Seed DSP

C5501/C5502/C5503 Multi-EVM C5507 Evaluation Module

Available: Nov/04 Available: Dec/04


Through Value Provider International Through Value Provider International

Online Resources
www.ti.com is your starting point

dspvillage.ti.com Sign up for Training


•Getting Started • 1 day or 4 day workshops
•Discussion Groups • 1 day DSK workshops
•DSP Knowledge Base • C2000, C5000, C6000
•Third Party Network • DSP/BIOS
•eXpressDSP Guided • eXpressDSP
Tour

analog.ti.com
•Design Resources
•Technical Documents Applications Solutions
•Solution/Selection Find complete solutions for
Guides your application including:
DSP, Analog, Boards Target
Software, Development tools,
third party support
? Install Code Composer Studio Free Evaluation Tools (FET)
from the Essential Guide to DSP CD
? Check out the DSP Selection Guide, it’s your consolidated
resource for all pertinent information

18
DSP, MCU and HPA Discussion Group
http://www.vp
http://www .vp--ic
ic.com/
.com/

Question & Answer


Session

19

Potrebbero piacerti anche