S32K312 + MC33771B SPI Speed

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

S32K312 + MC33771B SPI Speed

1,728 Views
kjy106906
Contributor IV

Hello

I am currently using the S32K312 + MC33771B combination.
SPI Speed is 4Mhz.
It took longer than expected to read the registers of the MC33771, so I checked the waveform.
The interval between frames (5 bytes) and between frames (90us) was too long.
How can I reduce the gap between frames.
I am using the Spi_SyncTransmit function.

Thank you

kjy106906_0-1688538329936.png

(Spi_SyncTransmit(MC33771B)  -> Spi_SyncTransmit(MC33771B) without delay )

 

Tags (3)
0 Kudos
Reply
9 Replies

1,710 Views
guoweisun
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

1,699 Views
kjy106906
Contributor IV

I couldn't find the answer to my question in that link.
A specific answer would be appreciated.

0 Kudos
Reply

1,681 Views
guoweisun
NXP TechSupport
NXP TechSupport

In that link there is a example code for reference, you can download it and try test again.

guoweisun_0-1689052818520.png

 

0 Kudos
Reply

1,676 Views
kjy106906
Contributor IV

I think it's no different than my way.
I don't have any difficulties in implementing it, and I'm asking about the time.
I am using S32K312 (RTD) + Microsar OS.
If it's fast in your environment, please share the 2 frame SPI waveform.

0 Kudos
Reply

1,670 Views
guoweisun
NXP TechSupport
NXP TechSupport

OK,for your test waveform, could you please explain the test name of these four channels?

0 Kudos
Reply

1,666 Views
kjy106906
Contributor IV

S32K312 (RTD) + in Microsar OS environment
I want to reduce the delay between frames.

Yellow = SPI Clock
Red = MOSI
BLUE = MISO
Green = CS

Thank u

0 Kudos
Reply

1,654 Views
guoweisun
NXP TechSupport
NXP TechSupport

I am not familiar with the  Spi_SyncTransmit function code, but in your test waveform the green line means the CS line should pull low for active the SPI communication. The 90us interval happened on CS high.

guoweisun_0-1689123437918.png

 

0 Kudos
Reply

1,651 Views
kjy106906
Contributor IV

Yeah, that's why I said I want to reduce the gap between the two frames. (The part where CS is High)
Any other engineers familiar with the Spi_SyncTransmit function?

0 Kudos
Reply

1,641 Views
guoweisun
NXP TechSupport
NXP TechSupport

Please submit ticket for this topic ,I discuss with MCU colleague who told this driver is written by them.

They can support to you!

Home (nxp.com)

 

0 Kudos
Reply