EasyManuals Logo
Home>Texas Instruments>Microcontrollers>TMS570LC4357

Texas Instruments TMS570LC4357 User Manual

Texas Instruments TMS570LC4357
2208 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #111 background imageLoading...
Page #111 background image
www.ti.com
Endianism Considerations
111
SPNU563AMarch 2018
Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
Introduction
1.3 Endianism Considerations
1.3.1 TMS570: Big Endian (BE32)
The TMS570LC43x family is based on the ARM
®
Cortex
®
-R5F core. ARM has designed this core to be
used in big-endian and little-endian systems. For the TI TMS570LC43x family, the endianness has been
configured to BE32. Big-endian systems store the most-significant byte of a multi-byte data field in the
lowest memory address. Also, the address of the multi-byte data field is the lowest address. Following is
an example of the physical addresses of individual bytes.
Figure 1-2. Example: SPIDELAY 0xFFF7F448
31 24 23 16
C2TDELAY[7:0] T2CDELAY[7:0]
Byte 3 - 0xFFF7F448 Byte 2 - 0xFFF7F449
15 8 7 0
T2EDELAY[7:0] C2EDELAY[7:0]
Byte 1 - 0xFFF7F44A Byte 0 - 0xFFF7F44B
32-bit accesses to this register should use the lowest address, that is, 0xFFF7F448. Writing 0x11223344
to address 0xFFF7F448 shows the following when viewing the memory in 8-bit and 32-bit modes.
As such the headers provided as part of HALCoGen do take the endianness into account and provide
header structures that are agnostic to endianness. This is achieved by using C directives for the compiler
that make use of the compile options configured for the project by the user (__little_endian__ used in
Code Composer Studio codegen tools). This directive may need to be adapted for other compilers.
#ifdef __little_endian__
char C2EDELAY : 8U; /**lt; 0xF448: CS to ENA */
char T2EDELAY : 8U; /**lt; 0xF449: Transmit to ENA */
char T2CDELAY : 8U; /**lt; 0xF44A: Transmit to CS */
char C2TDELAY : 8U; /**lt; 0xF44B: CS to Transmit */
#else
char C2TDELAY : 8U; /**lt; 0xF448: CS to Transmit */
char T2CDELAY : 8U; /**lt; 0xF449: Transmit to CS */
char T2EDELAY : 8U; /**lt; 0xF44A: Transmit to ENA */
char C2EDELAY : 8U; /**lt; 0xF44B: CS to ENA */

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS570LC4357 and is the answer not in the manual?

Texas Instruments TMS570LC4357 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS570LC4357
CategoryMicrocontrollers
LanguageEnglish

Related product manuals