Quote Originally Posted by Acetronics View Post
Hi,
I've just tried to explain you you were reading your outputs instead of the inputs ...
Of course, MPSIM has some trouble with that !!!
Alain
The HIGH and LOW commands automatically set the respective pins to outputs....but the few input statement still won't work....

Also, PIR is a named register on PICs. You might not want to use that name for a variable. Might mess you up in the future. Same with RESET (could be confused with the MCLR function somewhere sometime) and ACC (some might confuse that with Accumulator).