SPI not working with 2mbps baudrate on example code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI not working with 2mbps baudrate on example code

1,610件の閲覧回数
Sukumar21
Contributor III

Dear  Nxp team,

 

I have an s32k144 EVM board. In this i am trying to establish SPI communication. I have used the Design studio 3.4. and I am using example lpspi_transfer_s32k146 sample project. I tried testing it with default setting (1mbps baud rate on spi). This works OK. but when i change the baud rate to 2mbps, the clock is distorted the spi fails.

I have attached the Config tool file for 1mbps and 2mbps setting

Clock with 2mbps setting:

Sukumar21_0-1696589639480.png

clock with 1 mbps:

Sukumar21_3-1696589802734.png

 

 

I have also attached the project zip.

 

 

タグ(4)
0 件の賞賛
返信
3 返答(返信)

1,583件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

maybe this is just sample issue on analyzer itself. Do you have selected sample rate high enough?
A 2MHz is not so high freq for an output pin, and data is clocked out at higher rate.

BR, Petr

1,580件の閲覧回数
Sukumar21
Contributor III

Hey Petr, Thanks for reply, SO i have slave IC that works on SPI at 2M-6M clock data rate. and i have to interface it with s32k146.
The problem was communication never got through hence i have to shift to logic analyzer.

The same is seen on DSO also.

0 件の賞賛
返信

1,532件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I tried your code on S32K146EVB and below is signal measured

PetrS_0-1696933952524.png

I see no issue here.

BR, Petr

0 件の賞賛
返信