Posts Tagged ‘input/output management’

How microprocessor perform I/O mangament:polling, direct memory acess and interrupts

May 9, 2012

This post will be abou the first method called polling. The next two posts will cover the other methods.
The first method is called polling. Polling is also called programmed I/O, and it’s also the simplest one to implement from a hardware perspective. I/O units are connected to the system data and an address buss in a  regular fashion trough necessary circuitry. Depending on the type of microprocessor they can also be connected to certain lines on the control buss.

The goal with a communication schedule is to have a well ordered procedure to decide what I/O unit is to be served by the processor next. Polling is a synchronous method since it doesn’t interrupt the program which is currently executed by the microprocessor. When polling is used the microprocessor will on regular intervals ask each unit connected to the data buss if it needs to be served.  The sensing if a unit needs to be served is in practice done by sensing a flag bit in the status registry of the unit.

The advantages of polling are:
1. It requires very little hardware and no dedicated lines.
2. it’s synchronous with the execution of the prgoram. This is a big advantage since the programmer know s exctly when an external unit is polled and who long time it takes to serve that unit.

The disadvantages of polling are:
1. It requires special hardware if interrupt management is to be done outside the microprocessor.
2. Each time an interrupt is made, there’s an overhead time to manage the interrupt

Description of polling techonology

Description of polling techonology

Read other people’s blogs about on Technorati about: , , , cpu, , ,

Läs även andra bloggares åsikter om: , , , , , ,

Writen by: Rikard Grossman-Nielsen
Technorati token: F6U8ZD2JJGDG

%d bloggers like this: