AnsweredAssumed Answered

MC9S12XEP100 SPI Problem!

Question asked by Jochen R. on Jul 6, 2011
Latest reply on Jul 21, 2011 by Jochen R.



I have a question! Is the following initialization for my MC9S12XEP100 okay?

Because my SPI-Bus, which worked on my HC12 don't work on this new evaluation Board!?


/* Init for SPI Interface */
  PTS |= 0x80;
  DDRS = DDRS | 0xF0; /* outputs */
  SPI0CR1 = 0x58; /* 0b01011000 */
  SPI0CR2 = 0; /* Normal mode */
  SPI0BR = 0x01; /* SPI clock */

I would appreciate it, if you could give me some help for my problem!


Thank you!