Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/25/01 07:55
Read: times


 
#15993 - RE: Intrrupt vs. Programme control
Hi A fijabi,

both, interrupt and polling method have its advantages.
So it can never be said, one was the best.

E.g. interrupts are useful to respond fast and if only few things to do.
And polling was more powerful, if responding time was not too short and many things to do.

Thus also a combination of both can be the best.
E.g. the interrupt do only all time critical things and set a bit. And the main loop poll this bit and complete the task.

Also polling must not mean waste of CPU time in general.
E.g. polling a bit cost only 2 cycle on the 8051.
But saving and restoring tons of registers during an interrupt to do a complicated task can waste many more time in the sum.


Peter


List of 5 messages in thread
TopicAuthorDate
Intrrupt vs. Programme control            01/01/70 00:00      
RE: Intrrupt vs. Programme control            01/01/70 00:00      
RE: Intrrupt vs. Programme control            01/01/70 00:00      
RE: Intrrupt vs. Programme control            01/01/70 00:00      
RE: Intrrupt vs. Programme control            01/01/70 00:00      

Back to Subject List