i have this situation with If condition
unsigned int i; char hihi = 0x7b; char hihi2 = hihi; for(i = 0; i < 20; i++) { if(hihi == hihi2) { Mt1_Out = 1; } else { Mt2_Out = 1; } }
When debug and simulate, the code in "true clause" (Mt1_Out = 1) is not performed even the if condition is true,
Can you help me handle thí?
I do not know what you are doing, but the above does not make sense, if hihi is not I/O. In that case hihi must be made volatile
Erik