Interrupt Latency; Tms320C55X Rules And Guidelines; Stack Architecture; Data Models - Texas Instruments TMS320 DSP User Manual

Dsp algorithm standard rules and guidelines
Table of Contents

Advertisement

TMS320C55x Rules and Guidelines

ST1 Field Name
INTM
OVM
SXM
XF
The PMST register is used to control the processor mode and is of type Init.
PMST Field Name
AVIS
CLKOFF
DROM
IPTR
MP/MC
OVLY
SMUL
SST

5.4.5 Interrupt Latency

Although there are no additional rules for C54x algorithms that deal with interrupt latency, it is important to
note that all RPT and RPTZ loops are non-interruptible; i.e., once started, interrupts are blocked until the
entire loop completes. Thus, the length of these loops can have a significant effect on the worst case
interrupt latency of an algorithm.
5.5
TMS320C55x Rules and Guidelines
This section describes the rules and guidelines that are specific to the TMS320C5500 family of DSPs.

5.5.1 Stack Architecture

The C55X CPU supports different stack configurations and the stack configuration register (4 bits) selects
the stack architecture. The selection of the stack architecture can be done only on a hardware or software
reset. To facilitate integration, each algorithm must publish the stack configuration that it uses.
Rule 31
All C55x algorithms must document the content of the stack configuration register that they follow.
Guideline 14
All C55x algorithms should not assume any specific stack configuration and should work under all the
three stack modes.

5.5.2 Data Models

The C55X compiler supports a small memory model and a large memory model. These memory models
affect how data is placed in memory and accessed. The use of a small memory model results in code and
data sizes that are slightly smaller than when using the large memory model. However, this imposes
certain constraints on the size and memory placement. In the small memory model, the total size of the
directly accessed data in an application must all fit within a single page of memory that is 64K words in
size. Since algorithms are agnostic of where they are going to be instanced; all global and static data
references should be far references.
52
DSP-Specific Guidelines
Use
Interrupt mask
Overflow mode bit
Fractional mode bit
External Flag
Use
Address Visibility bit
CLKOUT disable bit
Map ROM into data space
Interrupt Vector Table Pointer
Microprocessor/microcomputer mode bit
RAM Overlay bit
Saturation on multiply bit
Saturation on store
Type
Preserve(global)
Preserve (local)
Scratch (local)
Scratch (global)
Type
Read-only (global)
Read-only (global)
Read-only (local)
Read-only (global)
Read-only (global)
Read-only (local)
Init (local)
Init (local)
SPRU352G – June 2005 – Revised February 2007
Submit Documentation Feedback
www.ti.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320

Table of Contents