you are right; it worked. thanks! -Angelos -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Drew Ames Sent: 10 July 2001 01:22 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC] CAMPAC 64K & I2C BUS I haven't double checked my facts against the instruction reference, but I think you should perform a "movf I2C_TRANS_REG,w" after your iorwf to get the result of the ior into w for the first comparison. I think that iorwf with a destination of 'f' leaves 'w' unchanged - but I could be wrong. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu