Social Sciences, asked by Rajputbhakti2475, 1 year ago

Can input port and output port have same address

Answers

Answered by wajahatkincsem
5

Yes, and it's common that they do. It’s analogous to reading as well as writing memory. But you are writing to the peripheral, and what you read back comes from the peripheral. On the other hand, you can say each operation can be distinguished by the R / W signal on system bus. And If you like you can consider it to be an extra address line to be decoded one address with R/W high triggers one device. Same address with R/W low triggers the second.

Answered by writersparadise
5
Yes. It is true that both input port and output port can have the same address in a peripheral mapped I/O.

Each operation can be distinguished by the Read/Write signals on the system bus.

The 8085 register differentiates between the input and output ports of the same address by the control signal. The input port requires the RD and the output port requires the WR signal.
Similar questions