mpc5777c SPI com. SCK signal does not exist

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

mpc5777c SPI com. SCK signal does not exist

426 次查看
Furkan_26
Contributor II

hi,

I'm using MPC5777c 516ds and and devboard revc. Im tring to communicate over SPI. MCU is in master mode. when I run the code, I can see the signal on MOSI pin but SCK pin does not exist anyone. I know that the problem is my software becuse example code of s32ds runs correctly. please help me to find error. ım siply try to send a frame continuously, when a tranfer completed a flag set, then message send to PUSHR register.

there is a few pictures from logic analyzer and my code.

Furkan_26_0-1642614134145.pngFurkan_26_1-1642614210627.pngFurkan_26_2-1642614264007.pngFurkan_26_3-1642614319327.pngFurkan_26_4-1642614403361.png

 

0 项奖励
1 回复

408 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

for output pins you set ODE, WPS, WPE bits. It is intended to use open drain output with pull ups? But it could be.
However for SCK and PCS0 you also need to set OBE bit.
OBE bit for SOUT is controlled by peripheral, so that's why you see a signal.

BR, Petr

0 项奖励