Spehro Pefhany wrote: > > At 08:26 PM 6/28/01 +1000, you wrote: > > >Very nasty, I don't mind software bugs when they > >are my fault, but that annoys me a lot... > >I have put big red notes on all the > >applicable pages in my 16c505 datasheet. :o( > > Well, OK, but how come it _worked_ 20% of the > time?? Ha ha! Well the fault caused the ramclear program loop to clear an unknown number of registers, as the registers contain undefined data at startup the point where it exited the loop would be undefined. Sometimes it would be exiting in a valid place and sometimes would trash status, option etc before exiting the loop. Re the hardware issue, I have heeded everyones warnings re the slow Vdd rise and did some testing with even larger caps and slower rise times. It's reliable up to 4 times the period I have now, Vdd rise is reliable up to about 300mS. That is a big enough safety margin. :o) -Roman -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.