S32K312 + MC33771B SPI Speed

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

S32K312 + MC33771B SPI Speed

4,727 次查看
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 )

 

标记 (3)
0 项奖励
回复
9 回复数

4,709 次查看
guoweisun
NXP TechSupport
NXP TechSupport
0 项奖励
回复

4,698 次查看
kjy106906
Contributor IV

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

0 项奖励
回复

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

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

4,669 次查看
guoweisun
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

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

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

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

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