Home › Forums › Microcontrollers › PIC Microcontroller › PIC16F877A with DC Gear Motor › Reply To: PIC16F877A with DC Gear Motor
June 18, 2015 at 8:21 am
#11492
Ligo George
Keymaster
I think the problem is with type of switch you are using. You should use a micro switch, which will return to OFF state after the press. If you want to use ON – OFF switch you can add while(PORTD.F0 == 0); at end of if loop.