>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? Bit bang SPI on another set of pins. IIRC there are code examples for 16 series on the piclist.com site which should be easily modified for 18 series devices. It is reputedly easier to bit bang SPi than I2C, but I have never tried to bit bang either of them. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu