Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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