AnsweredAssumed Answered

Problem with SPI in MC9S12NE64

Question asked by Avinash Mohan on Jun 9, 2009
Latest reply on Jun 11, 2009 by Daniel Lundin



We are using the MC9S12NE64 chip in master mode to access an M25P128-VMF6P SPI flash chip from STMicroelectronics. We are not able to access the flash (even the device ID read is not happening).


Upon detailed analysis, the following issues were seen.

1. The data transfer was initiated with a read of the SPISR with the SPTEF bit set and then moving the data into the SPIDR. Still, the SPTEF bit is staying as set and not getting cleared.


2. Even with the data in the SPIDR, the SS signal line is staying at a high level itself. 


Can anyone help me to sort out this issues?


Thanks and regards,