www.ti.com
|
| TMS320C54xx Rules and Guidelines |
CSR Field | Use | Type |
EN | Current CPU endian mode. | |
PWRD | Not accessible (global) | |
PCC | Program Cache Control | Not accessible (global) |
DCC | Data Cache Control. | Not accessible (global) |
Note that the GIE and PGIE are
5.3.6 Interrupt Latency
Although there are no additional rules for C6x algorithms that deal with interrupt latency, it is important to note that all instructions in the delay slots of branches are
Note that the C compiler has options to limit the duration of loops. Even if this option is used, you must be careful to limit the length of loops whose length is not a simple constant.
5.4TMS320C54xx Rules and Guidelines
This section describes the rules and guidelines that are specific to the TMS320C5400 family of DSPs.
5.4.1 Data Models
The C54x has just one data model, so there are no special data memory requirements for this processor.
5.4.2 Program Models
Some variants of the TMS320C54xx support an extended program address space. Since code can be compiled for either standard or extended (near or far) addresses, it is possible to have incompatible mixtures of code.
We need to ensure that calls made from an algorithm to external support functions will be compatible, and that calls made from the application to an algorithm will be compatible. We also need to ensure that calls to independently relocatable object modules within an algorithm will be compatible.
Rule 28
On processors that support large program model compilation, all function accesses to independently relocatable object modules must be far references. For example, intersection function references within algorithm and external function references to other
Rule 29
On processors that support large program model compilation, all independently relocatable object module functions must be declared as far functions; for example, on the C54x, callers must push both the XPC and the current PC and the algorithm functions must perform a far return.
This requires that the
What about existing applications that do not support far calls to algorithms? Note that it is possible for an existing application to do a near call into a far algorithm; create a small "near stub" that the application calls using a near call, the stub then does the appropriate far call and a near return to the application.
SPRU352G | 49 |