As I've mentioned before, I'm trying to use the MCP2510 in a project. The SPI module on the 16F877 is driving me crazy. Does anybody have code for it that I can use? Or even just some helpful hints? I'm about ready to forget the hardware module and just bit-bang it, but I didn't see any code on piclist for that either. A quick search of google didn't provide any usefull answers. I think I can TX a byte by just loading it into SSPBUF and then waiting for it to leave. But I have no idea how to get the thing to receive a byte. I keep getting the last byte that I wrote to SSPBUF. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads