I'm working on a project that uses an 18f6720, and I'm writing the code in Microchip C18. It's talking to both SPI and I2C devices. I just do the appropriate "open" (initializing the SPP) prior to talking to the particular device. I then do a close. The SPI devices ignore the I2C data since their chip select lines are not low. The I2C devices ignore the SPI data since SPI never sends a valid I2C start. It's worked so far! Harold > All this talk about SPI devices, has me thinking about an interesting > problem I have, that perhaps someone can suggest an easy solution for. > > I am not too familiar with SPI, I am just learning about it, however, I am > pretty familiar with I2C at this point. I have a circuit that has a > PIC18F252 as an I2C master, and it talks to several I2C slave devices. I > have recently been presented with an SPI device that I need to interface > to > the same I2C master PIC. The SSP hardware on the PIC is pretty much I2C > or > SPI, and not both. Short of switching everything to SPI, what are my > options? Is there some kind of I2C to SPI converter out there? I have > poked around, and there doesn't appear to be a PIC with more than one SSP > on > it...perhaps there is one I am missing? > > Thanks, > > - Ted > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- FCC Rules Online at http://www.hallikainen.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu