S32K344 SPI

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

S32K344 SPI

997 Views
YXE
Contributor II

我现在调试344的SPI 功能, 但是如果我选择CPOL 为高电平的话 ,则每次时钟信号会有一个下降沿的 杂波。 是不是配置问题啊? 还是底层驱动问题?

YXE_0-1695634121366.png

如上图所示,红色框就是多余的波形。我发送的数据是0XCD, CPHA 1 选择第二个边沿采样。红色的框就是多余的波形 不知道怎么产生的???

SPI配置如下:

YXE_1-1695634284109.png

 

 

0 Kudos
Reply
2 Replies

953 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

it could due to pin init. Try to show PCS0 signal as well, to know if connected device is selected or not.
Try to modify Cs2Clk parameter as well, or others too.
Is a datawidth=1 intended setting. I expect rather 8 to send a byte per single transfer.

BR, Petr

0 Kudos
Reply

921 Views
YXE
Contributor II

 

The SPI pin config as following:

YXE_1-1695807299821.png

I have tried change the cs0 and clk to Pull up mode and change the init value to high, but still not work .

 

0 Kudos
Reply