MPC56xxx Byte Ordering and Bit Numbering

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC56xxx Byte Ordering and Bit Numbering

1,708 次查看
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 项奖励
回复
3 回复数

1,673 次查看
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 项奖励
回复

1,671 次查看
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 项奖励
回复

1,635 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, in general, that's correct.

Regards,

Lukas

0 项奖励
回复