Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

PIC 16F877A controller On mikroC compiler

$
0
0
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

Code (C):
  1.  
  2. void main()
  3. {
  4.   TRISD.F0 = 1; //Configure 1st bit of PORTD as input
  5. TRISD.F1 = 1; //Configure 1st bit of PORTD as input
  6. TRISD.F2 = 1; //Configure 1st bit of PORTD as input
  7. TRISD.F3 = 1;...
PIC 16F877A controller On mikroC compiler

Viewing all articles
Browse latest Browse all 4922

Trending Articles