This data sheet revision history highlights the technical changes made to the SPRS096B device-specific data
sheet to make it an SPRS096C revision.
Scope: This document has been reviewed for technical accuracy; the technical content is up-to-date as of the
specified release date with the following changes.
PAGE(S)
NO.
5Table 1−2, Signal Descriptions:
− Updated DESCRIPTION of TRST
− Added footnote about TRST
62Section 5, Mechanical Data:
− Moved “Package Thermal Resistance Characteristics” section (Section 4.4 in SPRS096B) to this section
− Added Section 5.2, Packaging Information
− Mechanical drawings will be appended to this document via an automated process
This section describes the main features of the TMS320UC5402, lists the pin assignments, and describes the
function of each pin. This data manual also provides a detailed description section, electrical specifications,
parameter measurement information, and mechanical data about the available packaging.
NOTE: This data manual is designed to be used in conjunction with theTMS320C54x DSP Functional
Overview (literature number SPRU307).
1.1Features
D
Advanced Multibus Architecture With Three
Separate 16-Bit Data Memory Buses and
One Program Memory Bus
D40-Bit Arithmetic Logic Unit (ALU),
Including a 40-Bit Barrel Shifter and Two
Independent 40-Bit Accumulators
D17-× 17-Bit Parallel Multiplier Coupled to a
40-Bit Dedicated Adder for Non-Pipelined
Single-Cycle Multiply/Accumulate (MAC)
Operation
DCompare, Select, and Store Unit (CSSU) for
the Add/Compare Selection of the Viterbi
Operator
DExponent Encoder to Compute an
Exponent Value of a 40-Bit Accumulator
Value in a Single Cycle
DTwo Address Generators With Eight
Auxiliary Registers and Two Auxiliary
Register Arithmetic Units (ARAUs)
DData Bus With a Bus-Holder Feature
DExtended Addressing Mode for 1M × 16-Bit
Maximum Addressable External Program
Space
D4K x 16-Bit On-Chip ROM
D16K x 16-Bit On-Chip Dual-Access RAM
DSingle-Instruction-Repeat and
Block-Repeat Operations for Program Code
DBlock-Memory-Move Instructions for
Efficient Program and Data Management
DInstructions With a 32-Bit-Long Word
Operand
DInstructions With Two- or Three-Operand
Reads
DArithmetic Instructions With Parallel Store
and Parallel Load
TMS320C54x and MicroStar BGA are trademarks of Texas Instruments.
All trademarks are the property of their respective owners.
†
IEEE Standard 1149.1-1990 Standard-Test-Access Port and Boundary Scan Architecture.
DConditional Store Instructions
DFast Return From Interrupt
DOn-Chip Peripherals
− Software-Programmable Wait-State
Generator and Programmable Bank
Switching
− On-Chip Phase-Locked Loop (PLL) Clock
Generator With Internal Oscillator or
External Clock Source
− Six-Channel Direct Memory Access
(DMA) Controller
DPower Consumption Control With IDLE1,
IDLE2, and IDLE3 Instructions With
Power-Down Modes
DCLKOUT Off Control to Disable CLKOUT
DOn-Chip Scan-Based Emulation Logic,
IEEE Std 1149.1
Logic
D12.5-ns Single-Cycle Fixed-Point
Instruction Execution Time (80 MIPS)
D1.8-V Core Power Supply
D1.8-V to 3.6-V I/O Power Supply Enables
Operation With a Single 1.8-V Supply or
with Dual Supplies
DAvailable in a 144-Pin Low-Profile Quad
Flatpack (LQFP) (PGE Suffix)
DAvailable in a 144-Ball MicroStar Ball Grid
Array (BGA) (GGU Suffix)
Introduction
†
(JTAG) Boundary Scan
April 1999 − Revised October 2008SPRS096C
1
Introduction
1.2Description
The TMS320UC5402 fixed-point, digital signal processor (DSP) (hereafter referred to as the UC5402 unless
otherwise specified) is ideal for low-power, high-performance applications. This processor offers very low
power consumption and the flexibility to support various system voltage configurations. The wide range of I/O
voltage enables it to operate with a single 1.8-V power supply or with dual power supplies for mixed voltage
systems. This feature eliminates the need for external level-shifting and reduces power consumption in
emerging sub-3V systems.
Texas Instrument (TI) DSPs do not require specific power sequencing between the core supply and the I/O
supply. However, systems should be designed to ensure that neither supply is powered up for extended
periods of time if the other supply is below the proper operating voltage. Excessive exposure to these
conditions can adversely affect the long-term reliability of the device.
System-level concerns such as bus contention may require supply sequencing to be implemented. In this
case, the core supply should be powered up at the same time as, or prior to, the I/O buffers and powered down
after the I/O buffers.
The UC5402 is based on an advanced modified Harvard architecture that has one program memory bus and
three data memory buses. This processor provides an arithmetic logic unit (ALU) with a high degree of
parallelism, application-specific hardware logic, on-chip memory, and additional on-chip peripherals. The
basis of the operational flexibility and speed of this DSP is a highly specialized instruction set.
1.3Pin Assignments
Figure 1−1 illustrates the ball locations for the 144-terminal ball grid array (BGA) package and is used in
conjunction with Table 1−1 to locate signal names and ball grid numbers. DV
I/O pins while CV
is the power supply for the core CPU. VSS is the ground for both the I/O pins and the core
NCE1EMU1/OFFJ13BCLKX0N5HD4A9
HASF4TDOH10BCLKX1K6D13D8
V
SS
NCF2TRSTH12HINT/TOUT1M6D15B8
CV
DD
HCSG2TMSG12BFSX0M7CV
HR/WG1NCG13BFSX1N7NCA7
READYG3CV
PSG4HPIENAG10DV
DSH1V
ISH2CLKOUTF12HD0M8DV
R/WH3HD3F11BDX0L8A0C6
MSTRBH4X1F10BDX1K8A1D6
IOSTRBJ1X2/CLKIN
MSCJ2RSE12HBILM9A3B5
XFJ3D0E11NMIL9HD6C5
HOLDAJ4D1E10INT0K9A4D5
IAQK1D2D13INT1N10A5A4
HOLDK2D3D12INT2M10A6B4
BIOK3D4D11INT3L10A7C4
MP/MCL1D5C13CV
DV
DD
V
SS
NCM1A17B13NCN12NCA2
NCM2A18B12NCM12NCB2
†
DVDD is the power supply for the I/O pins while CVDD is the power supply for the core CPU. VSS is the ground for both the I/O pins and the core
CPU.
‡
If an external clock source is used, the CLKIN signal level should not exceed CVDD + 0.3 V.
BGA BALL #
C2DV
C1V
F3TDIH11V
F1TCKH13CV
L2A16C12HD1M11A9B3
L3V
SIGNAL
NAME
DD
SS
DD
SS
SS
‡
BGA BALL #
L12HCNTL0M3V
L13V
G11HRDYL7HDS1C7
F13V
E13IACKN9A2A5
C11V
SIGNAL
NAME
SS
SS
DD
DD
SS
DD
SS
BGA BALL #
N3DV
L6D14C8
N6HD5A8
K7V
N8HDS2A6
N11A8A3
L11CV
SIGNAL
NAME
SS
DD
DD
SS
DD
DD
BGA BALL #
B11
A11
B7
D7
B6
C3
April 1999 − Revised October 2008SPRS096C
3
Introduction
1.3.2 Pin Assignments for the PGE Package
The TMS320UC5402PGE 144-pin low-profile quad flatpack (LQFP) pin assignments are shown in
Figure 1−2. DV
is the ground for both the I/O pins and the core CPU.
is the power supply for the I/O pins while CVDD is the power supply for the core CPU. V
I = input, O = output, Z = high impedance, S = supply
‡
If an external clock source is used, the CLKIN signal level should not exceed CVDD + 0.3 V.
§
Although this pin includes an internal pulldown resistor, a 470-Ω external pulldown is required. If the TRST
a buffer is recommended to ensure the VIL and VIH specifications are met.
O/ZParallel address bus A19 [most significant bit (MSB)] through A0 [least significant bit (LSB)]. The lower sixteen
address pins (A0 to A15) are multiplexed to address all external memory (program, data) or I/O, while the upper
four address pins (A16 to A19) are only used to address external program space. These pins are placed in the
high-impedance state when the hold mode is enabled, or when EMU1/OFF
I/O/ZParallel data bus D15 (MSB) through D0 (LSB). The sixteen data pins (D0 to D15) are multiplexed to transfer
data between the core CPU and external data/program memory or I/O devices. The data bus is placed in the
high-impedance state when not outputting or when RS or HOLD is asserted. The data bus also goes into the
high-impedance state when EMU1/OFF
The data bus has bus holders to reduce the static power dissipation caused by floating, unused pins. These bus
holders also eliminate the need for external bias resistors on unused pins. When the data bus is not being driven
by the UC5402, the bus holders keep the pins at the previous logic level. The data bus holders on the UC5402
are disabled at reset and can be enabled/disabled via the BH bit of the bank-switching control register (BSCR).
INITIALIZATION, INTERRUPT, AND RESET OPERATIONS
Interrupt acknowledge signal. IACK Indicates receipt of an interrupt and that the program counter is fetching the
interrupt vector location designated by A15−A0. IACK
O/Z
is low.
External user interrupts. INT0−INT3 are prioritized and are maskable by the interrupt mask register (IMR) and
I
the interrupt mode bit. INT0
Nonmaskable interrupt. NMI is an external interrupt that cannot be masked by way of the INTM bit (in the ST1
I
register) or the IMR. When NMI
−INT3 can be polled and reset by way of the interrupt flag register (IFR).
is low.
also goes into the high-impedance state when EMU1/OFF
is activated, the processor traps to the appropriate vector location.
Introduction
is low.
pin is connected to multiple DSPs,
April 1999 − Revised October 2008SPRS096C
5
Introduction
Table 1−2. Signal Descriptions (Continued)
TERMINAL
TERMINAL
NAME
NAME
RS
MP/MCI
BIOI
XFO/Z
DS
PS
IS
MSTRBO/Z
READYI
R/WO/Z
IOSTRBO/Z
HOLDI
HOLDAO/Z
MSCO/Z
IAQO/Z
†
I = input, O = output, Z = high impedance, S = supply
‡
If an external clock source is used, the CLKIN signal level should not exceed CVDD + 0.3 V.
§
Although this pin includes an internal pulldown resistor, a 470-Ω external pulldown is required. If the TRST
a buffer is recommended to ensure the VIL and VIH specifications are met.
†
†
INITIALIZATION, INTERRUPT, AND RESET OPERATIONS (CONTINUED)
Reset. RS causes the digital signal processor (DSP) to terminate execution and causes a reinitialization of the
CPU and peripherals. When RS
I
memory. RS
Microprocessor/microcomputer mode select. If active (low) at reset, microcomputer mode is selected, and the
internal program ROM is mapped into the upper 4K words of program memory space. If the pin is driven high
during reset, microprocessor mode is selected, and the on-chip ROM is removed from program space. This pin
is only sampled at reset, and the MP/MC
that is selected at reset.
Branch control. A branch can be conditionally executed when BIO is active. If low, the processor executes the
conditional instruction. For the XC instruction, the BIO
pipeline; all other instructions sample BIO
External flag output (latched software-programmable signal). XF is set high by the SSBX XF instruction, set low
by the RSBX XF instruction or by loading ST1. XF is used for signaling other processors in multiprocessor
configurations or used as a general-purpose output pin. XF goes into the high-impedance state when EMU1/OFF
is low, and is set high at reset.
Data, program, and I/O space select signals. DS, PS, and IS are always high unless driven low for accessing
a particular external memory space. Active period corresponds to valid address information. DS
O/Z
placed in the high-impedance state in the hold mode; the signals also go into the high-impedance state when
EMU1/OFF is low.
Memory strobe signal. MSTRB is always high unless low-level asserted to indicate an external bus access to
data or program memory. MSTRB
high-impedance state when EMU1/OFF
Data ready. READY indicates that an external device is prepared for a bus transaction to be completed. If the
device is not ready (READY is low), the processor waits one cycle and checks READY again. Note that the
processor performs ready detection if at least two software wait states are programmed. The READY signal is
not sampled until the completion of the software wait states.
Read/write signal. R/W indicates transfer direction during communication to an external device. R/W is normally
in the read mode (high), unless it is asserted low when the DSP performs a write operation. R/W
high-impedance state in hold mode; it also goes into the high-impedance state when EMU1/OFF
I/O strobe signal. IOSTRB is always high unless low-level asserted to indicate an external bus access to an I/O
device. IOSTRB
state when EMU1/OFF
Hold. HOLD is asserted to request control of the address, data, and control lines. When acknowledged by the
C54x, these lines go into the high-impedance state.
Hold acknowledge. HOLDA indicates that the UC5402 is in a hold state and that the address, data, and control
lines are in the high-impedance state, allowing the external memory interface to be accessed by other devices.
HOLDA
Microstate complete. MSC indicates completion of all software wait states. When two or more software wait
states are enabled, the MSC
high at the beginning of the last software wait state. If connected to the READY input, MSC
wait state after the last internal wait state is completed. MSC
EMU1/OFF
Instruction acquisition signal. IAQ is asserted (active-low) when there is an instruction address on the address
bus. IAQ
affects various registers and status bits.
MULTIPROCESSING SIGNALS
MEMORY CONTROL SIGNALS
is placed in the high-impedance state in the hold mode; it also goes into the high-impedance
is low.
also goes into the high-impedance state when EMU1/OFF is low.
is low.
goes into the high-impedance state when EMU1/OFF is low.
is brought to a high level, execution begins at location 0FF80h of program
is placed in the high-impedance state in the hold mode; it also goes into the
pin goes active at the beginning of the first software wait state and goes inactive
DESCRIPTIONTYPE
DESCRIPTIONTYPE
bit of the processor mode status (PMST) register can override the mode
during the read phase of the pipeline.
is low.
condition is sampled during the decode phase of the
also goes into the high-impedance state when
, PS, and IS are
is placed in the
is low.
forces one external
pin is connected to multiple DSPs,
C54x is a trademark of Texas Instruments.
6
April 1999 − Revised October 2008SPRS096C
Table 1−2. Signal Descriptions (Continued)
TERMINAL
TERMINAL
NAME
NAME
CLKOUTO/Z
CLKMD1
CLKMD2
CLKMD3
X2/CLKIN
X1O
TOUT0O/Z
HINT/TOUT1O/Z
BCLKR0
BCLKR1
BDR0
BDR1
BFSR0
BFSR1
BCLKX0
BCLKX1
BDX0
BDX1
BFSX0
BFSX1
HD0−HD7I/O/Z
HCNTL0
HCNTL1
HBILI
HCSI
HDS1
HDS2
†
I = input, O = output, Z = high impedance, S = supply
‡
If an external clock source is used, the CLKIN signal level should not exceed CVDD + 0.3 V.
§
Although this pin includes an internal pulldown resistor, a 470-Ω external pulldown is required. If the TRST
a buffer is recommended to ensure the VIL and VIH specifications are met.
‡
†
†
PLL/TIMER SIGNALS
Master clock output signal. CLKOUT cycles at the machine-cycle rate of the CPU. The internal machine cycle
is bounded by the rising edges of this signal. CLKOUT also goes into the high-impedance state when EMU1/OFF
is low.
Clock mode-select signals. These inputs select the mode that the clock generator is initialized to after reset. The
logic levels of CLKMD1–CLKMD3 are latched when the reset pin is low, and the clock mode register is initialized
I
to the selected mode. After reset, the clock mode can be changed through software, but the clock mode-select
signals have no effect until the device is reset again.
IClock/PLL input. If the internal oscillator is not being used, the X2/CLKIN functions as the clock input.
Output pin from the internal oscillator for the crystal. If the internal oscillator is not used, X1 should be left
unconnected. X1 does not go into the high-impedance state when EMU1/OFF
Timer0 output. T OUT0 signals a pulse when the on-chip timer 0 counts down past zero. The pulse is a CLKOUT
cycle wide. TOUT0 also goes into the high-impedance state when EMU1/OFF
Timer1 output. TOUT1 signals a pulse when the on-chip timer 1 counts down past zero. The pulse is one
CLKOUT cycle wide. The TOUT1 output is multiplexed with the HINT
the HPI is disabled. TOUT1 also goes into the high-impedance state when EMU1/OFF
MULTICHANNEL BUFFERED SERIAL PORT SIGNALS
I/O/ZReceive clock input. BCLKR serves as the serial shift clock for the buffered serial port receiver.
ISerial data receive input
I/O/ZFrame synchronization pulse for receive input. The BFSR pulse initiates the receive data process over BDR.
Transmit clock. BCLKX serves as the serial shift clock for the McBSP transmitter. BCLKX can be configured as
I/O/Z
I/O/Z
an input or an output; it is configured as an input following reset. BCLKX enters the high-impedance state when
EMU1/OFF
Serial data transmit output. BDX is placed in the high-impedance state when not transmitting, when RS is
O/Z
asserted, or when EMU1/OFF
Frame synchronization pulse for transmit input/output. The BFSX pulse initiates the transmit data process. BFSX
can be configured as an input or an output; it is configured as an input following reset. BFSX goes into the
high-impedance state when EMU1/OFF is low.
Parallel bidirectional data bus. The HPI data bus is used by a host device bus to exchange information with the
HPI registers. These pins can also be used as general-purpose I/O pins. HD0−HD7 is placed in the
high-impedance state when not outputting data or when EMU1/OFF
holders to reduce the static power dissipation caused by floating, unused pins. When the HPI data bus is not
being driven by the UC5402, the bus holders keep the pins at the previous logic level. The HPI data bus holders
are disabled at reset and can be enabled/disabled via the HBH bit of the BSCR.
Control. HCNTL0 and HCNTL1 select a host access to one of the three HPI registers. The control inputs have
I
internal pullup resistors that are only enabled when HPIENA = 0.
Byte identification. HBIL identifies the first or second byte of transfer. The HBIL input has an internal pullup
resistor that is only enabled when HPIENA = 0.
Chip select. HCS is the select input for the HPI and must be driven low during accesses. The chip-select input
has an internal pullup resistor that is only enabled when HPIENA = 0.
Data strobe. HDS1 and HDS2 are driven by the host read and write strobes to control transfers. The strobe inputs
I
have internal pullup resistors that are only enabled when HPIENA = 0.
goes low.
is low.
HOST-PORT INTERFACE SIGNALS
DESCRIPTIONTYPE
DESCRIPTIONTYPE
pin of the HPI and is only available when
Introduction
is low.
is low.
is low.
is low. The HPI data bus includes bus
pin is connected to multiple DSPs,
April 1999 − Revised October 2008SPRS096C
7
Introduction
Table 1−2. Signal Descriptions (Continued)
TERMINAL
TERMINAL
NAME
NAME
HASI
HR/WI
HRDYO/Z
HINT/TOUT1O/Z
HPIENAI
CV
DD
DV
DD
V
SS
NCNo connection
TCKI
TDII
TDOO/Z
TMSI
§
TRST
EMU0I/O/Z
EMU1/OFFI/O/Z
†
I = input, O = output, Z = high impedance, S = supply
‡
If an external clock source is used, the CLKIN signal level should not exceed CVDD + 0.3 V.
§
Although this pin includes an internal pulldown resistor, a 470-Ω external pulldown is required. If the TRST
a buffer is recommended to ensure the VIL and VIH specifications are met.
†
†
HOST-PORT INTERFACE SIGNALS (CONTINUED)
Address strobe. Hosts with multiplexed address and data pins require HAS to latch the address in the HPIA
register. HAS
Read/write. HR/W controls the direction of an HPI transfer. HR/W has an internal pullup resistor that is only
enabled when HPIENA = 0.
Ready. The ready output informs the host when the HPI is ready for the next transfer. HRDY goes into the
high-impedance state when EMU1/OFF
Interrupt. This output is used to interrupt the host. When the DSP is in reset, HINT is driven high. HINT can also
be configured as the timer 1 output (TOUT1) when the HPI is disabled. The signal goes into the high-impedance
state when EMU1/OFF
HPI module select. HPIENA must be driven high during reset to enable the HPI. An internal pulldown resistor
is always active and the HPIENA pin is sampled on the rising edge of RS
during reset, the HPI module is disabled. Once the HPI is disabled, the HPIENA pin has no effect until the UC5402
is reset.
S+VDD. Dedicated power supply for the core CPU
S+VDD. Dedicated power supply for the I/O pins
SGround
IEEE standard 1 149.1 (JTAG) test clock. TCK is normally a free-running clock signal with a 50% duty cycle. The
changes on the test access port (TAP) of input signals TMS and TDI are clocked into the TAP controller,
instruction register, or selected test data register on the rising edge of TCK. Changes at the TAP output signal
(TDO) occur on the falling edge of TCK.
IEEE standard 1149.1 test data input pin with internal pullup device. TDI is clocked into the selected register
(instruction or data) on a rising edge of TCK.
IEEE standard 1149.1 test data output. The contents of the selected register (instruction or data) are shifted out
of TDO on the falling edge of TCK. TDO is in the high-impedance state except when the scanning of data is in
progress. TDO also goes into the high-impedance state when EMU1/OFF is low.
IEEE standard 1149.1 test mode select. Pin with internal pullup device. This serial control input is clocked into
the TAP controller on the rising edge of TCK.
IEEE standard 1149.1 test reset. TRST, when high, gives the IEEE standard 1149.1 scan system control of the
operations of the device. If TRST
I
1149.1 signals are ignored. Pin with internal pulldown device.
Emulator 0 pin. When TRST is driven low , EMU0 must be high for activation of the OFF condition. When TRST
is driven high, EMU0 is used as an interrupt to or from the emulator system and is defined as input/output by way
of the IEEE standard 1149.1 scan system.
Emulator 1 pin/disable all outputs. When TRST is driven high, EMU1/OFF is used as an interrupt to or from the
emulator system and is defined as input/output by way of the IEEE standard 1149.1 scan system. When TRST
is driven low, EMU1/OFF is configured as OFF. The EMU1/OFF signal, when active (low), puts all output drivers
into the high-impedance state. Note that OFF
multiprocessing applications). Therefore, for the OFF
TRST
EMU0 = high
EMU1/OFF
has an internal pullup resistor that is only enabled when HPIENA = 0.
is low.
SUPPLY PINS
MISCELLANEOUS SIGNAL
TEST PINS
is driven low, the device operates in its functional mode, and the IEEE standard
= low
= low
DESCRIPTIONTYPE
DESCRIPTIONTYPE
is low.
is used exclusively for testing and emulation purposes (not for
feature, the following apply:
. If HPIENA is left open or is driven low
pin is connected to multiple DSPs,
8
April 1999 − Revised October 2008SPRS096C
2Functional Overview
The following functional overview is based on the block diagram in Figure 2−1.
Functional Overview
P, C, D, E Buses and Control Signals
Pbus
Cbus
54x Core
JTAG
External Memory Interface
HPI8 Module
Ebus
Dbus
DMA Controller
6 Channels
DMA Bus
Pbus
Cbus
Dbus
16K Dual-Access RAM
Program/Data
Peripheral Bus
Ebus
Pbus
4K ROM Program/Data
Figure 2−1. Block Diagram of the TMS320UC5402
Cbus
Dbus
GPIO
McBSP0
McBSP1
Timer0
Timer1
APLL
2.1Memory
The UC5402 device provides both on-chip ROM and RAM to aid in system performance and integration.
2.1.1 On-Chip Dual-Access RAM (DARAM)
The UC5402 device contains 16K× 16-bit of on-chip dual-access RAM (DARAM). The DARAM is composed
of two blocks of 8K words each. Each block in the DARAM can support two reads in one cycle, or a read and
a write in one cycle. The DARAM is located in the address range 0080h−3FFFh in data space, and can be
mapped into program/data space by setting the OVLY bit to 1.
April 1999 − Revised October 2008SPRS096C
9
Functional Overview
2.1.2 On-Chip ROM With Bootloader
The UC5402 features 4K× 16-bit of on-chip maskable ROM. Customers can arrange to have the ROM of the
UC5402 programmed with contents unique to any particular application. A security option is available to
protect a custom ROM. This security option is described in the TMS320C54x DSP Reference Set, Volume 1:CPU and Peripherals (literature number SPRU131). Note that only the ROM security option, and not the
ROM/RAM option, is available on the UC5402 .
A bootloader is available in the standard UC5402 on-chip ROM. This bootloader can be used to automatically
transfer user code from an external source to anywhere in the program memory at power up. If the MP/MC
pin is sampled low during a hardware reset, execution begins at location FF80h of the on-chip ROM. This
location contains a branch instruction to the start of the bootloader program. The standard UC5402 bootloader
provides different ways to download the code to accomodate various system requirements:
•Parallel from 8-bit or 16-bit-wide EPROM
•Parallel from I/O space 8-bit or 16-bit mode
•Serial boot from serial ports 8-bit or 16-bit mode
•Host-port interface boot
The standard on-chip ROM layout is shown in Table 2−1.
In the UC5402 ROM, 128 words are reserved for factory device-testing purposes. Application
code to be implemented in on-chip ROM must reserve these 128 words at addresses
FF00h–FF7Fh in program space.
10
April 1999 − Revised October 2008SPRS096C
2.1.3 Memory Map
Functional Overview
Page 0 Program
Hex
0000
Reserved
(OVLY = 1)
External
(OVLY = 0)
007F
0080
On-Chip DARAM
(OVLY = 1)
External
(OVLY = 0)
3FFF
4000
External
FF7F
FF80
FFFF
Interrupts
(External)
MP/MC= 1
(Microprocessor Mode)
Page 0 Program
Hex
0000
Reserved
(OVLY = 1)
External
(OVLY = 0)
007F
0080
On-Chip DARAM
(OVLY = 1)
External
(OVLY = 0)
3FFF
4000
External
EFFF
F000
FEFF
FF00
FF7F
FF80
FFFF
On-Chip ROM
(4K x 16-bit)
Reserved
Interrupts
(On-Chip)
MP/MC
(Microcomputer Mode)
= 0
Hex
0000
005F
0060
007F
0080
On-Chip DARAM
3FFF
4000
EFFF
F000
ROM (DROM=1)
FEFF
FF00
FFFF
Data
Memory
Mapped
Registers
Scratch-Pad
RAM
(16K x 16-bit)
External
or External
(DROM=0)
Reserved
(DROM=1)
or External
(DROM=0)
Figure 2−2. TMS320UC5402 Memory Map
2.1.4 Relocatable Interrupt Vector Table
The reset, interrupt, and trap vectors are addressed in program space. These vectors are soft — meaning that
the processor, when taking the trap, loads the program counter (PC) with the trap address and executes the
code at the vector location. Four words are reserved at each vector location to accommodate a delayed branch
instruction, either two 1-word instructions or one 2-word instruction, which allows branching to the appropriate
interrupt service routine with minimal overhead.
At device reset, the reset, interrupt, and trap vectors are mapped to address FF80h in program space.
However, these vectors can be remapped to the beginning of any 128-word page in program space after
device reset. This is done by loading the interrupt vector pointer (IPTR) bits in the PMST register (see
Figure 2−3) with the appropriate 128-word page boundary address. After loading IPTR, any user interrupt or
trap vector is mapped to the new 128-word page.
NOTE: The hardware reset (RS
with 1s. Therefore, the reset vector is always fetched at location FF80h in program space.
April 1999 − Revised October 2008SPRS096C
) vector cannot be remapped because a hardware reset loads the IPTR
11
Functional Overview
1576543210
IPTRMP/MCOVLYAVISDROM
R/WR/WR/WRRRR/WR/W
LEGEND: R = Read, W = Write
CLK
OFF
SMULSST
Figure 2−3. Processor Mode Status (PMST) Register
2.1.5 Extended Program Memory
The UC5402 uses a paged extended memory scheme in program space to allow access of up to 1024K
program memory locations. In order to implement this scheme, the UC5402 includes several features that are
also present on the 548/549 devices:
•Twenty address lines, instead of sixteen
•An extra memory-mapped register, the XPC register, defines the page selection. This register is
memory-mapped into data space to address 001Eh. At a hardware reset, the XPC is initialized to 0.
•Six extra instructions for addressing extended program space. These six instructions affect the XPC.
−FB[D] pmad (20 bits) − Far branch
−FBACC[D] Accu[19:0] − Far branch to the location specified by the value in accumulator A or
accumulator B
−FCALL[D] pmad (20 bits) − Far call
−FCALA[D] Accu[19:0] − Far call to the location specified by the value in accumulator A or
accumulator B
−FRET[D] − Far return
−FRETE[D] − Far return with interrupts enabled
•In addition to these new instructions, two 54x instructions are extended to use 20 bits in the UC5402:
All other instructions, software interrupts, and hardware interrupts do not modify the XPC register and access
only memory within the current page.
12
April 1999 − Revised October 2008SPRS096C
Functional Overview
Program memory in the UC5402 is organized into 16 pages that are each 64K in length, as shown in
Figure 2−4.
0 0000
Page 0
64K
Words{
0 FFFF
†
See Figure 2−2
‡
The lower 16K words of pages 1 through 15 are available only when the OVLY bit is cleared to 0. If the OVLY bit is set to 1, the on-chip RAM
is mapped to the lower 16K words of all program space pages.
1 0000
1 3FFF
1 4000
1 FFFF
Page 1
Lower
16K}
External
Page 1
Upper
48K
External
2 0000
2 3FFF
2 4000
2 FFFF
Page 2
Lower
16K}
External
Page 2
Upper
48K
External
. . .
. . .
. . .
. . .
F 0000
F 3FFF
F 4000
F FFFF
Page 15
Lower
16K}
External
Page 15
Upper
48K
External
Figure 2−4. Extended Program Memory
2.2On-Chip Peripherals
The UC5402 device supports the following on-chip peripherals:
•Software-programmable wait-state generator with programmable bank-switching wait states
•An enhanced 8-bit host-port interface (HPI8)
•Two multichannel buffered serial ports (McBSPs)
•Two hardware timers
•A clock generator with a phase-locked loop (PLL)
•A direct memory access (DMA) controller
2.2.1 Software-Programmable Wait-State Generator
The software wait-state generator of the UC5402 can extend external bus cycles by up to fourteen machine
cycles. Devices that require more than fourteen wait states can be interfaced using the hardware READY line.
When all external accesses are configured for zero wait states, the internal clocks to the wait-state generator
are automatically disabled. Disabling the wait-state generator clocks reduces the power consumption of the
UC5402.
The software wait-state register (SWWSR) controls the operation of the wait-state generator. The 15 LSBs
of the SWWSR specify the number of wait states (0 to 7) to be inserted for external memory accesses to five
separate address ranges. This allows a different number of wait states for each of the five address ranges.
Additionally, the software wait-state multiplier (SWSM) bit of the software wait-state control register (SWCR)
defines a multiplication factor of 1 or 2 for the number of wait states. At reset, the wait-state generator is
initialized to provide seven wait states on all external memory accesses. The SWWSR bit fields are shown
in Figure 2−5 and described in Table 2−2.
Table 2−2. Software Wait-State Register (SWWSR) Bit Fields
VALUE
Extended program address control bit. XPA is used in conjunction with the program space fields
(bits 0 through 5) to select the address range for the program space wait states.
I/O space. The field value (0−7) corresponds to the base number of wait states for I/O space accesses
within addresses 0000−FFFFh. The SWSM bit of the SWCR defines a multiplication factor of 1 or 2 for
the base number of wait states.
Upper data space. The field value (0−7) corresponds to the base number of wait states for external
data space accesses within addresses 8000−FFFFh. The SWSM bit of the SWCR defines a
multiplication factor of 1 or 2 for the base number of wait states.
Lower data space. The field value (0−7) corresponds to the base number of wait states for external
data space accesses within addresses 0000−7FFFh. The SWSM bit of the SWCR defines a
multiplication factor of 1 or 2 for the base number of wait states.
Upper program space. The field value (0−7) corresponds to the base number of wait states for external
program space accesses within the following addresses:
- XPA = 0: x8000 − xFFFFh
- XPA = 1: The upper program space bit field has no effect on wait states.
The SWSM bit of the SWCR defines a multiplication factor of 1 or 2 for the base number of wait states.
Program space. The field value (0−7) corresponds to the base number of wait states for external
program space accesses within the following addresses:
- XPA = 0: x0000−x7FFFh
- XPA = 1: 00000−FFFFFh
The SWSM bit of the SWCR defines a multiplication factor of 1 or 2 for the base number of wait states.
The software wait-state multiplier bit (SWSM) of the software wait-state control register (SWCR) is used to
extend the base number of wait states selected by the SWWSR. The SWCR bit fields are shown in Figure 2−6
and described in Table 2−3.
115
Reserved
R/W-0
LEGEND: R = Read, W = Write
0
SWSM
R/W-0
Figure 2−6. Software Wait-State Control Register (SWCR) [MMR Address 002Bh]
Table 2−3. Software Wait-State Control Register (SWCR) Bit Fields
BIT
NO.NAME
15−1Reserved0
0SWSM0
VALUE
These bits are reserved and are unaffected by writes.
Software wait-state multiplier. Used to multiply the number of wait states defined in the SWWSR by a factor
of 1 or 2.
- SWSM = 0: wait-state base values are unchanged (multiplied by 1).
- SWSM = 1: wait-state base values are mulitplied by 2 for a maximum of 14 wait states.
14
April 1999 − Revised October 2008SPRS096C
Loading...
+ 53 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.