Regarding SPI protocol( master)
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Regarding SPI protocol( master)

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
prav
Guest





Posted: Tue Dec 28, 2004 3:18 pm    Post subject: Regarding SPI protocol( master) Reply with quote

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
Back to top
Paul E. Bennett
Guest





Posted: Tue Dec 28, 2004 3:40 pm    Post subject: Re: Regarding SPI protocol( master) Reply with quote

prav wrote:

Quote:
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..
********************************************************************
Back to top
peterk
Guest





Posted: Tue Dec 28, 2004 4:04 pm    Post subject: Re: Regarding SPI protocol( master) Reply with quote

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
Back to top
Brett Foster
Guest





Posted: Tue Dec 28, 2004 8:15 pm    Post subject: Re: Regarding SPI protocol( master) Reply with quote

peterk wrote:

Quote:
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.

Quote:

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
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB