Professional Documents
Culture Documents
C5000
TMS320 One-Day DSP Workshop
Administrative Topics
Instructor Introduction Materials (whats in front of you and what you get to take home) Bathrooms, Exits Mute cellular phones/pagers Please let the instructor(s) know if you have any special needs
Lets GO...
T TO
Technical Training Organization
Use Code Composer Studio and Visual Linker to edit, build and debug applications
Understand how to achieve highest performance using advanced features and DSPLIB functions Use BIOS and RTDX to build,analyze and debug a DSP system Run labs using common applications on real hardware (the DSK)
3
T TO
Technical Training Organization
The Agenda
1. C5000 Architecture, CCS, Visual Linker Lab1 Use CCS to build and debug code
2. Achieving High Performance With Ease Lab2 Implement and measure high performance 3. Real-Time Scheduling/Debug Using BIOS and RTDX Lab3 Use BIOS to build and debug a system Use RTDX to send data to a running system
T TO
Technical Training Organization
A Simple Approach to Digital Signal Processing by Craig Marven and Gillian Ewers; ISBN 0-4711-5243-9
"A DSP Primer : With Applications to Digital Audio and Computer Music by Ken Steiglitz; ISBN 0-8053-1684-1
"DSP First : A Multimedia Approach (Matlab Curriculum Series) James H. McClellan; ISBN 0-1324-3171-8
T TO
Technical Training Organization
C5000
(C54x, C55x) C5x
C2000
(C20x,C24x,C28x)
C1x C2x
Highest Performance
Multi Channel, Multi Function Comm Infrastructure xDSL Imaging, Video
Highest Efficiency
Best MIPS per: Watt / Dollar/ Size Wireless Clients Modems / Telephony VoIP
Lowest Cost
Control Systems Storage Motor Control T TO
Technical Training Organization
T TO
Technical Training Organization
Most power efficient DSP family in the industry Ultra small packaging (BGA, TQFP) Small code size
T TO
Technical Training Organization
MAC x4 x3 x2 x1 x0
Time
ALU A
y 0 = a nx n
n=0 MAC *AR2+, *AR3+, A T TO
Technical Training Organization
z = x2 + x4 + x3 + x1
10
ALU
11
T TO
Technical Training Organization
External Interface
12
X R X A R X D A R X
Full Pipeline
Pipeline One
Dedicated
loop control instructions (RPT and RPTB) available to reduce pipeline flushing
How does the architecture support pipelining?
13
T TO
Technical Training Organization
A D
Technical Training Organization
ROM - 1 access per block per cycle DARAM - 2 accesses per block per cycle External - 1 access every other cycle Wait States are shown for 100MHz clock
14
C5402 can address up to 1Mx16 of program memory OVLYbit=0 on reset (all program is external) DSK uses the following:
. . .
16K DARAM Upper 48K Page 3 Flash
OVLYbit=1: 16K DARAM mapped to ALL Program Mem Pages (access as data/prog) Allows access to 0-wait memory for code Only 256K of 1M total address reach of C5402 is physically implemented
C5402 can access 64Kx16 data All internal accesses are 0-wait User should partition algorithm resources to avoid memory access conflicts Can access most CPU registers via memory-mapped locations (MMR)
2000
4000
FFFF T TO
Technical Training Organization
Peripheral Overview
C54x CPU
C5402
2 Multi-Channel BSPs: Each offers up to 128-channel rcv/xmt 6-channels: facilitates transfers without CPU intervention Host Port Interface: 8-bit interface to host processor Boot Loader: Multiple ways to load program to volatile memory Two 20-bit timers: Can generate timed-based interrupts General Purpose I/O: 4 dedicated and 16 multipurpose pins Phase Locked Loop: software programmable Idle Modes: Power saving modes and features
Boot
Timers GPIO PLL
Pwr Down
T TO
Technical Training Organization
EMIF
TLC320 AD50 AIC
PC
5402
Parallel Port
CCS
D A A
CPLD
JTAG
XDS-510 Emulator
DSK includes: DSK board, power supply, DSK-specific CCS, parallel cable, docs T TO
Technical Training Organization
Code
Composer Studio
T TO
Technical Training Organization
19
A Project Is...
Simply ADD the necessary files and BUILD to create an executable output file
Visual Linker
Integrated CCS Plug-In Drag and Drop Operation Graphical Interface Explorer Views Convert older .cmd files
T TO
Technical Training Organization
3000h
CODE
Absolute
T TO
Technical Training Organization
Visual Linker uses addresses provided by the memory map to place relocatable sections from input files into output sections in an executable output file.
22
Application: Audio Pass Through What you will learn: Basic CCS Debug, Visual Linker Hardware Diagram...
C5402
AIC
ADC midi
McBSP1
REVT1
In_Buf
Copy
23
DMAC2
DRR1
DXR1
DAC
XEVT1
1 2 3
Out_Buf DMAC3
1 2
T TO
Technical Training Organization
Software Flow:
LAB1.C DMAC2ISR.ASM
Determine frm cnt (1,2 or 3) frame_count += 1 frame1: set I/O addresses B out frame2: set I/O addresses B out frame3: set I/O addresses out: Xfr In_Buf to Out_Buf Turn on DMAC3 for output return
Init DSK Board Blink LEDs Init McBSP/AIC Init DMAC2 Set reload registers for DMAC2 Forever Loop
DMAC2 Int T TO
Technical Training Organization
24
ti