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.

PICC - program should work, but it doesn't

Status
Not open for further replies.

shocman

Newbie level 3
Joined
Nov 12, 2008
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
PICC

hi!
i did a program in Pic-c and i know that maybe is so basic, therefore is the problem becouse i know that it haves to run right but no, ok this is:

while ( !input(PIN_B0) );
{
output_high(pin_B4);
output_low(pin_B6);
gato=1;
}

while ( !input(PIN_B1) );
output_high(pin_b6);
output_low(pin_b4);

gato=0;
}

in advance thankful!!
 

Re: PICC

Hi,
I do not know about the logic behind your code. But I thik you need to configure your ports correctly to function as input & output according to the function used in your code.
BR,
Amr.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top