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.

Using 16f676 want to change the CCs program to asm

Status
Not open for further replies.

prakashvasava

Newbie level 1
Joined
May 12, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
Hey guys...plz help me out to understand this c program. cant get this digits..how they work.


void status()
{
digit5=digit0;
if(digit5==2)
{
output_low(GAS);
output_low(RED);
output_high(PETROL);
output_high(RELAY);
digit9=1;
delaysecond();
digit9=1;
output_low(RELAY);
digit4=0;
}
else
{
// longpress:
output_high(GAS);
output_low(PETROL);
digit4=0;
}

digit5=digit0;
if(digit5==0)
{
digit4=1;
}

digit5=digit0;
if(digit5==1)
{
digit9=0;
output_low(RELAY);
}
}

---------- Post added at 16:32 ---------- Previous post was at 15:41 ----------

and this loop too..of switch... plz help


if ( input (MODESW))
{
delay();
if ( input (MODESW))
{
modechange();
delaysecond();
delay3();
while ( input (MODESW));
}
}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top