I am using SPI0 on S12ZVLA128. I tried to do send and receive in polling mode. the SPI is in slave mode. I am checking the SPI0SR register every 10ms. The issue is the SPTEF never set, although I can see there is data on the MISO line. Since the SPTEF never set, I cannot update the SPI0DR. The MISO is sending what ever received on MOSI.
Are you able to help? thanks, Ke