MPC56xxx Byte Ordering and Bit Numbering

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC56xxx Byte Ordering and Bit Numbering

534 Views
tgc-yilmaz
Contributor III

Hello,

MPC56xxx is used and Byte Ordering "Big Endian" is selected. At this point, there is confusion regarding bit ordering.

tgcyilmaz_0-1702627012189.png

The Big Endian byte order is expected to be in the following format, but when the datasheet is examined, it is seen that it is as in the image below.

tgcyilmaz_4-1702627396819.png

tgcyilmaz_3-1702627265239.png

In the CW IDE, it was observed that the bits were positioned as expected. In this regard, can you provide detailed information about byte and bit ordering?

tgcyilmaz_6-1702627501859.png 

tgcyilmaz_7-1702627668028.png

Thanks.

0 Kudos
Reply
3 Replies

499 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @tgc-yilmaz 

MPC56xx are Big Endian only devices. Little Endian cannot be configured/used ever.

The only catch here is that our reference manuals use bit numbering 0-31, not 31-0. That's due to some historical reasons.

Regards,

Lukas

0 Kudos
Reply

497 Views
tgc-yilmaz
Contributor III

Hello,

First of all, thank you for the answer. In this case, can I accept the general format for bit numbering for big endian, regardless of the reference manual?

Big Endian Order:

Byte 0   Byte 1Byte 2Byte 3
bits 31-25bits 24-16bits 15-8bits 7-0

         

Thanks.

0 Kudos
Reply

461 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, in general, that's correct.

Regards,

Lukas

0 Kudos
Reply