Dwayne Reid wrote: >I would agree with your reasoning above *if* I set the TRIS registers only >at the start of code and never touched them again. But I consider that to >be bad practice. I refresh all important registers regularly, usually in >the routine that looks after the watchdog timer. Also a good idea - back when I worked with 6805, Motorola actually recommended in their databooks to periodically refresh the TRIS registers [whatever they called them], just in case they are changed by ESD/noise/etc. This should be easy to do in the outermost code loop, since the TRIS are usually set on bootup and rarely changed, in most cases. - danM -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body