Inquiry about SPI of MPC5746C

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

Inquiry about SPI of MPC5746C

Jump to solution
496 Views
kimdukyu
Contributor II

SPI1 of MPC5746C is used.

It communicates with Qualcomm AP (Master), and the frequency is 1MHz.

스크린샷, 2022-07-20 16-40-37.png

When communicating at 1 MHz, data is normally received.

(Yellow=CLK, Blue=MOSI, Red=MISO, Green=CS/SS)

clock_frequency_1Mhz.png

However, when communicating with 5MHz, data cannot be received.

clock_frequency_5Mhz1.png

As shown in the picture above, the MISO(PH15 pin) line becomes HIGH.

We need 5Mhz communication.

How do I set the MCU SPI to communicate with 5MHz?

Please answer this question.

0 Kudos
1 Solution
479 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

seems the slave is not able to prepare data in time for this high rate. Not sure what driver you are using.
Try to assign highest interrupt priority for SPI module if interrupt is used or consider using DMA to handle slave response, if you know in advance how many bytes will be requested.

BR, Petr

View solution in original post

1 Reply
480 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

seems the slave is not able to prepare data in time for this high rate. Not sure what driver you are using.
Try to assign highest interrupt priority for SPI module if interrupt is used or consider using DMA to handle slave response, if you know in advance how many bytes will be requested.

BR, Petr