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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…