使用S32K142调试SPI程序时遇到片选信号cs异常

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

使用S32K142调试SPI程序时遇到片选信号cs异常

1,900 次查看
dc_ujs
Contributor I

硬件使用的是S32K142的开发板;软件是S32DS开发环境下生产的SPI例程;发现的问题是:片选信号cs异常;现象是:当发送的数据SOUT中从0变为1时,片选信号cs会短时间内变成高电平?下图分别是发送数据为“FD00”,“AAAA”和“0000”时的结果,应该能够说明我反映的问题了。

FD00.png

AAAA.png

0000.png

main_C文件.png

SPI_C文件.png

标签 (1)
0 项奖励
1 回复

1,805 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi dc_ujs@163.com,

That looks like an issue in your HW or a measurement error.

The signal on the MOSI line somehow impacts the CS signal. 

Could you use an oscilloscope instead of the the digital logic analyzer?

You can use GPIO-HD pins which have better current capabilities.

The pins that you are using now PTB14-17 are regular GPIOs.

S32K142_IO_Signal_Description_Input_Multiplexing.xlsx

pastedImage_2.png

pastedImage_3.png

S32K1xx Datasheet rev12

pastedImage_4.png

S32K1xx, RM rev.12

pastedImage_5.png

Regards,

Daniel

0 项奖励