??? 05/23/06 21:35 Read: times |
#116990 - re flag Responding to: ???'s previous message |
in the ISR
if flag: ERROR <- why error? 1) old = new new = capture flag = true <- why flag is true?? it is not true, it is made true in main if flag: new-old = diff flag = false <-why? 2) re 'flag' flag marks that a value is available in the main the flag is reset when the value has been processes if the ISR is entered and the flag is still set, the main did not process the values in time Erik |