Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Ads

Discussion Groups

Discussion Groups | TMS320C54x | C5402: big endian or little endian?

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

C5402: big endian or little endian? - gl4com - Nov 29 10:55:00 2005



Can somebody let me figure out if C5402 is little endian
or big endian?

this information should be into TI's docs but I wasn't able to get it.

Thanks in advance!

Gl.





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

Re: C5402: big endian or little endian? - Jeff Brower - Nov 29 11:17:00 2005

GI-

> Can somebody let me figure out if C5402 is little endian
> or big endian?
>
> this information should be into TI's docs but I wasn't able to get it.

Nothing is mentioned because there are no choices:

-16-bit data is always stored as 16-bit chunk so there
is no byte-ordering issue

-there are some "double word" instructions; these access
the ms word first (low memory) then ls word

-in 8-bit mode, the HPI can be set to transfer ls byte
or ms byte first. But data still ends up in DSP memory
the same way

The second item above would be the closest thing to endianness for this device. For
example it could affect external processor software that assumed an Intel style
word-ordering model.

-Jeff





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

Re: C5402: big endian or little endian? - Ritesh Patel - Nov 30 0:56:00 2005

Hi,

As Jeff said I think there is nothing like big endian or little indian
within DSP 54x. Everything is either 16bit or 32bit. but, say an external
application running in say ARM processor which wants to read data words in
DSP through HPI then it depends on the format that processor/OS (say
embedded linux) or what you have chosen in it.

Ritesh On 11/29/05, Jeff Brower <jbrower@jbro...> wrote:
>
> GI-
>
> > Can somebody let me figure out if C5402 is little endian
> > or big endian?
> >
> > this information should be into TI's docs but I wasn't able to get it.
>
> Nothing is mentioned because there are no choices:
>
> -16-bit data is always stored as 16-bit chunk so there
> is no byte-ordering issue
>
> -there are some "double word" instructions; these access
> the ms word first (low memory) then ls word
>
> -in 8-bit mode, the HPI can be set to transfer ls byte
> or ms byte first. But data still ends up in DSP memory
> the same way
>
> The second item above would be the closest thing to endianness for this
> device. For
> example it could affect external processor software that assumed an Intel
> style
> word-ordering model.
>
> -Jeff




(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

Re: C5402: big endian or little endian? - sks_dsp - Dec 9 18:55:00 2005

We consider it big endian. Its native type is a 16bit word. It is a
word addressable machine (16bits). 32 bit values are stored in memory
as

|HI_WORD|
|LO_WORD|

i.e. the high word is at the lower memory location, which makes it big
endian

-SKS

--- In c54x@c54x..., "gl4com" <gl4com@y...> wrote:
>
> Can somebody let me figure out if C5402 is little endian
> or big endian?
>
> this information should be into TI's docs but I wasn't able to get it.
>
> Thanks in advance!
>
> Gl.




(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )