mpc5777c SPI com. SCK signal does not exist

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

mpc5777c SPI com. SCK signal does not exist

427件の閲覧回数
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 返信

409件の閲覧回数
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 件の賞賛