The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

INTERRUPTS Interrupts vs. Polling


(cont’)


‰


(cont’)¾Polling


ƒThe microcontroller cont


inuously monitors the


status of a given deviceƒWhen the conditions met, it performs the serviceƒAfter that, it moves on to monitor the next device until every one is serviced


‰Polling can monitor the status of several devices and serve each of them as certain conditions are met


¾The polling method is not efficient, since it wastes much of the microcontroller’s time by polling devices that do not need service¾ex.


JNB TF,target

Free download pdf