Can input port and output port have same address
Answers
Answered by
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
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.
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
Math,
8 months ago
Physics,
8 months ago
Computer Science,
8 months ago
Math,
1 year ago
Math,
1 year ago