linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* what is the MPC8260 spi maximum rate ?
@ 2006-07-04  8:12 hubert.loewenguth
  2006-07-04 19:49 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: hubert.loewenguth @ 2006-07-04  8:12 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

Hi everybody

I have a question about the spi on the MPC8260.
I have written a driver for this controller but there is something in 
the MPC8260 documentation I don't understand:

It is written in MPC8260 documentation (SPI chapter) : " The maximum 
sustained data rate that the SPI supports is SYSTEMCLK/50. However the 
spi can transfer a single character at much higher rates (SYSTEMCLK/4 in 
master mode)".

My really stupid question is ...... what is "SYSTEMCLK" ???????
is it the BRG_CLK ? the CPM_CLK or the CPU_CLK ????

Seeing that in the SPMODE register, the maximum SPI CLK possible is 
BRG_CLK/4, I imagine that this "SYSTEMCLK" is BRG_CLK, but this looks 
very strange .....


This question is quite stupid but very important for me in order to know 
if that controller permit to exchange data with one of our extention 
board at 1.2 MHz.

Anybody knows ?
Thanks very much for any help .

[-- Attachment #2: hubert.loewenguth.vcf --]
[-- Type: text/x-vcard, Size: 285 bytes --]

begin:vcard
fn:Hubert Loewenguth
n:Loewenguth;Hubert
org:Thales Broadcast & Multimedia
adr:;;1 rue de l'hautil;Conflans Ste Honorine;;78700;France
email;internet:hubert.loewenguth@thales-bm.com
title:Software Engineer
tel;work:01-34-90-37-56
x-mozilla-html:TRUE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: what is the MPC8260 spi maximum rate ?
  2006-07-04  8:12 what is the MPC8260 spi maximum rate ? hubert.loewenguth
@ 2006-07-04 19:49 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2006-07-04 19:49 UTC (permalink / raw)
  To: hubert.loewenguth; +Cc: linuxppc-embedded

Hello,

in message <44AA22E3.3050701@thales-bm.com> you wrote:
> 
> It is written in MPC8260 documentation (SPI chapter) : " The maximum 
> sustained data rate that the SPI supports is SYSTEMCLK/50. However the 
> spi can transfer a single character at much higher rates (SYSTEMCLK/4 in 
> master mode)".
> 
> My really stupid question is ...... what is "SYSTEMCLK" ???????
> is it the BRG_CLK ? the CPM_CLK or the CPU_CLK ????

The performance-limiting factor is the CPM, so it's most probably the
CPM clock.

> This question is quite stupid but very important for me in order to know 
> if that controller permit to exchange data with one of our extention 
> board at 1.2 MHz.

Keep in mind that SPI is implemented in software on the CPM, and that
it's running  at  very  low  priority.  All  calculations  assume  an
otherise  unloaded  CPM - but if you add load to the CPM, things will
change.

We haven't run specific measurements on the 8260, but on  the  MPC860
we  ran  into  a  *lot*  of  ugly  SPI problems when the CPM load got
higher, missing interrupts etc. being just one of the issues. At this
time, Motorola added a note to their FAQ  base,  which  stetd  pretty
clear  that  SPI  was  "not designed for high-bandwidth data communi-
cations".

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Due to lack of disk space, this fortune database has been discontinued.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-04 19:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04  8:12 what is the MPC8260 spi maximum rate ? hubert.loewenguth
2006-07-04 19:49 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).