Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 19th August 2006, 05:25 AM   (permalink)
Default Hardware SPI+SPI or SPI + Software I2C?

I'm trying to decide which is a better approach. I'm using a 16F877A and either a SPI based UART (MAX3110E) or Ethernet (ENC28J60) IC.

I'd also like to use an EEPROM, Either a 25lc256 (SPI) or a 24LC256 (I2C). The EEPROMs don't need to be fast an could be hardware (SPI only) or software (I2C or SPI). The hardware solution requires a CS line for the Chipselect.

Problem I2C appears to have much larger EEPROM options and I could keep the SPI bus free for use with ENJ28J60.

Opinions?
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com
William At MyBlueRoom is offline  
Old 19th August 2006, 06:14 AM   (permalink)
Default

well for me, it is much faster to develop software SPI routine.
__________________
Learning is a life-long process...
GraveYard_Killer is offline  
Old 19th August 2006, 06:31 AM   (permalink)
Default

On the AVR chips, the SCLK frequency can run at up to 1/2 the CPU clock, which makes the software much easier to write and debug (and scope out when something goes south). Plus it being a dedicated full-duplex connection means that the routines aren't nearly as complex as the whole I2C state mess.

Admittedly they eat up more pins, but when you use the chip select lines, it's pretty easy to abuse/multiplex more functions on to the SPI pins.

Quote:
Problem I2C appears to have much larger EEPROM options
Are you referring to capacity? Both Atmel and ST have some pretty huge SPI flash parts... (unfortunately I don't think they're compatible in any way)

James
hjames is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 12:00 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker