Isaac, > It doesn't seem to be really a RMW problem. RMW will make a pin have the > *wrong* state ( 1 or 0 ), but not an *undefined* state. > > The OP said that the pin stays at 1V for a long period (over 10us if I > understood correctly). This is not '1' nor '0'. > > Things to check: > > 1) Is the pull-up really connected? Isn't it of a too low value? 1K pull up on SDA (RC1) line and no pull up on SCL (RC2) line. This is being used for SEEPROM. > 2) Is the code really outputting a '0'? (check bank selection, perhaps > TRISx is not being written). I am checking on an oscilloscope. That's why i am able to see the voltage at 1V. If I increase the delay to about 1mS, then the voltage reaches 0. I had used this code as is in other PICmicro. Cheers Ravi -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist