The issue with SPI function of MC9S12ZVMBA48.

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

The issue with SPI function of MC9S12ZVMBA48.

跳至解决方案
1,700 次查看
bluelife85
Contributor I

Hello,

I have a question about the SPI feature of the MC9S12ZVMBA48.

I think I set SPI correctly, but it doesn't do anything at all.

The basis for this is that no signal comes out of the SCK.

I set the MCU as Master of SPI. And I know that when I enter data, the clock comes out on SCK pin by default. However, no clock came out.

There is nothing about the SPI pin in the Module Routing Register.
What should I do?

Please review the workspace I attached.

Regards,

Kyungwoo Min.

标签 (1)
标记 (3)
1 解答
1,595 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello bluelife85@naver.com,

I'm sorry for the delay.

Could you please read the SPISR register before writing to the SPIDR data register?

Thank you, 

BR, Daniel

在原帖中查看解决方案

2 回复数
1,596 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello bluelife85@naver.com,

I'm sorry for the delay.

Could you please read the SPISR register before writing to the SPIDR data register?

Thank you, 

BR, Daniel

1,596 次查看
bluelife85
Contributor I

you are right!

that was problem!

0 项奖励
回复