??? 02/05/06 19:04 Read: times |
#109245 - Define Immediately Responding to: ???'s previous message |
Peter Chatterton said:
If a PB is pressed you want to immediately update the displays. Although Erik may opine otherwise, there is no such thing as immediately. There will always be a finite delay between pressing the button and and the system recognising it. Even if the PB is connected directly to an interrupt, the current instruction will complete before the ISR is called and only after it has done its work will the display be updated. I make this point just to illustrate there is no such thing as immediately in software terms. Using a 10mS poll it takes at most 20mS to recognise and debounce the button which for a human is unrecognisable from immediately. Ian |