While working with any microcontroller, we generally interface multiple devices. Also, the microcontroller need to communicate with these devices regularly for input/output operations.
Now the question arises as to which device to communicate to? The solution to this lies in Polling.
Polling refers to checking the status of a device(s) continuously in a repeated manner. In other words, a the microcontroller performs certain operations repeatedly to check for any change in the status of the device.
Simple use of polling can be seen in this program:
Disadvantages of Polling:
- Polling causes a wastage of energy and resource. It causes the microcontroller to perform several operations continuously, even when the system is idle.
However, polling can be useful while writing small programs or when a large number of devices need to be interfaced.











