Re: Clarification on IO Operations
From: Gary Kato (garykato_at_aol.com)
Date: 12/29/04
- Next message: Tauno Voipio: "Re: Clarification on IO Operations"
- Previous message: Gary Kato: "Re: Clarification on IO Operations"
- In reply to: guruteck_at_gmail.com: "Re: Clarification on IO Operations"
- Next in thread: Tauno Voipio: "Re: Clarification on IO Operations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Dec 2004 08:56:18 GMT
>How Processor recognizes different IO devices based on Port
>numbers??
Ona hardware level, a CPU itself doesn't differentiate one device from another
any more than it knows the difference between one memory location from another.
Is location 1000 and 8000 in the same chip or in different ones? The CPU
doesn't know.
>Where these port addresses (corresponding to All IO devices) are
>stored???
Address decoding, like that of memory, is done in hardware. Sometimes this can
be done simply by looking at a few of the I/O address lines to decode which
hardware device to activate. Most designs use a Programmable Logic Device (like
a GAL) for more complex address decoding.
>Can a port shared between 2 devices???
There must be some way to say which device is being talked to. A port could be
shared if there is a bit in the port that is perhaps 0 for talking to one
device and 1 for talking to another device.
>How a hardware manufacturer come to know which port is free and can
>be used???
For a custom design, there's no problem. The hardware designer can use any port
they want. For such things like a PC, there are certain standards that have
evolved over the years. As this evolved, there were many conflicts where
companies used the same port for different devices. But most PC I/O boards had
a set of switches that one could change the port number.
- Next message: Tauno Voipio: "Re: Clarification on IO Operations"
- Previous message: Gary Kato: "Re: Clarification on IO Operations"
- In reply to: guruteck_at_gmail.com: "Re: Clarification on IO Operations"
- Next in thread: Tauno Voipio: "Re: Clarification on IO Operations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|