Continue to Site

programming PIC16F877A PORTB as input...

Status
Not open for further replies.

charlesryan31

Newbie level 5
Newbie level 5
Joined
May 24, 2007
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
pic16f877a portb

hi..

i need a source code in mikroC to make PORTB pins (8 pins) as input .. pls post some helpful source codes

as example

thnx n advance..God BLess this forum
 

mikroc portb input

Change "i need" and maybe somebody answered to you
 

Code:
void main (void)
{
  TRISB=0xFF;
  TRISD = 0;


while (1)
   PORTD=PORTB;

}

I dont know... just set TRISB to 0xFF si its input...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top