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.
Solved! Go to Solution.
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
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
you are right!
that was problem!