On Sat, Feb 19, 2011 at 12:23 AM, Manu Abraham wro= te: > Hi, > > > On Fri, Feb 18, 2011 at 7:29 PM, Oli Glaser wro= te: >> On 18/02/2011 13:30, Manu Abraham wrote: >>> Any other thoughts ? >>> >>> >> >> Just one right now - in the read routine, have you tried a *repeated* >> start after you write the address instead of a normal start? >> I do have some DS1307 code here (not based on MCHP library, though I can >> send you for reference if you want it) > > I have been looking through it, but the communication sequences seemed > looked much the same. > So, I have been looking at the assembly level instructions in detail. > > This is where I landed up: in Microchip's i2c.h, I do not find any > place where SSPCON2bits.RCEN is enabled ? > > A bit confused. Any idea why RCEN is not used ? After digging here and hunting there, eventually a delay did the trick. Phew .. Best Regards, Manu --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .