MPC5777C SPI 8-bit mode

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

MPC5777C SPI 8-bit mode

658 次查看
San_96
Contributor I

Hi,

MCU: MPC5777C

Module: SPI

The PUSHR has 16 bits TXDATA field.

Can we change the SPI mode to 8-bit mode? So that only the 8-bits will be transfer to slave device. And the other 8-bits shall be ignored.

0 项奖励
回复
2 回复数

651 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

 

Hi,

yes, you can. Only least significant bits of TXDATA are taken into account if frame size is lower than maximum.

0 项奖励
回复

459 次查看
San_96
Contributor I
Hi, I have kept FMSZ = 7 that means (7+1 = 8 bits). and written 1 byte in PUSHR and I have observed the Waveform in CRO. It is showing 16 bits data, as first 8 bits are 0's and next 8-bits are my data byte. For example, I have updated PUSHR = 0x12 ; Waveform is like 0x0012. I need to send only 0x12.
0 项奖励
回复