Crazy question... but is microwire the same thing as SPI? Everything I have read tends to associate the two, but nothing clearly states that they are the same thing. Or, is microwire the same thing as I2C; or neither is related?
Crazy question... but is microwire the same thing as SPI? Everything I have read tends to associate the two, but nothing clearly states that they are the same thing. Or, is microwire the same thing as I2C; or neither is related?
I believe SPI and Microwire are related yet not exactly the same, and I2C is different again.
http://www.scienceprog.com/microwire...o-spi-and-i2c/
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
SPI is a close cousin of the older Microwire.
I2C is quite a bit more complex than SPI and Microwire.
There is a minimum of 3 connections for SPI and Microwire: serial clock, serial data out and serial data in. Therefore you'll see those interfaces sometimes referred to as 3-wire interfaces.
If you want to connect N devices to your microcontroller with Microwire or SPI you need to sacrifice 3+N pins to do the job. This is an area where I2C has an advantage.
Microwire and SPI shine when it comes to speed. I2C was initially specified at a maximum speed of 100kbits/sec. This was later increased to 400kbits/sec and lately some devices started to show up that boast 1Mbits/sec. This still pales in comparison to Microwire and SPI speeds. SPI has the edge over Microwire, due to the availability of higher speed peripheral devices. Today's serial EEPROM for example support up to 3MBits/s for Microwire and up to 10Mbits/sec for SPI. But even the slowest Microwire and SPI peripherals still beat the typical 100 or 400kbit/s I2C speeds.
Here is also a comparision between several serial Protocols, including I²C, SPI and Microwire.
Hope this help.
Well... I decided to go with an 18F4550, since it gives a little more room for evil expansion.
Here is a spaghetti schematic, so good luck trying to find the wire routes. Still trying to figure out some things on Eagle. Please take a look and comment. Am walking over to the breadboard in a few minutes to start putting it together.
Disregad X1 and X2. Those are just place holder sockets for extra SPI devices, like an MMC or bluetooth.
Last edited by kirtcathey; - 15th January 2009 at 14:01.
I just changed the drawing in the attachment above. Moved the connect to clockout on the 9604 to the WR/SK pin. Is that correct? To have the same pin going to both SK and SDI on the PIC?
Data address bus.... can you elaborate? Got it! The eagle device is a bit funky.... confirmed the data sheet and will update the drawing.
Thanks alot.
Last edited by kirtcathey; - 15th January 2009 at 14:12.
D0/AD0 to D7/AD7 pins on the 9604, how does the two chip communicate ?
The data sheet and the Eagle symbol confused me. Here is an update.
Bookmarks