dr. Imre Bartfai wrote : > On Mon, 22 Nov 2004, Jan-Erik Soderholm wrote: I did NOT !! Please be carefull when quoting. The calculation below was from the original poster. > > [SNIP] > > > >> Looks like PORTA pins can sink 25mA, so that's 5/0.25=20R, right? > > > NO! The formula is 5/0.025 and this gives 200R. The nearest standard > value is 220R which may be used on the sure side. 20R is a mistake! Which wasn't interesting anyway, since the original poster was talking about an *input* pin (from a switch) in this case. This was cleared out later in the same thread. Best Regards, Jan-Erik. _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist