CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

#int_EXT

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
angel



Joined: 19 Oct 2004
Posts: 40

View user's profile Send private message

#int_EXT
PostPosted: Wed Mar 11, 2009 2:27 am     Reply with quote

Hi
I am programing some code in a interruption int_EXT. I use a PIC 18F1620.
The program works fine but when I try to add new code using if (expr) conditions the PIC doesn't recognize them.
For example:
Example N1 that works:
Code:

if (expression) { code
}

if (expression) {code
}
Example Nº2 that it doesn't recognize the 3º condition:

if (expression) { code
}

if (expression) {code
}

if (expression) {code   // this condition is transparent for the PIC
}

Example Nº3 that it works with the 3º condition:

if (expression) { code
}

if (expression) {code
}
else if (expression){
}

Example Nº4 that it doesn't work with the 3º condition:

if (expression) { code
}else if (expression) {code
}
else if (expression){
}

Does anyone know what is the problem? is my compiler?
My compiler is CCS PCH 4.068
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group