MPC5777C SPI 8-bit mode

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

MPC5777C SPI 8-bit mode

593 Views
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 Kudos
Reply
2 Replies

586 Views
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 Kudos
Reply

394 Views
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 Kudos
Reply