Tms320c50 Processor
Tms320c50 Processor
SSUng
5.8
Data Bus
MemorY
Program Data Program Peripherals
ROM SARAM Serial Port 1
2K C50 9K
C50
8K C51 1K Data DARAM
C51
4K C52 Data Program
16K C53 3K B2(32 x 16) Serial Port 2
LC56 32K LC56 GK DARAM
C57S 2K C57S
LC57
6K
6K
BO(512 x 16)|| B1(512 x 16) TDM
LC57 32K
Serial Port
Buffered
Program Bus Serial Port
Timer
Data BusS
DSPs have 28 CPU registers and put/output (1/0) port registers but have different numbers of
eripheral and reserved registers
peripheral h e memory-mapped registers are used for indirect data address
pointers,
ers, temi
mporary storage, CPU status and control, or integer arithmetic processing through the
ARAU.
Program Controller
The program controller contains logic circuitry that decodes the operational nstructions
managesthe Upipelime, stores the status of CPU operations, and decodes the conditional
mar
Program counter
.Hardware Stack
Address Generation logic
Instruction Register
On-Chip Memory
The C5x architecture contains a considerable amount of on-chip memory to aid in syster
Program ROM
maskable programmable ROM.
All CSx DSPs carry a 16-bit on-chip
Dota/Program Dual-Access RAM
on-chip dual-access RAM (DARAM).
All 'C5x DSPs carry a
1056-word X16-bit
selectable menmory blocks:
DARAM is divided into three individually
DARAM block BO, 512-word data DARAM block B1, anc
512-word data or program
The DARAM is primarily intended to store data values but,
word data DARAM block B2.
as well. DARAM blocks
Bl and B2 are always config
ceded, can be used to store programs
as data memory.
5.10
Digital Signal Procesgsi
Data/Program Single-Access RAM
All CS DSPs except the 'C52 carry a 16-bit on-chip single-access RAM (SARAM
When the related bit is set, no externally originating instruction can access the on-chip memor
spaces
On-Chip Peripherals
All 'CSx DSPs have the same CPU structure; however, they have ditferent onchip peripherals
connected to their CPUs. The 'C5x DSP on-chip peripherals available are:
Clock Generator
Hardware Timer
Software-Programmable Wait-State Generators
Parallel /O ports
Host Port Interface (HPI)
Serial Port
.Buffered Serial Port (BSP)
.Time-Division Multiplexed (TDM) Serial Port
.User-maskable interrupts
Clock Generator
The clock generator consists of an internal oscillator and a phase-locked loop (PLL) circuit
The clock generator can be driven internally by a crystal resonator circuit or driven externaly by a
clock source. The PLL circuit generate internal CPU clock by multiplying the clock source
can an
PU.
by a specific factor, so you can use a clock source with a lower frequeney than that of theCPU
Hardware Timer
A 16-bit hardware timer with a 4-bit prescaler is available. This programmable timer
a rate that is between 1/2 and 1/32 of the machine cycle rate (CLKOUT), depending upon tne
clocksa
Digital Signal Processors
5.11
timer's divi ide-down ratio. The timer can
be
bits. stopped, restartarted, reset, or disabled by specific status
Goftware-Programmable Wait-State Generators
Software-programmable wait-state logic is incorporated in
oeneration without any external hardware
for
'C5x DSPs allowing wait-state
devices. This feature consists of interfacing with slower off-chip memory and
multiple waitstate
anngrammable to operate in different wait states for generating circuits. Each circuit 1s user
off-chip memory accesses.
Parallel 1/O Ports
A total of 64K 1/0
ports are
available, sixteen of these ports are
memory space. Each of the l/O
ports can be addressed
memory-mapped
in data
Three different kinds of serial ports are available: a general-purpose serial port, a time-division
multiplexed (TDM) serial port, and a buffered serial port (BSP). Each C5x contains at least one
general-purpose, high-speed synchronous, full-duplexed serial port interface that provides direct
communication with serial devices such as codecs, serial analog-to-digital (A/D) converters, and
other serial systems. The serial port is capable of operating at up to onefourth the machine eyele
rate (CLKOUTI).
Buffered Serial Port (BSP)
buffered serial
The BSP available the 'C56 and 'C57 devices is a full-duplexed, double
on
on the data stream length.
The
port and an autobuffering unit (ABU). The BSP provides flexibility
latencies.
ABU supports high-speed data transfer and reduces interrupt
User-Maskable Interrupts
a timer interrupt and
five internal interrupts,
interrupt lines (INTI-INT4) and
four external routine (1SR) is executed,
user maskable.
When an interrupt service
ur serial port interrupts, are
Digital Signal Proc
5.12
8-level hardware stack, and the
Processin
con
the contents of the program counter are saved on an
saved (shadowed) on a
ontents
l-level-deep stacl.k
eleven specific CPU registers are automatically
ADDRESSING MODESs
The different addressing modes of TMS320C 50 are:
Direct Addressing
Indirect Addressing
Immediate Addressing
Dedicated-Register Addressing
Memory-Mapped Register Addressing
Circular Addressing
Direct Addressing
In the direct memory addressing mode, the instruction contains the lower 7 bits of the data
memory address (dma). The 7-bit dma is concatenated with the 9 bits of the data memory Dage
pointer (DP) in status register 0 to form the full 16-bit data memory address. This 16-bit data
memory address is placed on an internal direct data memory address bus (DAB). The DP points to
one of S12 possible data memory pages and the 7-bit address in the instruction points to one of 128
words within that data memory page.
Indirect Addressing
Eight 16-bit auxiliary registers (AR0-AR7) provide flexible and powerful indirect addressing
In indirect addressing, any location in the 64K-word data
memory space can be accessed using a
16-bitaddress contained in an AR.To select a specific AR, load the
auxiliary register pointer (ARP
with a value from 0 through 7,
designating AR0 through AR7, respectively. The register pointed
to
by the ARP is referred to as the current auxiliary register (current AR).
The value in INDX is the index amount. The instruction uses the content of the curent AR as
address and then increments or decrements the content of the current AR by the
the data memory
nfey amount. The addition or subtraction is done using reverse carry
propagatio
Indirect Addressing Opcode Format
Indirect addressing can be used with all instructions except those with immediate operands or
with no operands.
Bit-Reversed Addressing
In the bit-reversed addressing mode. INDX specifies one-half the size of the FFT. The value
2n. An
sontained in the current AR must be equal to 2n-1, where n is an integer, and the FFT size is
auxiliary register points to the physical location of a data value. When you add INDX to the
current
Immediate Addressing
In immediate addressing, the instruction word(s) contains the value of the immediate operand.
The 'C5x has both 1-word (8-bit, 9-bit, and 13-bit constant) short immediate instructions and 2
One-operand instructions
Two-operand instructions
Dedicated-Register Addressing
mode,
modSe operates like the long immediate addressing
The dedicated-registered addressing in the
from of
onetwo special-purpose memory-mapped registers
except that the address comes
and the dynamic bit manipulation register (DBMR).
CPU: the block move address register (BMAR)
block of memory to be acted upon
mode is that the address otfthe
he advantage of this addressing
can be changed during execution of the program.
READY
DR, DR(1-2)
CLKIN2 DX, DX(12)
CLKR, CLKR(1-2)
Serial
XCLKIN CLKX,CLKX(1-2) port
interface
CLKOUT1 FSR, FSR(1-2)
BDX TDX
BFSX TFSR/TFRM
VpOA TDI
Vp0D TDO
VoOC TMS
PS, IDS, 1S Ouiput, Tristale Program, data and ) space select oulputs, respectively
STRB O, Tristale Timing strobe for external cycles and external DMA
R/W IO, Tistale Read/wiile select for extemal cycles and external iDMA
RD, WE Output, Iristate Read and write strobes, respectively, for extemal
cycles
Chapter 1l -DigitalSignal
Processors
11. 12
Table 11.5:Continued...
SIGNAL
TYPE
DESCRIPTION
READY Input External bus ready/wait-state control input
10. Tristate Bus request
BR
RS
Input Reset
HOLD
Input Put parallel F bus in high-impedance state after current cycie
HOLDA
Output, Tristate Hold acknowledge
TDM serial
TFSX/TFRM Input
Digilal S1gnal Processing
11. 13
TYPE
SIGNAL EMULATION/JTAG INTERFACE
Oscillator output
X1 Output
Clock/oscillator input
X2/CLKIN, CLKIN2 Input
Clock-mode select inputs
CLKMD1, CLKMD2 Input
Output, Tristate
Device system-clock output
CLKOUTI1
POWER SUPPLY CONNECTIONS
address-bus output
Supply Supply connection,
VDDA
Supply connection,
data-bus output
VDDD Supply
control output
Supply Supply connection,
VDDC
Supply connection, internal logic
VDDI Supply
address-bus output
Supply Supply connection,
VSSA
data-bus output
Supply Supply connection,
VSSD
TM$320C52 TMS320c53S
TMS320Ccs1
PIN TMS320Lcs2 TM$320LC53S TM$320Lc56
TMS320LCS1
CLKX2 BCLKX
TCLKX
CLKX CLKXI CLKX
CLKX
FSR2 BFSR
TFSRSTADD
TCLKR CLKR2 BCLKR
SS
DR DR DRI DR
46
DR2 BDR
47 TDR
48 FSR FSR FSRI FSR
CLKR CLKRI CLKR
49 CLKR
Chapter
11 -
93 DX DX DX1 DX