MC33978 SPI transfert mode

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

MC33978 SPI transfert mode

Jump to solution
374 Views
Pascal06
Contributor I

Dear NXP community,

I've got two question about MC333978 MSDI.

  1. Which SPI mode (0, 1, 2 or 3) should be used to communicate with MC33978 ? Indeed, I don't find it very clear in the datasheet (Figure 20 §7.9.4 Serial data input (MOSI))
  2. Each transfert use a 32 bits word. Could it work with 4 groups of bytes transferts e.g. on this screenshotLabNation_Screenshot8.png

Thanks a lot in advance,

Pascal

0 Kudos
Reply
1 Solution
350 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Pascal,

1. The MC33978 uses SPI Mode 0 (CPOL = 0, CPHA = 0: CLK idle state = low, data sampled on rising edge and shifted on falling edge).

2. Yes, it should work this way.

BRs, Tomas

View solution in original post

0 Kudos
Reply
2 Replies
351 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Pascal,

1. The MC33978 uses SPI Mode 0 (CPOL = 0, CPHA = 0: CLK idle state = low, data sampled on rising edge and shifted on falling edge).

2. Yes, it should work this way.

BRs, Tomas

0 Kudos
Reply
344 Views
Pascal06
Contributor I

Hello Tomas,

thanks a lot for your help.

I ported the MSDI_SDK_SW  to Microchip MPlab IDE.

The API used to transfer a generic buffer to SPI worked in the wrong way, so that a uint32_t was transfered to SPI by LSB first.

I'm going to open another subject because I've got another problem...

Best regards,

Pascal

0 Kudos
Reply