programming PIC16F877A PORTB as input...

Status
Not open for further replies.

charlesryan31

Newbie level 5
Joined
May 24, 2007
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
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
 

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…