The issue with SPI function of MC9S12ZVMBA48.

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

The issue with SPI function of MC9S12ZVMBA48.

Jump to solution
1,692 Views
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.

Labels (1)
Tags (3)
1 Solution
1,587 Views
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

View solution in original post

2 Replies
1,588 Views
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,588 Views
bluelife85
Contributor I

you are right!

that was problem!

0 Kudos
Reply