Reply by Brett Foster December 28, 20042004-12-28
peterk wrote:

> You can ignore the returned data from the slave if you want to and the > data line does not need to be connected. If you were hoping to use the > serial data input pin for something else on your processor then you > might be disappointed. If you study your datasheets carefully then you > may find that selecting SPI mode will allocate that pin.
If you wanted to use it as an input for some other signal you may not have the same trouble. For example, for AVR, you can still sample PINx because the only constraint is that MISO is an input.
> > <hackmode> > If you desperately want to save on I/O pins you could put an unrelated > signal on SDI and clock the data in when you want to read the pin. > </hackmode> > > Peter >
Reply by peterk December 28, 20042004-12-28
You can ignore the returned data from the slave if you want to and the
data line does not need to be connected. If you were hoping to use the
serial data input pin for something else on your processor then you
might be disappointed. If you study your datasheets carefully then you
may find that selecting SPI mode will allocate that pin.

<hackmode>
If you desperately want to save on I/O pins you could put an unrelated
signal on SDI and clock the data in when you want to read the pin.
</hackmode>

Peter

Reply by Paul E. Bennett December 28, 20042004-12-28
prav wrote:

> Hi all, > > I have a basic doubt in SPI protocol.Suppose if i have a SPI master > which only transfers data to a slave but does not receive any data > from slave. > Is it possible in SPI protocl to enable only the Transmitter and > disable the receiver.
I would consider that the slave should at least send an ACK to indicate that it received the transmission OK. However, if your system will live without the ACKs then I suppose that missing out the receive section on the master would be OK. -- ******************************************************************** Paul E. Bennett ....................<email://peb@a...> Forth based HIDECS Consultancy .....<http://www.amleth.demon.co.uk/> Mob: +44 (0)7811-639972 .........NOW AVAILABLE:- HIDECS COURSE...... Tel: +44 (0)1235-811095 .... see http://www.feabhas.com for details. Going Forth Safely ..... EBA. www.electric-boat-association.org.uk.. ********************************************************************
Reply by prav December 28, 20042004-12-28
Hi all,

I have a basic doubt in SPI protocol.Suppose if i have a SPI master
which only transfers data to a slave but does not receive any data
from slave.
Is it possible in SPI protocl to enable only the Transmitter and
disable the receiver.

Thanks in advance,
Prav