×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

PCB Layout for multiple SPI devices.

PCB Layout for multiple SPI devices.

PCB Layout for multiple SPI devices.

(OP)
Hi,
Working on my first project that has multiple slave SPI devices served by a single microcontroller.
When laying out the PCB tracks for the SPI control lines between the devices what are best design practices?

Do I simply;
Daisy-chain the control lines between the devices.
Leave absolute minimum spurs to each device.
Avoid hard right angles in the track.
 
I assume you should not;
Have a star type layout.
Need any form of termination resistor.

Any pointers appreciated,
Thanks, John.   
 

RE: PCB Layout for multiple SPI devices.

SPI on the PCB will be fairly forgiving.  At 10 Mbps you'll want clean clock pulses, so you'll want at least the third harmonic (70 MHz).  Your wavelength in air for 70 MHz is over 4 meters (and longer on the PCB - velocity of propagation).  You don't have to worry about stubs and transmission line effects until your trace lengths get to be about 1/10 your wavelength.  

Have fun!  Sounds like a good introductory project.  

John D without the W

RE: PCB Layout for multiple SPI devices.

Quote:

...Your wavelength in air for 70 MHz is over 4 meters (and longer on the PCB - velocity of propagation). ...

Longer? Is that correct?

RE: PCB Layout for multiple SPI devices.

I thought it was shorter too..

SPI is pretty forgiving as zapped sez, wire it up any way you want it.  

Keith Cress
kcress - http://www.flaminsystems.com

RE: PCB Layout for multiple SPI devices.

(OP)
Thanks for the reassurance guys, good to know SPI is not super picky, I'll just go for a tidy layout on the prototype board and see how we fair. I'm sure there will be plenty of other bits that'll trip me up in the layout! smile
Cheers,
John.

RE: PCB Layout for multiple SPI devices.

Ooops, brain fart.  wavelength = C / freq -> Slower velocity means shorter wavelength...  seems kind of counterintuitive if you think about the energy side of things...  As my brother would say "there you go thinking again!".  

Z
 

RE: PCB Layout for multiple SPI devices.

Remember each SPI device needs to have its one chip select line.  Good PCB layout comes from experience, having done it for the last 20 years (started with Bishop graphics and mylar).  Right angles are avoided because its more difficult to etch..the chemicals can sometimes sit in the tight corners, I always do 45's.  As others have said..slow speeds, pretty forgiving.  Just keep them away from other traces that might have strong dynamic signals and watch for ground currents as well.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources