----- Original Message ----- From: Dan Michaels To: Sent: Friday, September 01, 2000 11:29 PM Subject: Re: 16F877 port setup > >> Bob Ammerman wrote: > >> > >> >Make your unused ports outputs and don't tie them to anything. > >> > > >> > >> Make your unused ports inputs and tie them to Vcc thru 10K resistors. > > At 09:05 PM 9/1/00 -0400, you wrote: > >Why add the component count for the resistors? > > So its hardware redundancy to avoid a single point of failure because of broken code, eh? (ie: excessive power consumption due to floating input). But then if the pins are accidently TRISed as output you'll be drawing unneeded power thru the R's. I guess if I was paranoid about this I would do as one poster suggested: shadow the TRIS regs and periodically refresh them. > Not so bad when you use them networks with 9 bussed Rs. > 4 of these will do a PIC40. > > More importantly, when you code like I do .......... > [setting the tris bits wrong on random occasions]. > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST