Polling vs. Interrupt (example)


0
1 share



Polling & Interrupt.

source


Like it? Share with your friends!

0
1 share

What's Your Reaction?

Angry Angry
0
Angry
Cute Cute
0
Cute
Fail Fail
0
Fail
Geeky Geeky
0
Geeky
Lol Lol
0
Lol
Love Love
0
Love
OMG OMG
0
OMG
Win Win
0
Win
WTF WTF
0
WTF
shomitrend

5 Comments

  1. Keep in mind, that to go in interrupt vector,  processor requires extra clock cycles. So if signal comes pretty often, you should check what will take less, branch instructions or jump in / from vector. And if signal last relevantly short, with pulling you have chance to skip it.