Texas Instruments TMS320LBC51PZA57, TMS320LBC51PZA, TMS320LBC51PZ57, TMS320LBC51PZ, TMS320LBC51PQA57 Datasheet

...
D
Powerful 16-Bit TMS320C5x CPU
D
D
25-, 40-, and 50-ns Single-Cycle Instruction Execution Time for 3-V Operation
D
Single-Cycle 16 × 16-Bit Multiply/Add
D
224K × 16-Bit Maximum Addressable External Memory Space (64K Program, 64K Data, 64K I/O, and 32K Global)
D
2K, 4K, 8K, 16K, 32K × 16-Bit Single-Access On-Chip Program ROM
D
1K, 3K, 6K, 9K × 16-Bit Single-Access On-Chip Program/Data RAM (SARAM)
D
1K Dual-Access On-Chip Program/Data RAM (DARAM)
D
Full-Duplex Synchronous Serial Port for Coder/Decoder Interface
D
Time-Division-Multiplexed (TDM) Serial Port
D
Hardware or Software Wait-State Generation Capability
D
On-Chip Timer for Control Operations
D
Repeat Instructions for Efficient Use of Program Space
D
Buffered Serial Port
D
Host Port Interface
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
D
Multiple Phase-Locked Loop (PLL) Clocking Options (×1, ×2, ×3, ×4, ×5, ×9 Depending on Device)
D
Block Moves for Data/Program Management
D
On-Chip Scan-Based Emulation Logic
D
Boundary Scan
D
Five Packaging Options – 100-Pin Quad Flat Package (PJ Suffix) – 100-Pin Thin Quad Flat Package
(PZ Suffix)
– 128-Pin Thin Quad Flat Package
(PBK Suffix) – 132-Pin Quad Flat Package (PQ Suffix) – 144-Pin Thin Quad Flat Package
(PGE Suffix)
D
Low Power Dissipation and Power-Down Modes: – 47 mA (2.35 mA/MIP) at 5 V, 40-MHz
Clock (Average) – 23 mA (1.15 mA/MIP) at 3 V, 40-MHz
Clock (Average) – 10 mA at 5 V, 40-MHz Clock (IDLE1 Mode) – 3 mA at 5 V, 40-MHz Clock (IDLE2 Mode) – 5 µA at 5 V, Clocks Off (IDLE2 Mode)
D
High-Performance Static CMOS Technology
D
IEEE Standard 1149.1† Test-Access Port (JTAG)
description
The TMS320C5x generation of the Texas Instruments (TI) TMS320 digital signal processors (DSPs) is fabricated with static CMOS integrated circuit technology; the architectural design is based upon that of an earlier TI DSP, the TMS320C25. The combination of advanced Harvard architecture, on-chip peripherals, on-chip memory , and a highly specialized instruction set is the basis of the operational flexibility and speed of the ’C5x
The ’C5x devices offer these advantages:
D D D D D D
TI is a trademark of Texas Instruments Incorporated. †
IEEE Standard 1149.1–1990, IEEE Standard Test-Access Port and Boundary-Scan Architecture
References to ’C5x in this document include both TMS320C5x and TMS320LC5x devices unless specified otherwise.
PRODUCTION DATA information is current as of publication date. Products conform to specifications per the terms of Texas Instruments standard warranty. Production processing does not necessarily include testing of all parameters.
devices. They execute up to 50 million instructions per second (MIPS).
Enhanced TMS320 architectural design for increased performance and versatility Modular architectural design for fast development of spin-off devices Advanced integrated-circuit processing technology for increased performance Upward-compatible source code (source code for ’C1x and ’C2x DSPs is upward compatible with ’C5x DSPs.) Enhanced TMS320 instruction set for faster algorithms and for optimized high-level language operation New static-design techniques for minimizing power consumption and maximizing radiation tolerance
Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.
Copyright 1996, Texas Instruments Incorporated
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
1
TMS320C5x, TMS320LC5x
I/O PORTS
SUPPLY
TIME
TYPE
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
description (continued)
T able 1 provides a comparison of the devices in the ’C5x generation. It shows the capacity of on-chip RAM and ROM memories, number of serial and parallel I/O ports, execution time of one machine cycle, and type of package with total pin count.
Table 1. Characteristics of the ’C5x Processors
ON-CHIP MEMORY (16-BIT WORDS)
TMS320
DEVICES
TMS320C50 544 512 9K 2K TMS320LC50 544 512 9K 2K TMS320C51 544 512 1K 8K TMS320LC51 544 512 1K 8K TMS320C52 544 512 4K TMS320LC52 544 512 4K TMS320C53 544 512 3K 16K TMS320LC53 544 512 3K 16K TMS320C53S 544 512 3K 16K TMS320LC53S 544 512 3K 16K TMS320LC56 544 512 6K 32K 2 TMS320LC57 544 512 6K 32K 2 TMS320C57S 544 512 6K 2K TMS320LC57S 544 512 6K 2K
Sixteen of the 64K parallel I/O ports are memory mapped.
QFP = Quad flatpack
§
ROM boot loader available
TDM serial port not available
#
Includes auto-buffered serial port (BSP) but TDM serial port not available
||
HPI = Host port interface
DARAM SARAM ROM
DATA
DATA +
PROG
DATA +
PROG
PROG SERIAL PARALLEL
§
§
§
§
§
§
§
§
§
§
§
§
POWER
(V)
2 64K 5 50/35/25 132 pin 2 64K 3.3 50/40/25 132 pin 2 64K 5 50/35/25/20 100/132 pin 2 64K 3.3 50/40/25 100/132 pin
1
1
2 64K 5 50/35/25 132 pin 2 64K 3.3 50/40/25 132 pin
2
2
# # #
2
#
2
64K 5 50/35/25/20 100 pin 64K 3.3 50/40/25 100 pin
64K 5 50/35/25 100 pin 64K 3.3 50/40/25 100 pin
64K 3.3 35/25 100 pin 64K + HPI 64K + HPI 64K + HPI
||
3.3 35/25 128 pin
|| ||
5 50/35/25 144 pin
3.3 50/35 144 pin
CYCLE
(ns)
PACKAGE
QFP
2
Pinouts for each package are device-specific.
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
NC NC
V
SSD
V
SSD
NC
TMS
V
DDD
V
DDD
TCK
V
SSD
V
SSD
NC INT1 INT2 INT3 INT4
NMI
DR TDR
FSR CLKR V
DDA V
DDA
NC NC
D7 D6 D5 D4 D3 D2 D1 D0
TMS320C50, TMS320LC50, TMS320C51, TMS320LC51, TMS320C53, TMS320LC53
PQ PACKAGE
(TOP VIEW)
DDDVDDD
NC
NC
VD8D9
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83
D10
D11
D12
D13
D14
D15
MP/MC
SSIVSSI
V
TRST
IAQ
DDCVDDC
V
BIO
HOLD
READYRSTCLKR
TFSR/TADD
CLKX
TCLKX
TOUT
79
SSCVSSC
V
EMU1/OFF
NC
EMU0
116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100
99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84
NC NC V
DDI
V
DDI
IACK NC CLKOUT1 XF HOLDA TDX DX TFSX/TFRM FSX CLKMD2 V
SSI
V
SSI
TDO V
DDC
V
DDC
X1 X2/CLKIN CLKIN2 BR STRB R/W PS IS DS NC V
SSC
V
SSC
NC NC
NC
NC
A0A1A2A3A4A5A6A7A8
SSAVSSA
V
NOTE: NC = No connect (These pins are reserved.)
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
A9
DDIVDDI
V
TDI
SSAVSSA
V
NC
A10
CLKMD1
NC
NC
RD
A11
A12
A13
A14
A15
DDAVDDA
V
WE
3
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for Devices in the PQ Package
SIGNAL TYPE DESCRIPTION
PARALLEL INTERFACE BUS
A0–A15 I/O/Z 16-bit external address bus (MSB: A15, LSB: A0) D0–D15 I/O/Z 16-bit external data bus (MSB: D15, LSB: D0) PS, DS, IS O/Z Program, data, and I/O space select outputs, respectively STRB I/O/Z Timing strobe for external cycles and external DMA R/W I/O/Z Read/write select for external cycles and external DMA RD, WE O/Z Read and write strobes, respectively, for external cycles READY I External bus ready/wait-state control input BR I/O/Z Bus request. Arbitrates global memory and external DMA
SYSTEM INTERFACE/CONTROL SIGNALS
RS I Reset. Initializes device and sets PC to zero MP/MC I Microprocessor/microcomputer mode select. Enables internal ROM HOLD I Puts parallel I/F bus in high-impedance state after current cycle HOLDA O/Z Hold acknowledge. Indicates external bus in hold state XF O/Z External flag output. Set/cleared through software BIO I I/O branch input. Implements conditional branches TOUT O/Z Timer output signal. Indicates output of internal timer IAQ O/Z Instruction acquisition signal IACK O/Z Interrupt acknowledge signal INT1–INT4 I External interrupt inputs NMI I Nonmaskable external interrupt
SERIAL PORT INTERFACE (SPI)
DR I Serial receive-data input DX O/Z Serial transmit-data output. In high-impedance state when not transmitting CLKR I Serial receive-data clock input CLKX I/O/Z Serial transmit-data clock. Internal or external source FSR I Serial receive-frame-synchronization input FSX I/O/Z Serial transmit-frame-synchronization signal. Internal or external source
TDM SERIAL-PORT INTERFACE
TDR I TDM serial receive-data input TDX O/Z TDM serial transmit-data output. In high-impedance state when not transmitting TCLKR I TDM serial receive-data clock input TCLKX I/O/Z TDM serial transmit-data clock. Internal or external source
TFSR / TADD I/O/Z
TFSX /TFRM I
LEGEND:
I = Input O = Output Z = High impedance
TDM serial receive-frame-synchronization input. In the TDM mode, TFSR/TADD is used to output/
input the address of the port.
TDM serial transmit-frame-synchronization signal. Internal or external source. In the TDM mode, TFSX/TFRM becomes TFRM, the TDM frame synchronization.
4
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for Devices in the PQ Package (Continued)
EMULATION/IEEE STANDARD 1149.1 TEST ACCESS PORT (TAP)
TDI I TAP scan data input TDO O/Z TAP scan data output TMS I T AP mode select input TCK I TAP clock input TRST I TAP reset (with pulldown resistor). Disables TAP when low EMU0 I/O/Z Emulation control 0. Reserved for emulation use EMU1/OFF I/O/Z Emulation control 1. Puts outputs in high-impedance state when low
CLOCK GENERATION AND CONTROL
X1 O Oscillator output X2/CLKIN I Clock/oscillator input CLKIN2 I Clock input CLKMD1, CLKMD2 I Clock-mode select inputs CLKOUT1 O/Z Device system-clock output
POWER SUPPLY CONNECTIONS
V
DDA
V
DDD
V
DDC
V
DDI
V
SSA
V
SSD
V
SSC
V
SSI
LEGEND:
I = Input O = Output S = Supply Z = High impedance
S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
5
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
DDC
DDI
DDI
V
CLKOUT1
HOLDAD3BDXD2DXD1HD7D0BFSX
128
127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97
RS
BIO
SSI SSI
D9 D8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
33
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
HINT
EMU0
EMU1/OFF
V
SSC
V
SSC
TOUT
BCLKX
CLKX
V
DDC
BFSR
BCLKR
READY
HOLD
V
DDC V
DDC
IAQ
TRST
V V
MP/MC
D15 D14 D13 D12 D11 D10
V
DDD V
DDD
TMS320LC57
PBK PACKAGE
( TOP VIEW )
HD6
CLKMD2
FSX
HD5
SSIVSSIVDDC
HD4
V
TDO
X1
X2/CLKIN
CLKMD3
HD3
BR
STRB
R/ W
PS
IS
DSVV
HD2
SSC
SSC
96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65
WE HD1 RD HD0 HRDY V
DDA
A15 A14 A13 A12 A11 A10 CLKMD1 V
SSA
V
SSA
TDI HDS1 HDS2 V
DDI
V
DDI
A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 V
SSA
HCS
D7 V
D6
SSDVSSD
V
D5XFD4
V
TMS
HCNTL0
6
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
DDD
V
HCNTL1
DDD
V
TCK
SSD
V
SSD
V
INT1
INT2
HR/W
INT3
INT4
HBIL
NMI
DR
BDR
FSR
CLKR
V
DDA
DDA
V
HAS
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for the TMS320LC57 in the PBK Package
SIGNAL TYPE DESCRIPTION
PARALLEL INTERFACE BUS
A0–A15 I/O/Z 16-bit external address bus (MSB: A15, LSB: A0) D0–D15 I/O/Z 16-bit external data bus (MSB: D15, LSB: D0) PS, DS, IS O/Z Program, data, and I/O space select outputs, respectively STRB I/O/Z Timing strobe for external cycles and external DMA R/W I/O/Z Read/write select for external cycles and external DMA RD, WE O/Z Read and write strobes, respectively, for external cycles READY I External bus ready/wait-state control input BR I/O/Z Bus request. Arbitrates global memory and external DMA
SYSTEM INTERFACE/CONTROL SIGNALS
RS I Reset. Initializes device and sets PC to zero MP/MC I Microprocessor/microcomputer mode select. Enables internal ROM HOLD I Puts parallel I/F bus in high-impedance state after current cycle HOLDA O/Z Hold acknowledge. Indicates external bus in hold state XF O/Z External flag output. Set/cleared through software BIO I I/O branch input. Implements conditional branches TOUT O/Z Timer output signal. Indicates output of internal timer IAQ O/Z Instruction acquisition signal INT1–INT4 I External interrupt inputs NMI I Nonmaskable external interrupt
SERIAL PORT INTERFACE
DR I Serial receive-data input DX O/Z Serial transmit-data output. In high-impedance state when not transmitting CLKR I Serial receive-data clock input CLKX I/O/Z Serial transmit-data clock. Internal or external source FSR I Serial receive-frame-synchronization input FSX I/O/Z Serial transmit-frame-synchronization signal. Internal or external source
HOST PORT INTERFACE (HPI)
HCNTL0 I HPI mode control 1 HCNTL1 I HPI mode control 2 HINT O/Z Host interrupt HDS1 I HPI data strobe 1 HDS2 I HPI data strobe 2 HR/W I HPI read/write strobe HAS I HPI address strobe HRDY O/Z HPI ready signal HCS I HPI chip select HBIL I HPI byte identification input HD0–HD7 I/O/Z HPI data bus
LEGEND:
I = Input O = Output Z = High impedance
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
7
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for the TMS320LC57 in the PBK Package (Continued)
SIGNAL TYPE DESCRIPTION
BUFFERED SERIAL PORT
BDR I BSP receive data input BDX O/Z BSP transmit data output; in high-impedance state when not transmitting BCLKR I BSP receive-data clock input BCLKX I/O/Z BSP transmit-data clock; internal or external source BFSR I BSP receive frame-synchronization input BFSX I/O/Z BSP transmit frame-synchronization signal; internal or external source
EMULATION/JTAG INTERFACE
TDI I JTAG-test-port scan data input TDO O/Z JTAG-test-port scan data output TMS I JTAG-test-port mode select input TCK I JTAG-port clock input TRST I JTAG-port reset (with pull-down resistor). Disables JTAG when low EMU0 I/O/Z Emulation control 0. Reserved for emulation use EMU1/OFF I/O/Z Emulation control 1. Puts outputs in high-impedance state when low
CLOCK GENERATION AND CONTROL
X1 O Oscillator output X2/CLKIN I Clock input CLKMD1, CLKMD2,
CLKMD3 CLKOUT1 O/Z Device system-clock output
V
DDA
V
DDD
V
DDC
V
DDI
V
SSA
V
SSD
V
SSC
V
SSI
LEGEND:
I = Input O = Output S = Supply Z = High impedance
I Clock-mode select inputs
POWER SUPPLY CONNECTIONS
S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic
8
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
TMS320C51, TMS320LC51, TMS320C52, TMS320LC52, TMS320C53S, TMS320LC53S, TMS320LC56
DDC
DDIVDDI
CLKOUT1XF†
V
D7
D6
D5
HOLDA
D4
EMU1/OFF
V
SSC
TOUT
RS
READY
HOLD
BIO
TRST
V
SSI
V
SSI
MP/MC
D15 D14 D13 D12 D11 D10
D9 D8
V
DDD
V
100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76
1EMU0 2 3 4
5
6
7
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
SSD
SSD
V
V
D3D2D1
PZ PACKAGE
(TOP VIEW)
SSI
SSI
V
D0
V
CLKMD2
DDD
TCK
TMS
V
TDO
SSDVSSD
DDC
V
V
X1
INT1
X2/CLKIN
INT3
INT2
BR
INT4
R/W
STRB
†††
NMI
PS
SSC
DS
V
IS
WE
7475RD
V
73
DDA
A15
72
A14
71
A13
70
A12
69
A11
68
A10
67
CLKMD1
66
V
65
SSA
V
64
SSA
TDI
63
V
62
DDI
A9
61
A8
60
A7
59 58
A6 A5
57
A4
56
A3
55
A2
54
A1
53 52
A0
51
V
SSA
DDA
V
NOTE: NC = No connect (These pins are reserved.) †
See Table 2 for device-specific pinouts.
Table 2. Device-Specific Pinouts for the PZ Package
PIN ’C51, ’LC51 ’C52, ’LC52 ’C53S, ’LC53S ’LC56
5 TCLKX V
§
6
CLKX CLKX CLKX1 CLKX 7 TFSR/TADD V 8 TCLKR V
§
46
DR DR DR1 DR
47 TDR V
§
48 49
§
FSR FSR FSR1 FSR
CLKR CLKR CLKR1 CLKR
SSI
SSI SSI
SSI
83 CLKIN2 CLKIN2 CLKIN2 CLKMD3
§
91
92 TFSX/TFRM V
§
93
FSX FSX FSX1 FSX
SSI
DX DX DX1 DX
94 TDX NC DX2 BDX
Pin names beginning with “B” indicate signals on the buffered serial port (BSP).
§
No functional change
CLKX2 BCLKX
FSR2 BFSR CLKR2 BCLKR
DR2 BDR
FSX2 BFSX
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
9
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for Devices in the PZ Package
SIGNAL TYPE DESCRIPTION
PARALLEL INTERFACE BUS
A0–A15 I/O/Z 16-bit external address bus (MSB: A15, LSB: A0) D0–D15 I/O/Z 16-bit external data bus (MSB: D15, LSB: D0) PS, DS, IS O/Z Program, data, and I/O space select outputs, respectively STRB I/O/Z Timing strobe for external cycles and external DMA R/W I/O/Z Read/write select for external cycles and external DMA RD, WE O/Z Read and write strobes, respectively, for external cycles READY I External bus ready/wait-state control input BR I/O/Z Bus request. Arbitrates global memory and external DMA
SYSTEM INTERFACE/CONTROL SIGNALS
RS I Reset. Initializes device and sets PC to zero MP/MC I Microprocessor/microcomputer mode select. Enables internal ROM HOLD I Puts parallel I/F bus in high-impedance state after current cycle HOLDA O/Z Hold acknowledge. Indicates external bus in hold state XF O/Z External flag output. Set/cleared through software BIO I I/O branch input. Implements conditional branches TOUT O/Z Timer output signal. Indicates output of internal timer INT1–INT4 I External interrupt inputs NMI I Nonmaskable external interrupt
SERIAL PORT INTERFACE
DR, DR1, DR2 I Serial receive-data input DX, DX1, DX2 O/Z Serial transmit-data output. In high-impedance state when not transmitting CLKR, CLKR1, CLKR2 I Serial receive-data clock input CLKX, CLKX1, CLKX2 I/O/Z Serial transmit-data clock. Internal or external source FSR, FSR1, FSR2 I Serial receive-frame-synchronization input FSX, FSX1, FSX2 I/O/Z Serial transmit-frame-synchronization signal. Internal or external source
BUFFERED SERIAL PORT (BSP) (SEE NOTE 1)
BDR I BSP receive data input BDX O/Z BSP transmit data output; in high-impedance state when not transmitting BCLKR I BSP receive-data clock input BCLKX I/O/Z BSP transmit-data clock; internal or external source BFSR I BSP receive frame-synchronization input BFSX I/O/Z BSP transmit frame-synchronization signal; internal or external source
LEGEND:
I = Input O = Output Z = High impedance
NOTE 1: ’LC56 devices only
10
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for Devices in the PZ Package (Continued)
SIGNAL TYPE DESCRIPTION
TDM SERIAL PORT INTERFACE
TDR I TDM serial receive-data input TDX O/Z TDM serial transmit-data output. In high-impedance state when not transmitting TCLKR I TDM serial receive-data clock input TCLKX I/O/Z TDM serial transmit-data clock. Internal or external source
TFSR / TADD I/O/Z
TFSX /TFRM I
TDI I JTAG-test-port scan data input TDO O/Z JTAG-test-port scan data output TMS I JTAG-test-port mode select input TCK I JTAG-port clock input TRST I JTAG-port reset (with pull-down resistor). Disables JTAG when low EMU0 I/O/Z Emulation control 0. Reserved for emulation use EMU1/OFF I/O/Z Emulation control 1. Puts outputs in high-impedance state when low
X1 O Oscillator output X2/CLKIN I Clock/oscillator input (PLL clock input for ’C56) CLKIN2 I Clock input (PLL clock input for ’C50, ’C51, ’C52, ’C53, ’C53S) CLKMD1, CLKMD2,
CLKMD3 CLKOUT1 O/Z Device system-clock output
V
DDA
V
DDD
V
DDC
V
DDI
V
SSA
V
SSD
V
SSC
V
SSI
LEGEND:
I = Input O = Output S = Supply Z = High impedance
NOTE 2: CLKIN2 pin is replaced by CLKMD3 pin on ’LC56 devices.
I Clock-mode select inputs
S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic
TDM serial receive-frame-synchronization input. In the TDM mode, TFSR/TADD is used to output/
input the address of the port
TDM serial transmit-frame-synchronization signal. Internal or external source. In the TDM mode, TFSX/TFRM becomes TFRM, the TDM frame sync.
EMULATION/JTAG INTERFACE
CLOCK GENERATION AND CONTROL (SEE NOTE 2)
POWER SUPPLY CONNECTIONS
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
11
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
TMS320C52, TMS320LC52
PJ PACKAGE
(TOP VIEW)
V
DDD
V
SSD
V
SSD
TMS
V
DDD
V
DDD
TCK
V
SSD
V
SSD
INT1 INT2 INT3 INT4
NMI
V
SSI
FSR
CLKR
V
DDA
V
SSA
D13D9D14
94 93 92
D15
MP/MC
V
TRST
91 90 89
BIO
HOLD
READY
88 87
D10
D11
D12
100
99
97 96 95
D8
D7 D6 D5 D4 D3 D2 D1 D0
DR
A0
98
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
SSI
SSI
RSVV
86 85 84
SSI
CLKX
83 82
SSI
V
TOUT
81
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51
SSC
V
EMU1/OFF EMU0 V
DDC
V
DDC
V
DDI
V
DDI
CLKOUT1 XF HOLDA NC DX V
SSI
FSX CLKMD2 V
SSI
V
SSI
TDO V
DDC
X1 X2/CLKIN CLKIN2 BR STRB R/W PS IS DS V
SSC
WE RD
12
A2A3A4
A5A1A7A8A9
A6
V
DDI
TDI
SSA
V
A11
A10
CLKMD1
NOTE: NC = No connect (These pins are reserved.)
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
A12
A13
A14
A15
DDA
V
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for the TMS320C52, TMS320LC52 in the PJ Package
SIGNAL TYPE DESCRIPTION
PARALLEL INTERFACE BUS
A0–A15 I/O/Z 16-bit external address bus (MSB: A15, LSB: A0) D0–D15 I/O/Z 16-bit external data bus (MSB: D15, LSB: D0) PS, DS, IS O/Z Program, data, and I/O space select outputs, respectively STRB I/O/Z Timing strobe for external cycles and external DMA R/W I/O/Z Read/write select for external cycles and external DMA RD, WE O/Z Read and write strobes, respectively, for external cycles READY I External bus ready/wait-state control input BR I/O/Z Bus request. Arbitrates global memory and external DMA
SYSTEM INTERFACE/CONTROL SIGNALS
RS I Reset. Initializes device and sets PC to zero MP/MC I Microprocessor/microcomputer mode select. Enables internal ROM HOLD I Puts parallel I/F bus in high-impedance state after current cycle HOLDA O/Z Hold acknowledge. Indicates external bus in hold state XF O/Z External flag output. Set/cleared through software BIO I I/O branch input. Implements conditional branches TOUT O/Z Timer output signal. Indicates output of internal timer INT1–INT4 I External interrupt inputs NMI I Nonmaskable external interrupt
SERIAL PORT INTERFACE
DR I Serial receive-data input DX O/Z Serial transmit-data output. In high-impedance state when not transmitting CLKR I Serial receive-data clock input CLKX I/O/Z Serial transmit-data clock. Internal or external source FSR I Serial receive-frame-synchronization input FSX I/O/Z Serial transmit-frame-synchronization signal. Internal or external source
EMULATION/JTAG INTERFACE
TDI I JTAG-test-port scan data input TDO O/Z JTAG-test-port scan data output TMS I JTAG-test-port mode select input TCK I JTAG-port clock input TRST I JTAG-port reset (with pulldown resistor). Disables JTAG when low EMU0 I/O/Z Emulation control 0. Reserved for emulation use EMU1/OFF I/O/Z Emulation control 1. Puts outputs in high-impedance state when low
LEGEND:
I = Input O = Output Z = High impedance
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
13
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for the TMS320C52, TMS320LC52 in the PJ Package (Continued)
SIGNAL TYPE DESCRIPTION
CLOCK GENERATION AND CONTROL
X1 O Oscillator output X2/CLKIN I Clock/oscillator input CLKIN2 I Clock input (PLL clock input for ’C52, ’LC52) CLKMD1, CLKMD2 I Clock-mode select inputs CLKOUT1 O/Z Device system-clock output
POWER SUPPLY CONNECTIONS
V
DDA
V
DDD
V
DDC
V
DDI
V
SSA
V
SSD
V
SSC
V
SSI
LEGEND:
I = Input O = Output S = Supply
S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic
14
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
TMS320C57S, TMS320LC57S
PGE PACKAGE
(TOP VIEW)
HINT
EMU0
NC
EMU1/OFF
V
SSC
V
SSC
TOUT
BCLKX
CLKX
V
DDC
BFSR
BCLKR
RS
READY
HOLD
NC
BIO
V
DDC
V
DDC
IAQ
TRST
V
SSI
V
SSI
MP/MC
D15 D14 D13
NC D12 D11 D10
D9
NC
D8
V
DDD
V
DDD
DDI
DDCVDDI
NC
V
V
144
143
142
141XF140
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
373839404142434445464748495051525354555657585960616263646566676869
HOLDA
CLKOUT1
139
138
BDX
137
DX
136
HD7
135
BFSX
HD6
134
133
FSX
132
HD5
CLKMD2
131
130
HD4
129
SSI
V
128
V
127
TDO
126
NC
125
DDC
V
124
X1
X2/CLKIN
123
122
BR
CLKMD3
NC
119
121
120
HD3
118
NC
117
SSI
R/W
STRB
116
115
PS
114
SSC
DS
112
707172
HD2
111
SSC
V
V
110
109
WE
108
HD1
107
RD
106
HD0
105 104
HRDY
103
V
DDA
102
A15
101
NC
100
A14
99
A13
98
A12
97
NC
96
A11
95
A10
94
CLKMD1
93
V
SSA
92
V
SSA
91
TDI
90
HDS1
89
HDS2
88
V
DDI
87
V
DDI
86
A9
85
A8
84
A7
83
NC
82
A6
81
A5
80
A4
79
A3
78
NC
77
A2
76
A1
75
A0
74
V
SSA
73
HCS
ADVANCE INFORMATION
IS
113
D6
SSD
V
SSD
V
D7
NC
D5
D4
D3
NC
D2
D1
D0
TMS
HCNTL0
NOTE: NC = No connect (These pins are reserved.)
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
DDD
V
V
HCNTL1
DDD
TCK
SSD
V
SSD
V
NC
INT1
HR/W
INT2
INT3
INT4
HBIL
NMI
DR
BDR
FSR
DDA
CLKR
V
DDA
V
HAS
NC
15
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for the TMS320C57S, TMS320LC57S in the PGE Package
SIGNAL TYPE DESCRIPTION
PARALLEL INTERFACE BUS
A0–A15 I/O/Z 16-bit external address bus (MSB: A15, LSB: A0) D0–D15 I/O/Z 16-bit external data bus (MSB: D15, LSB: D0) PS, DS, IS O/Z Program, data, and I/O space select outputs, respectively STRB I/O/Z Timing strobe for external cycles and external DMA R/W I/O/Z Read/write select for external cycles and external DMA RD, WE O/Z Read and write strobes, respectively, for external cycles READY I External bus ready/wait-state control input BR I/O/Z Bus request. Arbitrates global memory and external DMA
SYSTEM INTERFACE/CONTROL SIGNALS
RS I Reset. Initializes device and sets PC to zero MP/MC I Microprocessor/microcomputer mode select. Enables internal ROM HOLD I Puts parallel I/F bus in high-impedance state after current cycle HOLDA O/Z Hold acknowledge. Indicates external bus in hold state XF O/Z External flag output. Set/cleared through software BIO I I/O branch input. Implements conditional branches TOUT O/Z Timer output signal. Indicates output of internal timer IAQ O/Z Instruction acquisition signal INT1–INT4 I External interrupt inputs NMI I Nonmaskable external interrupt
SERIAL PORT INTERFACE (SPI)
DR I Serial receive-data input DX O/Z Serial transmit-data output. In high-impedance state when not transmitting CLKR I Serial receive-data clock input CLKX I/O/Z Serial transmit-data clock. Internal or external source FSR I Serial receive-frame-synchronization input FSX I/O/Z Serial transmit-frame-synchronization signal. Internal or external source
HOST PORT INTERFACE (HPI)
HCNTL0 I HPI mode control 1 HCNTL1 I HPI mode control 2 HINT O/Z Host interrupt HDS1 I HPI data strobe 1 HDS2 I HPI data strobe 2 HR/W I HPI read/write strobe HAS I HPI address strobe HRDY O/Z HPI ready signal HCS I HPI chip select HBIL I HPI byte identification input HD0–HD7 I/O/Z HPI data bus
LEGEND:
I = Input O = Output Z = High impedance
16
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Pin Functions for the TMS320C57S, TMS320LC57S in the PGE Package (Continued)
SIGNAL TYPE DESCRIPTION
BUFFERED SERIAL PORT
BDR I BSP receive data input BDX O/Z BSP transmit data output; in high-impedance state when not transmitting BCLKR I BSP receive-data clock input BCLKX I/O/Z BSP transmit-data clock; internal or external source BFSR I BSP receive frame-synchronization input BFSX I/O/Z BSP transmit frame-synchronization signal; internal or external source
EMULATION/JTAG INTERFACE
TDI I JTAG-test-port scan data input TDO O/Z JTAG-test-port scan data output TMS I JTAG-test-port mode select input TCK I JTAG-port clock input TRST I JTAG-port reset (with pulldown resistor). Disables JTAG when low EMU0 I/O/Z Emulation control 0. Reserved for emulation use EMU1/OFF I/O/Z Emulation control 1. Puts outputs in high-impedance state when low
CLOCK GENERATION AND CONTROL
X1 O Oscillator output X2/CLKIN I PLL clock input CLKMD1, CLKMD2,
CLKMD3 CLKOUT1 O/Z Device system-clock output
V
DDA
V
DDD
V
DDC
V
DDI
V
SSA
V
SSD
V
SSC
V
SSI
LEGEND:
I = Input O = Output S = Supply Z = High impedance
I Clock-mode select inputs
POWER SUPPLY CONNECTIONS
S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic S Supply connection, address-bus output S Supply connection, data-bus output S Supply connection, control output S Supply connection, internal logic
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
17
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
architecture
The ’C5x’s advanced Harvard-type architecture maximizes the processing power by maintaining two separate memory bus structures, program and data, for full-speed execution. Instructions support data transfers between the two spaces. This architecture permits coefficients stored in program memory to be read into the RAM, eliminating the need for a separate coefficient ROM. The ’C5x architecture also makes available immediate instructions and subroutines based on computed values. Increased throughput on the ’C5x for many DSP applications is accomplished using single-cycle multiply/accumulate instructions with a data-move option, up to eight auxiliary registers with a dedicated arithmetic unit, a parallel logic unit, and faster I/O necessary for data-intensive signal processing. The architectural design emphasizes overall speed, communication, and flexibility in processor configuration. Control signals and instructions provide floating-point support, block-memory transfers, communication to slower off-chip devices, and multiprocessing implementations as shown in the functional block diagram.
Table 3 explains the symbols that are used in the functional block diagram.
Table 3. Symbols Used in Functional Block Diagram
SYMBOL DESCRIPTION SYMBOL DESCRIPTION
ABU Auto-buffering unit IFR Interrupt-flag register ACCB Accumulator buffer IMR Interrupt-mask register ACCH Accumulator high INDX Indirect-addressing-index register ACCL Accumulator low IR Instruction register ALU Arithmetic logic unit MCS Microcall stack ARAU Auxiliary-register arithmetic unit MUX Multiplexer ARB Auxiliary-register pointer buffer PAER Block-repeat-address end register ARCR Auxiliary-register compare register PASR Block-repeat-address start register ARP Auxiliary-register pointer PC Program counter ARR Address-receive register (ABU) PFC Prefetch counter AR0–AR7 Auxiliary registers PLU Parallel logic unit AXR Address-transmit register (ABU) PMST Processor-mode-status register BKR Receive-buffer-size register (ABU) PRD Timer-period register BKX Transmit-buffer-size register (ABU) PREG Product register BMAR Block-move-address register RPTC Repeat-counter register BRCR Block-repeat-counter register SARAM Single-access RAM BSP Buffered serial port SFL Left shifter C Carry bit SFR Right shifter CBER1 Circular buffer 1 end address SPC Serial-port interface-control register CBER2 Circular buffer 2 end address ST0,ST1 Status registers CBSR1 Circular buffer 1 start address TCSR TDM channel-select register CBSR2 Circular buffer 2 start address TCR Timer-control register DARAM Dual-access RAM TDM Time-division-multiplexed serial port DBMR Dynamic bit manipulation register TDXR TDM data transmit register DP Data memory page pointer TIM Timer-count register DRR Serial-port data receive register TRAD TDM received-address register DXR Serial-port data transmit register TRCV TDM data-receive register GREG Global memory allocation register TREG0 Temporary register for multiplication HPI Host port interface TREG1 Temporary register for dynamic shift count HPIAH HPI-address register (high bytes) TREG2 T emporary register used as bit pointer in dynamic-bit test HPIAL HPI-address register (low bytes) TRTA TDM receive-/transmit-address register HPICH HPI-control register (high bytes) TSPC TDM serial-port-control register HPICL HPI-control register (low bytes)
18
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
functional block diagram
CLKMD1 CLKMD2
IS DS PS
Control
MUXMUX
3
ARP(3)
3
ARB(3)
MUX
Data/Prog
SARAM
MUX
16
X1 CLKOUT1 X2/CLKIN CLKIN2/CLKMD3
16
RD WE NMI
16
16
16
16
3
MUX
Data/Prog
DARAM
B0 (512x16)
MUX
MCS(16)
16
16
RW
STRB
READY
BR XF
HOLD
HOLDA
IAQ
BO
RS
IACK
MP/MC
INT(1–4)
A15–A0
D15–D0
4
16
RBIT
16
Data Bus
3
’C50 9K ’C51 1K ’C53 3K ’C56 6K ’C57 6K
Not available on all devices (see Table 1).
NOTES: A. Signals in shaded text are not available on
100-pin QFP packages.
B. Symbol descriptions appear in Table 3.
Address
Instruction
16
AR0(16) AR1(16) AR2(16) AR3(16) AR4(16) AR5(16) AR6(16) AR7(16)
CBSR1(16)
CBSR2(16)
CBER1(16) CBER2(16)
INDX(16)
ARCR(16)
ARAU(16)
16
PFC(16)
16
ROMProgram 2K’C50 8K’C51 4K’C52 16K’C53 32K’C56 32K’C57
16
16
DARAM
B2 (32x16)
B1 (512x16)
16
16
DP(9)
MUX
MUX
Data
16
Program Bus
MUX
16
PC(16)
16
Stack
(8x16)
9
9
16
SFR(0–16)
7 LSB from IR
32
32
16
16
PAER(16)
16
SFL(0–16)
MUX
16
Compare
PASR(16)
16
16
16
16
16
16
TREG0(16)
SFL (–6,0,1, 4)
32
ALU(32)
ACCL(16)ACCH(16)C
Shifter(0–7)
16
16
Multiplier
PREG(32)
MUX
32
32
16
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Serial Port 1
Data Bus
SPC
DXR
DRR
Serial Port 2
SPC
DXR
DRR
TDM
TSPC
TDXR
TRCV
TCSR(8)
TRTA
TRAD(16)
BSP DXR
AXR(11)
BKX(11)
DRR
ARR(11)
BKR(11)
Timer
TCR
PRD
TIM
HPI
HPICL
HPICH
HPIAH
16
16
Data Bus
16
16 16
MUX
16
32
32
32
ACCB(32)
IR(16)
BMAR(16)
ST0(16)
ST1(16) PMST(16) RPTC(16)
IMR(16)
IFR(16) GREG(16) BRCR(16) TREG1(5) TREG2(4)
Program Bus
DBMR(16)
MUX
PLU (16)
32
Data Bus
16
16
16
16
Program Bus
DX CLKX FSX DR FSR CLKR
DX2 CLKX2 FSX2 DR2 FSR2 CLKR2
TDX TFRM TCLKX TDR TADD TCLKR
BDX DFSX BCLKX BDR BFSR BCLKR
TOUT
HD0 HD7 HCNTL1 HCNTL0 HBIL HCSHPIAL HDS(1–1) HAS HR/W HRDY HINT
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
19
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
32-bit ALU/accumulator
The 32-bit ALU and accumulator implement a wide range of arithmetic and logical functions, the majority of which execute in a single cycle. The ALU is a general-purpose arithmetic/logic unit that operates on 16-bit words taken from data memory or derived from immediate instructions. In addition to the usual arithmetic instructions, the ALU can perform Boolean operations, facilitating the bit manipulation ability required of a high-speed controller. One input to the ALU always is supplied by the accumulator, and the other input can be furnished from the product register (PREG) of the multiplier, the accumulator buf fer (ACCB), or the output of the scaling shifter [which has been read from data memory or from the accumulator (ACC)]. After the ALU performs the arithmetic or logical operation, the result is stored in the ACC where additional operations, such as shifting, can be performed. Data input to the ALU can be scaled by the scaling shifter. The 32-bit ACC is split into two 16-bit segments for storage in data memory . Shifters at the output of the ACC provide a left shift of 0 to 7 places. This shift is performed while the data is being transferred to the data bus for storage. The contents of the ACC remain unchanged. When the postscaling shifter is used on the high word of the ACC (bits 31–16), the most significant bits (MSBs) are lost and the least significant bits (LSBs) are filled with bits shifted in from the low word (bits 15–0). When the postscaling shifter is used on the low word, the LSBs are filled with zeros.
The ’C5x supports floating-point operations for applications requiring a large dynamic range. By performing left shifts, the normalization instruction (NORM) is used to normalize fixed-point numbers contained in the ACC. The four bits of the TREG1 define a variable shift through the scaling shifter for the ADDT/LACT/SUBT instructions (add to/load to/subtract from ACC with shift specified by TREG1). These instructions are useful in denormalizing a number (converting from floating point to fixed point). They are also useful for executing an automatic gain control (AGC) going into a filter.
The single-cycle 1-bit to 16-bit right shift of the ACC efficiently aligns the ACC’s contents. This, coupled with the 32-bit temporary buffer on the ACC, enhances the effectiveness of the ALU in extended-precision arithmetic. The ACCB provides a temporary storage place for a fast save of the ACC. The ACCB also can be used as an input to the ALU. The minimum or maximum value in a string of numbers is found by comparing the contents of the ACCB with the contents of the ACC. The minimum or maximum value is placed in both registers, and, if the condition is met, the carry bit (C) is set to 1. The minimum and maximum functions are executed by the CRLT and CRGT instructions, respectively.
scaling shifters
The ’C5x provides a scaling shifter that has a 16-bit input connected to the data bus and a 32-bit output connected to the ALU. This scaling shifter produces a left shift of 0 to 16 bits on the input data. The shift count is specified by a constant embedded in the instruction word or by the value in TREG1. The LSBs of the output are filled with zeros; the MSBs may be either filled with zeros or sign extended, depending upon the value of the sign-extension mode (SXM) bit of status register ST1.
The ’C5x also contains several other shifters that allow it to perform numerical scaling, bit extraction, extended-precision arithmetic, and overflow prevention. These shifters are connected to the output of the product register and the ACC.
parallel logic unit
The parallel logic unit (PLU) is a second logic unit, additional to the main ALU, that executes logic operations on data without affecting the contents of the ACC. The PLU provides the bit-manipulation ability required of a high-speed controller and simplifies control/status register operations. The PLU provides a direct logic operation path to data memory space and can set, clear, test, or toggle multiple bits directly in a data memory location, a control/status register, or any register that is mapped into data memory space.
20
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
16 × 16-bit parallel multiplier
The ’C5x uses a 16 × 16-bit hardware multiplier that is capable of computing a signed or an unsigned 32-bit product in a single machine cycle. All multiply instructions, except the MPYU (multiply unsigned) instruction, perform a signed multiply operation in the multiplier. That is, two numbers being multiplied are treated as 2s-complement numbers, and the result is a 32-bit 2s-complement number.
There are two registers associated with the multiplier: TREG0, a 16-bit temporary register that holds one of the operands for the multiplier, and PREG, the 32-bit product register that holds the product. Four product shift modes (PM) are available at the PREG’s output. These shift modes are useful for performing multiply/accumulate operations, performing fractional arithmetic, or justifying fractional products. The PM field of status register ST1 specifies the PM shift mode.
The product can be shifted one bit to compensate for the extra sign bit gained in multiplying two 16-bit 2s-complement numbers (MPY). A 4-bit shift is used in conjunction with the MPY instruction with a short immediate value (13 bits or less) to eliminate the four extra sign bits gained in multiplying a 16-bit number by a 13-bit number. Finally, the output of PREG can, instead, be right-shifted 6 bits to enable the execution of up to 128 consecutive multiply/accumulates without the possibility of overflow.
The load-TREG0 (L T) instruction normally loads TREG0 to provide one operand (from the data bus), and the MPY instruction provides the second operand (also from the data bus). A multiplication also can be performed with a short or long immediate operand by using the MPY instruction with an immediate operand. A product is obtained every two cycles except when a long immediate operand is used.
Four multiply/accumulate instructions (MAC, MACD, MADD, and MADS as defined in Table 7) fully utilize the computational bandwidth of the multiplier, allowing both operands to be processed simultaneously. The data for these operations is transferred to the multiplier during each cycle through the program and data buses. This facilitates single-cycle multiply/accumulates when used with repeat ( RPT and RPTZ ) instructions. In these instructions, the coefficient addresses are generated by the PC, while the data addresses are generated by the ARAU. This allows the repeated instruction to access the values sequentially from the coefficient table and step through the data in any of the indirect addressing modes. The RPTZ instruction also clears the accumulator and the product register to initialize the multiply/accumulate operation.
The MACD and MADD instructions, when repeated, support filter constructs (weighted running averages) so that as the sum-of-products is executed, the sample data is shifted in memory to make room for the next sample and to eliminate the oldest sample. Circular addressing with MAC and MADS instructions also can be used to support filter implementation.
auxiliary registers and auxiliary-register arithmetic unit (ARAU)
The ’C5x provides a register file containing eight auxiliary registers (AR0–AR7). The auxiliary registers are used for indirect addressing of the data memory or for temporary data storage. Indirect auxiliary-register addressing allows placement of the data memory address of an instruction operand into one of the auxiliary registers. These registers are referenced with a 3-bit auxiliary register pointer (ARP) that is loaded with a value from 0 through 7, designated AR0 through AR7, respectively. The auxiliary registers and the ARP can be loaded from data memory , the ACC, the product register , or by an immediate operand defined in the instruction. The contents of these registers can be stored in data memory or used as inputs to the central arithmetic logic unit (CALU). These registers are accessible as memory-mapped locations within the ’C5x data-memory space.
The auxiliary register file (AR0–AR7) is connected to the auxiliary register arithmetic unit (ARAU). The ARAU can autoindex the current auxiliary register while the data memory location is being addressed. Indexing can be performed either by ±1 or by the contents of the INDX register. As a result, accessing tables of information does not require the CALU for address manipulation; thus, the CALU is free for other operations in parallel.
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
21
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
memory
The ’C5x implements three separate address spaces for program memory , data memory , and I/O. Each space accommodates a total of 64K 16-bit words (see Figures 1 through 7). Within the 64K words of data space, the 256 to 32K words at the top of the address range can be defined to be external global memory in increments of powers of two, as specified by the contents of the global memory allocation register (GREG). Access to global memory is arbitrated using the global memory bus request (BR
The ’C5x devices include a considerable amount of on-chip memory to aid in system performance and integration including ROM, single-access RAM (SARAM), and dual-access RAM (DARAM). The amount and types of memory available on each device are shown in Table 1.
On the ’C5x, the first 96 (0 – 5Fh) data-memory locations are allocated for memory-mapped registers. This memory-mapped register space contains various control and status registers including those for the CPU, serial port, timer, and software wait-state generators. Additionally, the first 16 I/O port locations are mapped into this data-memory space, allowing them to be accessed either as data memory using single-word instructions or as I/O locations with two-word instructions. Two-word instructions allow access to the full 64K words of I/O space.
The mask-programmable ROM is located in program memory space. Customers can arrange to have this ROM programmed with contents unique to to any particular application. The ROM is enabled or disabled by the state of the MP/MC
control input upon resetting the device or by manipulating the MP/MC bit in the PMST status register after reset. The ROM occupies the lowest block of program memory when enabled. When disabled, these addresses are located in the device’s external program-memory space.
) signal.
The ’C5x also has a mask-programmable option that provides security protection for the contents of on-chip ROM. When this internal option bit is programmed, no externally-originating instruction can access the on-chip ROM. This feature can be used to provide security for proprietary algorithms.
An optional boot loader is available in the device’s on-chip ROM. This boot loader can be used to transfer a program automatically from data memory or the serial port to anywhere in program memory . In data memory, the program can be located on any 1K-word boundary and can be in either byte-wide or 16-bit word format. Once the code is transferred, the boot loader releases control to the program for execution.
The ’C5x devices provide two types of RAM: single-access RAM (SARAM) and dual-access RAM (DARAM). The single-access RAM requires a full machine cycle to perform a read or a write; however, this is not one large RAM block in which only one access per cycle is allowed. It is made up of 2K-word size-independent RAM blocks and each one allows one CPU access per cycle. The CPU can read or write one block while accessing another block at the same time. All ’C5x processors support multiple accesses to its SARAM in one cycle as long as they go to different RAM blocks. If the total SARAM size is not a multiple of two, one block is made smaller than 2K words. With an understanding of this structure, programmers can arrange code and data appropriately to improve code performance. Table 4 shows the sizes of available SARAM on the applicable ’C5x devices.
Table 4. SARAM Block Sizes
DEVICE NUMBER OF SARAM BLOCKS
’C50/’LC50 Four 2K blocks and one 1K block ’C51/’LC51 One 1K block ’C53/’C53S /’LC53 One 2K block and one 1K block ’LC56 Three 2K blocks ’C57S/’LC57/’LC57S Three 2K blocks
memory (continued)
The ’C5x dual-access RAM (DARAM) allows writes to, and reads from, the RAM in the same cycle without the address restrictions of the SARAM. The dual-access RAM is configured in three blocks: block 0 (B0), block 1 (B1), and block 2 (B2). Block 1 is 512 words in data memory and block 2 is 32 words in data memory . Block 0
22
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
is a 512-word block which can be configured as data or program memory . The CLRC CNF (configure B0 as data memory) and SETC CNF (configure B0 as program memory) instructions allow dynamic configuration of the memory maps through software. When using block 0 as program memory , instructions can be downloaded from external program memory into on-chip RAM and then executed.
When using on-chip RAM, ROM, or high-speed external memory , the ’C5x runs at full speed with no wait states. The ability of the DARAM to allow two accesses to be performed in one cycle, coupled with the parallel nature of the ’C5x architecture, enables the device to perform three concurrent memory accesses in any given machine cycle. Externally , the READY line can be used to interface the ’C5x to slower , less expensive external memory . Downloading programs from slow off-chip memory to on-chip RAM can speed processing while cutting system costs.
Hex 0000
003F 0040
07FF 0800
2BFF 2C00
FDFF FE00
FFFF
Program
Interrupts and
Reserved (external)
External
On-Chip SARAM
(RAM = 1)
External
(RAM = 0)
External
On-Chip DARAM B0
(CNF = 1)
External (CNF = 0)
MP/MC = 1
(microprocessor mode)
Hex Hex
0000
003F 0040
07FF 0800
2BFF 2C00
FDFF FE00
FFFF
Program
Interrupts and
Reserved (on-chip)
On-Chip
ROM
On-Chip SARAM
(RAM = 1)
External
(RAM = 0)
External
On-Chip DARAM B0
(CNF = 1)
External (CNF = 0)
MP/MC
(microcomputer mode)
= 0
0000 005F
0060 007F
0080 00FF
0100
02FF 0300
04FF 0500
07FF 0800
2BFF 2C00
FFFF
Memory-Mapped
On-Chip DARAM B0
Reserved (CNF = 1)
On-Chip SARAM
External (OVLY = 0)
Data
Registers
On-Chip
DARAM B2
Reserved
(CNF = 0)
On-Chip
DARAM B1
Reserved
(OVLY = 1)
External
Figure 1. TMS320C50 and TMS320LC50 Memory Map
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
23
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Hex Hex Hex
0000
003F 0040
1FFF 2000
23FF 2400
FDFF FE00
FFFF
Program
Interrupts and
Reserved (external)
External
On-Chip SARAM
(RAM = 1)
External
(RAM = 0)
External
On-Chip DARAM
B0 (CNF = 1)
External (CNF = 0)
MP/MC = 1
(microprocessor mode)
0000
003F 0040
1FFF 2000
23FF 2400
FDFF FE00
FFFF
Program
Interrupts and
Reserved
(on-chip)
On-Chip
ROM
On-Chip SARAM
(RAM = 1)
External
(RAM = 0)
External
On-Chip DARAM
B0 (CNF = 1)
External (CNF = 0)
MP/MC
(microcomputer mode)
= 0
0000 005F
0060 007F
0080 00FF
0100
02FF 0300
04FF 0500
07FF 0800
0BFF 0C00
FFFF
Figure 2. TMS320C51 and TMS320LC51 Memory Map
Hex
0000
003F 0040
FDFF FE00
FFFF
Program
Interrupts and
Reserved (external)
External
On-Chip DARAM
B0 (CNF = 1)
External (CNF = 0)
MP/MC = 1
(microprocessor mode)
Hex Hex
0000
003F 0040
0FFF 1000
FDFF FE00
FFFF
Program
Interrupts and
Reserved
(on-chip)
On-Chip
ROM
External
On-Chip DARAM
B0 (CNF = 1)
External (CNF = 0)
= 0
MP/MC
(microcomputer mode)
Memory-Mapped
Registers
On-Chip
DARAM B2
Reserved
On-Chip DARAM
B0 (CNF = 0)
Reserved (CNF = 1)
On-Chip
DARAM B1
Reserved
On-Chip SARAM
(OVLY = 1)
External (OVLY = 0)
External
0000 005F
0060 007F
0080 00FF
0100
02FF 0300
04FF 0500
07FF 0800
FFFF
Memory-Mapped
On-Chip DARAM
Reserved (CNF = 1)
Data
Data
Registers
On-Chip
DARAM B2
Reserved
B0 (CNF = 0)
On-Chip
DARAM B1
Reserved
External
24
Figure 3. TMS320C52 and TMS320LC52 Memory Map
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Hex Hex Hex 0000
003F 0040
3FFF 4000
4BFF 4C00
FDFF FE00
FFFF
Program
Interrupts and
Reserved (external)
External
On-Chip SARAM
(RAM = 1)
External
(RAM = 0)
External
On-Chip DARAM
B0 (CNF = 1)
External (CNF = 0)
MP/MC = 1
(microprocessor mode)
0000
003F 0040
3FFF 4000
4BFF 4C00
FDFF FE00
FFFF
Program
Interrupts and
Reserved
(on-chip)
On-Chip
ROM
On-Chip SARAM
(RAM = 1)
External
(RAM = 0)
External
On-Chip DARAM
B0 (CNF = 1)
External (CNF = 0)
MP/MC
(microcomputer mode)
= 0
0000 005F
0060 007F
0080 00FF
0100
02FF 0300
04FF 0500
07FF 0800
13FF 1400
FFFF
Memory-Mapped
Registers
DARAM B2
Reserved
On-Chip DARAM
B0 (CNF = 0)
Reserved (CNF = 1)
DARAM B1
Reserved
On-Chip SARAM
(OVLY = 1)
External (OVLY = 0)
Figure 4. TMS320C53, TMS320C53S, TMS320LC53, and TMS320LC53S Memory Map
Data
On-Chip
On-Chip
External
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
25
TMS320C5x, TMS320LC5x DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Hex Hex
0000
003F
0040
7FFF
8000
87FF
8800
8FFF
9000
97FF
9800
Interrupts and Reservrd
Program Program
0000
(external)
003F
0040
External
7FFF
8000
On-Chip SARAM Blk0
(RAM = 1)
External (RAM = 0)
87FF
8800
On-Chip SARAM Blk1
(RAM = 1)
External (RAM = 0)
8FFF
9000
On-Chip SARAM Blk2
(RAM = 1)
External (RAM = 0)
97FF
9800
External
Interrupts and Reserved
(on-chip)
On-Chip ROM
On-Chip SARAM Blk0
(RAM = 1)
External (RAM = 0)
On-Chip SARAM Blk1
(RAM = 1)
External (RAM = 0)
On-Chip SARAM Blk2
(RAM = 1)
External (RAM = 0)
External
Hex
0000
005F
0060
007F
0080
00FF
0100
On-Chip DARAM B0 (CNF = 0)
02FF
0300
04FF
0500
07FF
0800
On-Chip SARAM Blk0
BSP Block (OVLY = 1)
0FFF
1000
On-Chip SARAM Blk1
17FF
1800
On-Chip SARAM Blk2
1FFF
2000
Data
Memory-Mapped
Registers
On-Chip DARAM B2
Reserved
Reserved (CNF = 1)
On-Chip DARAM B1
Reserved
External (OVLY = 0)
(OVLY = 1)
External (OVLY = 0)
(OVLY = 1)
External (OVLY = 0)
FDFF
FE00
FFFF
On-Chip DARAM B0
(CNF = 1)
External (CNF = 0)
MP/MC = 1
FDFF
FE00
FFFF
On-Chip DARAM B0
(CNF = 1)
External (CNF = 0)
= 0
MP/MC
Figure 5. TMS320LC56 Memory Map
External
FFFF
26
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
TMS320C5x, TMS320LC5x
DIGITAL SIGNAL PROCESSORS
SPRS030A – APRIL 1995 – REVISED APRIL 1996
Hex Hex
0000
003F 0040
7FFF
8000
87FF 8800
8FFF
9000
97FF 9800
Program Program
0000
Interrupts and Reservrd
(external)
003F
0040
External
7FFF
8000
On-Chip SARAM Blk0
(RAM = 1)
External (RAM = 0)
87FF
8800
On-Chip SARAM Blk1
(RAM = 1)
External (RAM = 0)
8FFF
9000
On-Chip SARAM Blk2
(RAM = 1)
External (RAM = 0)
97FF
9800
External
Interrupts and Reserved
(on-chip)
On-Chip ROM
On-Chip SARAM Blk0
(RAM = 1)
External (RAM = 0)
On-Chip SARAM Blk1
(RAM = 1)
External (RAM = 0)
On-Chip SARAM Blk2
(RAM = 1)
External (RAM = 0)
External
Hex
0000
005F
0060
007F
0080
00FF
0100
02FF
0300
04FF
0500 0501
07FF
0800
0FFF
1000
17FF
1800
1FFF
2000
Data
Memory-Mapped
Registers
On-Chip DARAM B2
Reserved
On-Chip DARAM (CNF = 0)
Reserved (CNF = 1)
On-Chip DARAM B1
HPI Control Register
Reserved
On-Chip SARAM Blk0 BSP Block (OVLY = 1)
External (OVLY = 0)
On-Chip SARAM Blk1
HPI Block (OVLY = 1)
External (OVLY = 0)
On-Chip SARAM Blk2
(OVLY = 1)
External (OVLY = 0)
FDFF
FE00
FFFF
On-Chip DARAM B0
(CNF = 1)
External (CNF = 0)
MP/MC = 1
FDFF
FE00
FFFF
On-Chip DARAM B0
(CNF = 1)
External (CNF = 0)
= 0
MP/MC
Figure 6. TMS320LC57 Memory Map
External
FFFF
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
27
Loading...
+ 60 hidden pages