Please Can any one help me on this code I am working with PIC 16F877A controller On mikroC compiler. My code work right but i it not stop while loop(1) when I pressed switch PORTD.F2 can any one tell me how I stop it and how I am going to Exit from whole loop(1) when I pressed PORTD.F2 == 0
PIC 16F877A controller On mikroC compiler
Code (C):
- void main()
- {
- TRISD.F0 = 1; //Configure 1st bit of PORTD as input
- TRISD.F1 = 1; //Configure 1st bit of PORTD as input
- TRISD.F2 = 1; //Configure 1st bit of PORTD as input
- TRISD.F3 = 1;...