Breaking News
Maxís Cool Beans

Linking 2 MCUs: I2C, SPI, or a Home Grown Interface?

NO RATINGS
Page 1 / 2 Next >
View Comments: Newest First | Oldest First | Threaded View
<<   <   Page 5 / 5
Max The Magnificent
User Rank
Blogger
Re: What's your data rate?
Max The Magnificent   4/25/2014 3:13:24 PM
NO RATINGS
@betajet: The obvious first question is "what's your data rate?"

Do I look like a man who has a clue? My first-pass philosophy is to make it "go like the clappers" LOL

betajet
User Rank
CEO
What's your data rate?
betajet   4/25/2014 3:01:47 PM
NO RATINGS
The obvious first question is "what's your data rate?"  I2C is pretty slow: it was originally designed for passing control information between digital components in early TVs with digital chips.  OTOH, I2C is very forgiving electrically: I2C components include input filtering so it doesn't matter if your SDA and SCL are ringing.  This is nice if you're going between boards.

SPI can run much faster, but you have to ensure good signal integrity on your clock.

If you're running very slow, you might consider UART.  Then you can debug each board separately using a terminal emulator on a PC.  You need to get a USB to UART dongle with the correct voltage for UART signals for your board.  Here's one from Adafruit http://www.adafruit.com/products/954.

You can also get dongles that talk I2C or SPI and talk to your boards individually from a PC, or monitor what's happening on the line.  However, then you have to write I2C/SPI code on your PC which could be a steeper learning curve than using your embedded boards.  Still, here are some cables from FTDI: http://www.ftdichip.com/Products/Cables/USBMPSSE.htm.

Max The Magnificent
User Rank
Blogger
Cow and Horse Manure
Max The Magnificent   4/25/2014 2:29:29 PM
NO RATINGS
As an aside, while I was writing this column, my inventer friend Brian LaGrave dropped by my office with his two sons (Sam and Daniel) bearing gifts -- two large plastic coffee containers -- one loaded with cow manure and the other loaded with horse manure.

I'm going to be using these materials in my experiments to age the brass panels I'm using in my Inamorata Prognostication Engine

<<   <   Page 5 / 5
Radio
NEXT UPCOMING BROADCAST
EE Times Senior Technical Editor Martin Rowe will interview EMC engineer Kenneth Wyatt.
Top Comments of the Week
Like Us on Facebook

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
EE Times on Twitter
EE Times Twitter Feed
Flash Poll