On Tue, Jun 24, 2003 at 02:59:09AM +0530, rituraj singh wrote: > > I configured RB1 as an input pin. This pin was connected to a push-button > switch (pulled up to Vdd by a 10K resistor). Any chance your resistor is bad (or your switch?) and the ~5v you see with PORTB.1=1 is the weak pullup? -- Ben Jackson http://www.ben.com/ -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.