> I think I may have found the problem. Being the persistent type > and double-checking that the IC is still alive I prodded around > with the scope and found that Reset was low, even though it > has a pullup. There was the minutest solder bridge to 0V under > some flux. Man, I had to look hard for it, but it's gone now and > the code flow has improved markedly. Well, it would do wouldn't > it ? >=20 > Now, Ken, should I still trust myself after working all day with a > chip that's been in flipping reset ? 8-O >=20 > BTW, if anyone does still see room for improvement in the > posted code that would be appreciated What about a timeout when waiting for the ack? If the slave doesn't respond (due to being busy with a previous=20 request or being disturbed by noise) the code will hang forever=20 waiting for an ack that will never come. Regards / Ruben =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ruben J=F6nsson AB Liros Electronic Box 9124, 200 39 Malm=F6, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.