Try this wild guess:
RobertIF PORTA.1 = 0 THEN
PORTE.1 = 0
ELSE
PORTE.1 = 1
ENDIF
EDIT: I also went through the datasheet and can't see any register you could have forgotten.
Try this wild guess:
RobertIF PORTA.1 = 0 THEN
PORTE.1 = 0
ELSE
PORTE.1 = 1
ENDIF
EDIT: I also went through the datasheet and can't see any register you could have forgotten.
Last edited by Demon; - 29th September 2013 at 01:58.
Thanks for the reply.
I gave that a try and still have the same results. I was originally using variable names for each pin, but removed them to simplify.
I have done a lot of programming without problem. Can't believe I can't make an input work.
In my larger program, I actually save this pin state to a USB flash drive. The input is always 0.
The ANSEL = 0 and ANSELH = 0, is working for all the other pins they deals with.
Paul
Found it:
I count 9 digits.TRISA = %000000010
Robert
Bookmarks