no name

Some SPI questions...

Discussion created by no name on Feb 25, 2006
Latest reply on Mar 1, 2006 by no name
Hi all,

I'm using an S12X mcu as SPI slave and another one as master. The master simulates SPI wit I/O ports while the slave uses the integrated SPI module. I use both lines (MOSI, MISO) to transfer eight bits simultaneously and that works fine. Now my questions:

1. What is the best way to handle the situation if one device has fewer data to send than the other one? Do I need a software protocol, some type of framing?

2. I configured the mcu to automatically use the /SS line. How can the SPI module detect if the master releases the /SS line prematurely? Must I configure it as general I/O port (input) in order to work?

Thanks in advance,

Message Edited by pittbull on 02-25-200601:58 PM