I am having trouble getting a program to run If statements when a pin goes high.
I have a 16f628a for testing using three pins for outputs and four for inputs. Pins PortA.0 - PortA.3 are set low at the first of the program using:
Low PortA.0 ect.
The PCB has terminals when shorted send +5v to the inputs pulling them high.
The main loop is such:
:main
If Porta.0 = HIGH then goto example1
goto main
When I pull the pin high, it doesn't do anything different. The rest of the pic and program is running fine sending out data when appropriate.
Bookmarks