angel
Joined: 19 Oct 2004 Posts: 40
|
#int_EXT |
Posted: Wed Mar 11, 2009 2:27 am |
|
|
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 |
|