I've been reading thru the app notes on Mchip website, and found some sample code for I2C, but it I don't think its quite what I am looking for. I have a F877 that I need to run in master mode only, tied to a phillips 9554 where half the I/O is input, the other half of course is output. In doing the research, if you setup the MSSP for I2C (rather than spi) and to talk to the 9554, you always need to send out the address, then the command. Does the 9554 always expect that in that order? In other words, if I want to only read from the device, do I always have to send out address,command, and then I can read? If someone has some sample code in asm that they have used in the past for a similar device that would help thanks boys! --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu