Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCB Layout for multiple SPI devices. 1

Status
Not open for further replies.

JohnDW

Automotive
Jun 26, 2011
8
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.
 
Replies continue below

Recommended for you

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
 
...Your wavelength in air for 70 MHz is over 4 meters (and longer on the PCB - velocity of propagation). ...

Longer? Is that correct?
 
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! :)
Cheers,
John.
 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor