This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BIG Endianness

Other Parts Discussed in Thread: TMS570LS20216

Hi can Some one explain how the bus oredering affects the Endianness.

 

For Example: For 32 bit address/Data.

In schematics how to interface the pheripherals Address/data.

Do we need to follow in assigning BUS number like [ 31:0] or [0:31].

 

How this effects the dataacess.

 

  • Hello Suresh,

    Can you please elaborate on your question and indicate which interface are you talking about?

    Regardless of the device endianness, Address[0] or Data[0] always need to interface to the corresponding Address[0] or Data[0] between the interfaces. MCU and other components.

    Does that help?

    Regards,
    Diwakar

  • Diwakar,

    I am looking to Interface TMS570LS20216 with AT49BV6416.

    As the TMS570 is big Endian.

    I want to know how to interface with this flash.

    Address and Data connection on Hardware.

    Wat ever you explained is correct,but i want to know who this impact on Little Endian and Big endian change.

    As an example: D31 should be connected to D0 of Flash...?

    or D0 to D0...? withe respect to Little Endian..?

    How about for Big Endian.

     

    Regards

    Suresh

     

     

     

  • Suresh,

    For the connection between TMS570LS20216 with AT49BV6416, you can simply follow the 16 bit external memory example in the TRM. It has nothing to do with Endianness.

    Endianness is something you need to take care in your software. I would like to illustrate it with am example.  Assume that you want to program a value at address 0x60000000. This value will be 0x12345678 when you do a 32 bit read from this address after programming.

    If you are in 16 bit mode, you need to program as follows.

    0x1234 -> 0x60000000 and 0x5678 -> 0x60000002.

    If you are in 8 bit mode, you need to program as follows.

    0x12 -> 0x60000000, 0x34 -> 0x60000001, 0x56 -> 0x60000002, 0x78 -> 0x60000003.

    Please let me know if the above answers your question.

    Thanks and regards,

    Zhoahong

  • Thank you..

    This answers my questions..

     

    Regards

    suresh

  • I write 0x1122 to 0x60000000,0x3344 to 0x60000002,0x5566 to 0x60000004,0x7788 to 0x60000006,but read 0x7788 in 0x60000004,0x7788 to 0x60000006,why?