Hi folks!

I'm trying to use a PIC16F74 and need to use all three port E pins as standard digital inputs. I really think I've got everything set right, and PORTE.0 and PORTE.2 and working fine, but PORTE.1 refuses to see an input!!! The pin is really toggleing from 0 to 5V and I've tried multiple PIC's, so I must be doing something wrong...

Can anyone see anything wrong with this?



'Set PortA for digital operation
ADCON1=7

'Turn on Port B pullups
OPTION_REG.7 = 0

'Set direction of I/O pins
TRISA=%000000
TRISB=%11111111
TRISC=%00000001
TRISE=%00000111

start:

if porte.0=1 then
high porta.0
else
low porta.0
endif

if porte.1=1 then
high porta.0
else
low porta.0
endif

if porte.2=1 then
high porta.0
else
low porta.0
endif

goto start