??? 05/24/06 00:52 Modified: 05/24/06 01:00 Read: times |
#116996 - You have to set the flag! Responding to: ???'s previous message |
Michael said:
ok i think i understand what you mean, the value is captured but not in time No, no! What Erik wrote Erik said:
in the ISR
if flag: ERROR old = new new = capture flag = true in main if flag: new-old = diff flag = false is the shortform of how your code should look like! The flag is to be set in the ISR, to tell the main program, that a new capture event has occured. Look also what I wrote about this flagging here: http://www.8052.com/forum/read.phtml?id=116921 Kai |