Posted 09 January 2004 - 02:36 PM
Posted 11 January 2004 - 01:27 AM
Welcome to the forum.
Unlike the I2C bus, there is no real protocol for the SPI bus.
Essentially, you have a clock line, a data line and an enable line. If you wish to send a byte to a peripheral, you pull is /SS line low, and then clock the data into it using the data and clock lines.
Any addressing, must be done by hardware. i.e. if you have a number of peripheral devices, you need to control the /SS lines independantly whereas with the I2C system, you send the address and then the data complete with start and stop bits.
The SPI requires more addressing logic (or more pins) than the I2C but it can transfer the data quicker. For multiple peripheral devices, the I2C bus requires less interconnection lines. I2C devices also include a higher level of digital filtering on their inputs making them more immune to noise than the SPI devices.
Does this help??
Mark Empson | administrator
Skype Contact = markempson | phone +64 274 363 067
LMPForum | Power Factor | L M Photonics Ltd | Empson family | Advanced Motor Control Ltd | Pressure Transducers | Smart Relay | GSM Control | Mark Empson Website | AuCom | Soft Starters
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users