I don't know the 'F84. But I had an identical problem on a 16F870, when using pin RC0. It was multiplexed with Timer 1 clock output; and this was completely screwing everything up. Check the datasheet for other peripherals or featured multiplexed on that pin, and turn them off as necessary. Jon > -----Original Message----- > From: Stuart Meier [mailto:stuartmeier@RYG1.FREESERVE.CO.UK] > Sent: 10 December 2003 16:04 > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC] Input pin at 1.55volts.... > > > Just come back to PICs after a very long break. Just updating > an old project, on a 16F84. Very simple, just flashes LEDs etc. > > Now changed rb6 and rb7 to inputs to read a pair of simple > switches, which are pulled low by 10K res, then switch pulls > them high. > > I've set to inputs like this.... > > move to bank 1 > movlw b'11000000' > movwf TRISB > return to bank0 > etc > > then read them as > btfsc portb,6 > etc > > but when run PIC does not recognise state of RB6 and RB7 -a > simple voltmeter check on them gives approx 1.55 volts when > they are not pulled high by input switch. > > Can anyone suggest what is causing this? I think it is > something simple and I'll kick myself when I realise.... > > Stuart > > -- > http://www.piclist.com hint: The PICList is archived three > different ways. See http://www.piclist.com/#archives for details. > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.