Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Embedded > Re: SPI Configu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 357 of 416
Post > Topic >>

Re: SPI Configuration

by Rich Grise <rich@[EMAIL PROTECTED] > Oct 26, 2005 at 09:28 PM

On Wed, 19 Oct 2005 11:15:05 +0200, Sreeram S wrote:

> I dont understand how the clock phase, polarity and delays between Slave
> select and clock edges are related to using interrupts.  In my case
since
> both master and slave are processors, all the parameters are
configurable
> and I wanted to know the factors that are considered while deciding
these
> values.
> The tranmission and reception of one full message frame ( byte ) is
handled
> by hardware. Interrupts are only used for copying into tranmsit register
and
> copying from receive register.  Polling does not suit my requirements
since
> both the processors are heavily loaded.
> If the delay between slave select and first clock edge is meerly a set
up
> time for the gates, I feel one clock cycle of the slower device is a
good
> figure
> Regarding the clock phase, both master and slave can latch data on both
the
> edges. so ideally speaking all the phase polarity combinations should
work.

As long as they're both the same, it should work regardless, yes.

And you shouldn't have to worry about that anyway, unless you're
bit-banging it at one end or the other - don't  you just write a
byte to the SPI transmitter and it takes care of all the timing,
then when that byte shows up at the receiver, you get an interrupt,
right?

Thanks,
Rich
 




 7 Posts in Topic:
SPI Configuration
"Sreeram S" <  2005-10-17 18:16:11 
Re: SPI Configuration
"Martin Riddle"  2005-10-17 23:17:16 
Re: SPI Configuration
"riscy" <ris  2005-10-17 23:17:48 
Re: SPI Configuration
"Martin Riddle"  2005-10-19 00:02:47 
Re: SPI Configuration
"Meindert Sprang&quo  2005-10-19 07:09:05 
Re: SPI Configuration
"Sreeram S" <  2005-10-19 11:15:05 
Re: SPI Configuration
Rich Grise <rich@[EMAI  2005-10-26 21:28:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 4:53:41 CDT 2008.