Still trying to figure out the Microchip C compiler libraries for SPI. I'm successfully sending stuff to shift registers and reading stuff from shift registers. Next job is a full SPI with simultaneous shift out and in. Anyone used Microchip libraries for this? The problem is that it APPEARS (according to the documentation) that BOTH WriteSPI and ReadSPI initiate an SPI bus cycle. So, if I write something out, then read, it seems as though the read is from a second bus cycle (which sent something out to the SPI device also). So, should I just do writes, then read the input from the SSPBUF after DataRdySPI goes true? Anyone doing SPI with these libraries? THANKS! Harold FCC Rules Online at http://hallikainen.com/FccRules Lighting control for theatre and television at http://www.dovesystems.com ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu