Did you solve the problem with the receive part? Just going to have a look at your code but did not want to reinvent the wheel :-) If you have it sorted do you mind sharing your updated code? _______________________________________ Roy Tauranga New Zealand _______________________________________ > I am trying to setup a I2C comm between the two PIC18F2620s. The Master > writes correctly to the slave, but when it tries to read back, it gets > stuck at the "while" statement in the ReadI2C function. > > unsigned char ReadI2C( void ) > { > SSPCON2bits.RCEN = 1; // enable master for 1 byte reception > while ( !SSPSTATbits.BF ); // wait until byte received > return ( SSPBUF ); // return with read byte > } > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.3/141 - Release Date: 18/10/2005 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist