Texas Instruments TMS320 DSP 사용자 설명서

다운로드
페이지 88
www.ti.com
5.6
TMS320C24xx Guidelines
5.6.1 General
TMS320 DSP Standard Algorithms vs. DCS Modules The C24xx family of DSPs
are classified as DSP controllers, and consequently are mainly focused on the “Digital
Control Space.”  From an algorithm standpoint, the control space is characterized by
systems built up from many smaller and reusable software blocks or modules; e.g.,
PID controllers, coordinate transformations, trigonometric transformations, signal
generators, etc. In addition, the C24xx DSP controllers are offered in numerous
memory configurations, with lower cost devices having 4k words of program memory.
This imposes some restrictions on how much overhead can be wrapped on each one
of these smaller modules when creating it’s interface, or API.
In order to address the mentioned sensitivities within the control space, the Digital
Control Systems group (DCS) at TI has created smaller and reusable blocks of
modular software known as DCS modules. These modules are not
eXpressDSP-compliant algorithm; however, they provide the benefit of allowing
software designers to use them in order to quickly and efficiently build up standard
algorithms without jeopardizing the algorithm’s compliance to the standard.
Please refer to the application note, SPRA701, A Software Modularity Strategy for
Digital Control Systems, for further information on DCS modules.
5.6.2 Data Models
5.6.3 Program Models
5.6.4 Register Conventions
TMS320C24xx Guidelines
This section describes the rules and guidelines that are specific to the TMS320C24xx family of digital
signal processors (DSPs). Note that 24xx here refers to the following DSPs: C240, C241, C242, C243,
and C240x.
As per all other eXpressDSP-compliant algorithms, C24xx eXpressDSP-compliant algorithms (also
referred to as DCS Components) must also fully adhere to the rules and guidelines as described within
this document and the TMS320 DSP Algorithm Standard API Reference.
The C24xx has just one data model, so there are no special data memory requirements for this processor.
The C24xx C compiler supports only the one standard 64K word reach program model, so there are no
special program memory requirements for this processor.
This section describes the rules and guidelines that apply to the use of the TMS320C24xx on-chip
registers. As described previously, there are several different register types. Note that any register that is
not described here must not be accessed by an algorithm; e.g., IFR, IMR, status and control registers
(SCSR1, SCSR2, WSGR), and peripheral control registers. The table below describes all of the registers
that may be accessed by an algorithm.
Register
Use
Type
AR0
C compiler Frame pointer
Preserve(local)
AR1
C compiler Stack pointer
Preserve
AR2
C compiler Local variable pointer
Scratch(local)
AR2 - AR5
C compiler Expression analysis
Scratch(local)
SPRU352G – June 2005 – Revised February 2007
DSP-Specific Guidelines
57